dotnet run for a NETStandard.Library project gives obscure error: Could not load host policy
See original GitHub issueSteps to reproduce
dotnet new vi project.json { “version”: “1.0.0-*”, “dependencies”: { “NETStandard.Library”: “1.5.0-rc2-23931” }, “frameworks”: { “netstandard1.5”: {} } } dotnet restore dotnet build dotnet run
Expected behavior
An error message pointing the developer to “compilationOptions” with an “emitEntryPoint”. Or an error saying that NETStandard.Library are not runable.
Actual behavior
Could not load host policy library from [/Users/xyz/Documents/Projects/matrix/d.lib_f.standard/bin/Debug/netstandard1.5]
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-rc2-002349)
Product Information: Version: 1.0.0-rc2-002349 Commit Sha: ed9309b90b
Runtime Environment: OS Name: Mac OS X OS Version: 10.11 OS Platform: Darwin RID: osx.10.11-x64
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
dotnet run for a NETStandard.Library project gives obscure ...
Or an error saying that NETStandard.Library are not runable. Actual behavior. Could not load host policy library from [/Users/xyz/Documents/ ...
Read more >'Could not load file or assembly 'netstandard, Version=2.0. ...
The netstandard.dll you are trying to load is a reference assembly that which cannot be loaded for runtime on .NET Framework as pointed...
Read more >MSBuild reference for .NET SDK projects
Reference for the MSBuild properties and items that are understood by the .NET SDK.
Read more >Creating NuGet Packages the easy way with .NET Standard in C
NET standard Library 6:04 - Sharing code library 9:00 - Sharing code library with NuGet package: versions 10:24 - NuGet naming rules 11:26 ......
Read more >Please stop lying about .NET Standard 2.0 support!
In this post I have a bit of a rant about Microsoft's NuGet packages lying about supporting .NET Standard 2.0 when they kinda...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That misses the point - I am not looking to make this work rather ensure the experience in this state is good.
This has been fixed in the latest stable (Preview 2) release of the tooling.