MSBuildLocator
MSBuildLocator copied to clipboard
An API to locate MSBuild assemblies from an installed Visual Studio location. Use this to ensure that calling the MSBuild API will use the same toolset that a build from Visual Studio or msbuild.exe w...
In a project, where the MS Build instance is registered with `MSBuildLocator.RegisterDefaults();` before calling a method that ends up doing: ``` var globalProperties = new Dictionary { { "SolutionDir", $"{Path.GetDirectoryName("path")}{Path.DirectorySeparatorChar}"...
I considered making a "documentation" folder for this, but I'd slightly prefer to wait on that until we have several things to put there. If you disagree, I can make...
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 15.9.0 to 17.3.0. Release notes Sourced from Microsoft.NET.Test.Sdk's releases. v17.3.0 See the release notes here. v17.3.0-preview-20220612-01 See the release notes here. v17.3.0-preview-20220530-08 See the release notes here....
Bumps [Nerdbank.GitVersioning](https://github.com/dotnet/Nerdbank.GitVersioning) from 3.5.107 to 3.5.109. Release notes Sourced from Nerdbank.GitVersioning's releases. v3.5.108 Changes: #777: Bump Newtonsoft.Json from 9.0.1 to 13.0.1 in /src/NerdBank.GitVersioning This list of changes was auto generated....
Bumps [xunit](https://github.com/xunit/xunit) from 2.4.1 to 2.4.2. Commits f110e5b v2.4.2 848d94d Update dependencies 42307e8 Fixes #2556: Xunit.Sdk.MultipleException Empty 7eba502 Port test changes from 1dd43ce684cc6d50bf726042173956e6bda2fa3b 211aa27 Make sure we use msbuild.exe (from...
Right now MSBuildLocator.RegisterDefaults registers the first instance it finds on the machine, whatever that is: https://github.com/microsoft/MSBuildLocator/blob/ecd04bf208ed0cc3e67d46e7eb90359df7315504/src/MSBuildLocator/MSBuildLocator.cs#L93 This provides to be wrong in a lot of cases: for example, any tool...
Bumps [xunit.runner.visualstudio](https://github.com/xunit/visualstudio.xunit) from 2.4.1 to 2.4.5. Release notes Sourced from xunit.runner.visualstudio's releases. v2.4.4.1 Changes: Bugs: #292: Fixing a hang in test discovery Others: #304: Update xunit version to 2.4.2-pre.12 #297:...
Bumps Microsoft.VisualStudio.SDK.EmbedInteropTypes from 15.0.21 to 15.0.36. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...
Get the following error message: ``` No instances of MSBuild could be detected.\r\nTry calling RegisterInstance or RegisterMSBuildPath to manually register one. at Microsoft.Build.Locator.MSBuildLocator.RegisterDefaults() ``` Used `MSBuildLocator.QueryVisualStudioInstances()` to see if any...
For some reason, it does work on my machine but doesn't on another, where it fails to load the `System.Runtime.CompilerServices.Unsafe.dll`, even so the file is present and the binding redirect...