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.

Contractual way to obtain location of MSBuild in SDK

See original GitHub issue

Today, various things parse Base Path: (.*) from dotnet --info and assume they can find MSBuild there. But we have long desired to move MSBuild apart from dotnet.dll in the base path.

Perhaps we should add a separate MSBuild Base Path: (.*) to dotnet --info to be used if/when MSBuild is moved. We would then advise people to prefer MSBuild Base Path over Base Path if present.

This could also be a different invocation than dotnet --info (say `dotnet --msbuild-path), which the client would try first. But that would have the downside of requiring two dotnet invocations instead of one when resolving MSBuild from a down-level .NET Core SDK.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rainersigwaldcommented, Oct 18, 2018

The only downside of JSON is that we’d probably want to parse it with a library, and wouldn’t want to take that dependency in MSBuildLocator.

0reactions
rainersigwaldcommented, Oct 25, 2018

I think for MSBuildLocator I’d prefer plain text that can be parsed simply like the initial MSBuild Base Path: proposal. No objection to additionally providing JSON for other use cases, though.

Another option would be to have a light query syntax: dotnet info MSBuildBasePath and dotnet info Version for example. That’s probably more complex than is really needed, though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.net - Where is MSBuild.exe installed in Windows when ...
The path to MSBuild when installed with Visual Studio is: C:\Program Files (x86)\MSBuild[version]\Bin for x86.
Read more >
Demystifying the SDK Project - Dan Siegel
Even with one, it can get a little tedious to have to drill down into the Project's output folder {Path To Project}/bin/{Build Configuration} ......
Read more >
Reference an MSBuild Project SDK
Learn how to use MSBuild project SDKs to simplify using software development kits that require properties and targets to be imported.
Read more >
Retail software development kit (SDK) - Commerce
You can obtain new versions of the Retail SDK by applying any Commerce ... A simple MSBuild command from the root of the...
Read more >
Using OpenApiReference To Generate Open API Client ...
I this post I show how you can customise the code generated by the OpenApiReference tooling from Visual Studio's Connected Services using ...
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