You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,20 @@ That additional build logic is distributed with Visual Studio, with Visual Studi
8
8
9
9
Loading MSBuild from Visual Studio also ensures that your application gets the same view of projects as `MSBuild.exe`, `dotnet build`, or Visual Studio, including bug fixes, feature additions, and performance improvements that may come from a newer MSBuild release.
10
10
11
+
## How Locator searches for .NET SDK?
12
+
13
+
MSBuild.Locator searches for the locally installed SDK based on the following priority:
14
+
15
+
1. DOTNET_ROOT
16
+
2. Current process path if MSBuild.Locator is called from dotnet.exe
17
+
3. DOTNET_HOST_PATH
18
+
4. DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR
19
+
5. PATH
20
+
21
+
Note that probing stops when the first dotnet executable is found among the listed variables.
22
+
23
+
Documentation describing the definition of these variables can be found here: [.NET Environment Variables](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-environment-variables).
24
+
11
25
## Documentation
12
26
13
27
Documentation is located on the official Microsoft documentation site: [Use Microsoft.Build.Locator](https://docs.microsoft.com/visualstudio/msbuild/updating-an-existing-application#use-microsoftbuildlocator).
Copy file name to clipboardExpand all lines: src/MSBuildLocator/Microsoft.Build.Locator.csproj
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,9 @@
14
14
15
15
<Title>MSBuild Locator</Title>
16
16
<Description>Package that assists in locating and using a copy of MSBuild installed as part of Visual Studio 2017 or higher or .NET Core SDK 2.1 or higher.</Description>
0 commit comments