MSBuildLocator.RegisterMSBuildPath Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RegisterMSBuildPath(String) |
Add assembly resolution for Microsoft.Build core dlls in the current AppDomain from the specified path. |
RegisterMSBuildPath(String[]) |
Add assembly resolution for Microsoft.Build core dlls in the current AppDomain from the specified path. |
RegisterMSBuildPath(String)
Add assembly resolution for Microsoft.Build core dlls in the current AppDomain from the specified path.
public:
static void RegisterMSBuildPath(System::String ^ msbuildPath);
public static void RegisterMSBuildPath (string msbuildPath);
static member RegisterMSBuildPath : string -> unit
Public Shared Sub RegisterMSBuildPath (msbuildPath As String)
Parameters
- msbuildPath
- String
Path to the directory containing a deployment of MSBuild binaries. A minimal MSBuild deployment would be the publish result of the Microsoft.Build.Runtime package.
In order to restore and build real projects, one needs a deployment that contains the rest of the toolchain (nuget, compilers, etc.). Such deployments can be found in installations such as Visual Studio or dotnet CLI.
Applies to
RegisterMSBuildPath(String[])
Add assembly resolution for Microsoft.Build core dlls in the current AppDomain from the specified path.
public:
static void RegisterMSBuildPath(cli::array <System::String ^> ^ msbuildSearchPaths);
public static void RegisterMSBuildPath (string[] msbuildSearchPaths);
static member RegisterMSBuildPath : string[] -> unit
Public Shared Sub RegisterMSBuildPath (msbuildSearchPaths As String())
Parameters
- msbuildSearchPaths
- String[]
Paths to directories containing a deployment of MSBuild binaries. A minimal MSBuild deployment would be the publish result of the Microsoft.Build.Runtime package.
In order to restore and build real projects, one needs a deployment that contains the rest of the toolchain (nuget, compilers, etc.). Such deployments can be found in installations such as Visual Studio or dotnet CLI.