Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ToolLocationHelper.GetPathToDotNetFramework Method
Definition
- Namespace:
- Microsoft.Build.Utilities
- Assembly:
- Microsoft.Build.Utilities.Core.dll
- Assembly:
- Microsoft.Build.Utilities.dll
- Assemblies:
- Microsoft.Build.Utilities.dll, Microsoft.Build.Utilities.v3.5.dll
- Assembly:
- Microsoft.Build.Utilities.v4.0.dll
- Package:
- Microsoft.Build.Utilities.Core v15.9.20
- Package:
- Microsoft.Build.Utilities.Core v16.11.0
- Package:
- Microsoft.Build.Utilities.Core v17.14.8
- Package:
- Microsoft.Build.Utilities.Core v18.3.3
- Package:
- Microsoft.Build.Utilities.Core v18.4.0
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.
Gets a fully qualified path to the .NET Framework root directory.
Overloads
| Name | Description |
|---|---|
| GetPathToDotNetFramework(TargetDotNetFrameworkVersion) |
Get a fully qualified path to the frameworks root directory. |
| GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture) |
Get a fully qualified path to the framework's root directory. |
GetPathToDotNetFramework(TargetDotNetFrameworkVersion)
- Source:
- ToolLocationHelper.cs
- Source:
- ToolLocationHelper.cs
- Source:
- ToolLocationHelper.cs
Get a fully qualified path to the frameworks root directory.
public:
static System::String ^ GetPathToDotNetFramework(Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version);
public static string GetPathToDotNetFramework(Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public static string GetPathToDotNetFramework(Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version);
static member GetPathToDotNetFramework : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion -> string
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
static member GetPathToDotNetFramework : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion -> string
Public Shared Function GetPathToDotNetFramework (version As TargetDotNetFrameworkVersion) As String
Parameters
- version
- TargetDotNetFrameworkVersion
Version of the targeted .NET Framework
Returns
Will return 'null' if there is no target frameworks on this machine.
- Attributes
Applies to
GetPathToDotNetFramework(TargetDotNetFrameworkVersion, DotNetFrameworkArchitecture)
- Source:
- ToolLocationHelper.cs
- Source:
- ToolLocationHelper.cs
- Source:
- ToolLocationHelper.cs
Get a fully qualified path to the framework's root directory.
public:
static System::String ^ GetPathToDotNetFramework(Microsoft::Build::Utilities::TargetDotNetFrameworkVersion version, Microsoft::Build::Utilities::DotNetFrameworkArchitecture architecture);
public static string GetPathToDotNetFramework(Microsoft.Build.Utilities.TargetDotNetFrameworkVersion version, Microsoft.Build.Utilities.DotNetFrameworkArchitecture architecture);
static member GetPathToDotNetFramework : Microsoft.Build.Utilities.TargetDotNetFrameworkVersion * Microsoft.Build.Utilities.DotNetFrameworkArchitecture -> string
Public Shared Function GetPathToDotNetFramework (version As TargetDotNetFrameworkVersion, architecture As DotNetFrameworkArchitecture) As String
Parameters
- version
- TargetDotNetFrameworkVersion
Version of the targeted .NET Framework
- architecture
- DotNetFrameworkArchitecture
Desired architecture, or DotNetFrameworkArchitecture.Current for the architecture this process is currently running under.
