question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet run for a NETStandard.Library project gives obscure error: Could not load host policy

See original GitHub issue

Steps 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

project.json.txt

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jeffschwMSFTcommented, Apr 12, 2016

That misses the point - I am not looking to make this work rather ensure the experience in this state is good.

0reactions
blackdwarfcommented, Jul 22, 2016

This has been fixed in the latest stable (Preview 2) release of the tooling.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found