(Question subtitles: are resources not supported in .netstandard 1.3 or is my project file just messed up?)
I just created an example of a portable class library in Visual Studio 2015 Update 3 and added a sample resource file. The original project.json file is as follows:
{ "supports": { "net46.app": {}, "uwp.10.0.app": {}, "dnxcore50.app": {} }, "dependencies": { "Microsoft.NETCore": "5.0.0", "Microsoft.NETCore.Portable.Compatibility": "1.0.0" }, "frameworks": { "dotnet": { "imports": "portable-net452+win81" } } }
Fine: no compilation errors!
After that, I used the project properties to target .netstandard 1.3 .

Now project.json looks like this:
{ "supports": {}, "dependencies": { "Microsoft.NETCore.Portable.Compatibility": "1.0.1", "NETStandard.Library": "1.6.0" }, "frameworks": { "netstandard1.3": {} } }
Now I get the following build error: this means that, in principle, the action of the EmbeddedRessource assembly is not supported:

I'm really not an expert with project.json , but for me everything looks inconsistent - and I have no idea where the problem is.
- in the first
project.json : if I support net46 , why does it import net452 ? - in the second
project.json : if I use netstandard1.3 , why is there a library dependency in version 1.6 ? - and finally, what is
.NETPortable, Version=v5.0 ? The .NET Core was renamed earlier this year - why are we still referring to version 5.0 ? Even MSDN does not know <TargetFrameworkVersion>5.0</TargetFrameworkVersion> , which is specified in csproj
For me, this is similar to the fact that netstandard concerns not only the available libraries, but also the tools. But this does not explain why it worked for dnxcore50 .
ventiseis
source share