Useless and incorrect message if a tool does not have "emitEntryPoint": true
See original GitHub issueSteps to reproduce
Create a tool but don’t put "emitEntryPoint": true
in the project json.
Try to use the tool from a different project
Expected behavior
Either a warning/error during compilation or a helpful error when trying to run the tool
Actual behavior
PS C:\Users\XXXX\Documents\Visual Studio 2015\Projects\dotnet-scratch> dotnet list-tools
Expect required library hostpolicy.dll to be present in [C:\Users\XXXX\.nuget\packages\.tools\dotnet-list-tools\1.0.0-t2016050317041\netcoreapp1.0]
- This may be because of an invalid .NET Core FX configuration in the directory.
Note that the error is:
- incorrect - I don’t think we ever should expect hostpolicy.dll in ~.nuget\packages.tools subfolder
- useless - not really actionable
- misspelled (?) - shouldn’t it be
Expected required library...
instead ofExpect required library
?
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-rc2-002655)
Product Information:
Version: 1.0.0-rc2-002655
Commit Sha: 3e96a05f9c
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:21 (8 by maintainers)
Top Results From Across the Web
Useless and incorrect message if a tool does not have " ...
Create a tool but don't put "emitEntryPoint": true in the project json. Try to use the tool from a different project. Expected behavior....
Read more >What does compilationOptions.emitEntryPoint mean?
As mentioned below: It looks like it is a flag to the compiler to indicate that the project is a console application vs....
Read more >Publishing and Running ASP.NET Core Applications with IIS
If you plan on hosting ASP.NET Core applications on IIS, you'll find that the process to get your application to run is quite...
Read more >ASP.NET Core 1.0 Documentation
If you don't have an Azure account, you can create a free trial. • Configure the Web App in Azure to support continuous...
Read more >Professional C# 6 and .NET Core 1.0 - 40 ASP.NET Core
I was able to use the database and service code directly from ASP.NET MVC. On the other hand, if I had used Web...
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 FreeTop 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
Top GitHub Comments
@schellap and team,
Interestingly, I see this issue still happening with
emitEntryPoint: true
however if I dodotnet -v run
it works just fine. What is it about the -verbose flag that causes it to run successfully?I am currently experiencing this issue, but I have
emitEntryPoint: true
in my project.json.