visual studio - Upgraded to .Net Standard 2, now project says reference isnt there -
i upgraded .net standard 1.4 pcl dll .net standard 2.0. trying write method returns valuetuple , error:
cannot define class or member utilizes tuples because compiler required type 'system.runtime.compilerservices.tupleelementnamesattribute' cannot found. missing reference? but is...kind of. below project.json says:
{ "supports": {}, "dependencies": { "microsoft.netcore.portable.compatibility": "1.0.1", "netstandard.library": "2.0.0", "newtonsoft.json": "10.0.3", "system.collections.specialized": "4.3.0", "system.componentmodel.annotations": "4.4.0", "system.net.http": "4.3.2", "system.reflection": "4.3.0", "system.runtime.serialization.primitives": "4.3.0", "system.servicemodel.primitives": "4.4.0", "system.valuetuple": "4.4.0" }, "frameworks": { "netstandard2.0": {} } } but when expand references project, notice couple packages aren't listed.
ive tried answer no success.
edit: using vs 2017
i had problem well. turns out .csproj file had lines below, though version referenced .net core 2.0. removed these lines , project built successfully.
<runtimeframeworkversion>1.1.2</runtimeframeworkversion> <packagetargetfallback>$(packagetargetfallback);dnxcore50</packagetargetfallback> 
Comments
Post a Comment