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.

Need to get the path to the `dotnet.exe` host in GetRunInformation MSBuild target

See original GitHub issue

We are currently returning dotnet.exe without a path in <Target Name="GenerateRunInformation"> in the Microsoft.DotNet.Core.Sdk.targets file.

We should either:

  1. Figure out a way to get to the correct dotnet.exe to call from inside our MSBuild target.
  2. Or pass back some sort of indicator to dotnet run that this project should use its host to run the project.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
eerhardtcommented, Aug 4, 2016

For .NET Core MSBuild, it should use the path to the host it was invoked with.

One concern is when MSBuild is running on the desktop framework, but building a .NET Core App. Say, for example, when invoked from VS.

0reactions
ViktorHofercommented, Apr 23, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I specify path of msbuild when running "dotnet ...
However, I want to be able to specify the exact path to msbuild like: dotnet C:\name\msbuild.exe. (Adding it to the path is not...
Read more >
dotnet build command - .NET CLI
The dotnet build command builds a project and all of its dependencies.
Read more >
dotnet msbuild command - .NET CLI
The dotnet msbuild command allows access to a fully functional MSBuild. The command has the exact same capabilities as the existing MSBuild ......
Read more >
Visual Studio 2019 unable to locate .Net Core SDK
Find the path to dotnet.exe manually (usually C:\Program Files\dotnet ) and add it to PATH. Check in Control Panel whether there is a...
Read more >
.NET | TeamCity On-Premises Documentation
To ensure that a specific version of native MSBuild is used (for example, in a Docker container), you need to set the path...
Read more >

github_iconTop Related Medium Post

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