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.

Useless and incorrect message if a tool does not have "emitEntryPoint": true

See original GitHub issue

Steps 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 of Expect 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
chilchcommented, Dec 15, 2016

@schellap and team,

Interestingly, I see this issue still happening with emitEntryPoint: true however if I do dotnet -v run it works just fine. What is it about the -verbose flag that causes it to run successfully? image

3reactions
aggiebencommented, Oct 31, 2016

I am currently experiencing this issue, but I have emitEntryPoint: true in my project.json.

Read more comments on GitHub >

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

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