Partager via


ProjectFileConverter.Convert Method

Definition

Converts the project specified by the OldProjectFile property and saves it in the file specified by the NewProjectFile property.

Overloads

Convert()

Converts the project specified by the OldProjectFile property and saves it in the file specified by the NewProjectFile property.

Convert(ProjectLoadSettings)
Obsolete.

Converts the project specified by the OldProjectFile property and saves it in the file specified by the NewProjectFile property.

Convert(String)
Obsolete.

This is the entry point method, which performs the project file format conversion. This method will overwrite "newProjectFile" if it already exists, so the caller of this method should confirm with the user if that's what they really want to do.

Convert()

Source:
ProjectFileConverter.cs

Converts the project specified by the OldProjectFile property and saves it in the file specified by the NewProjectFile property.

public:
 void Convert();
public void Convert ();
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public void Convert ();
member this.Convert : unit -> unit
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.Convert : unit -> unit
Public Sub Convert ()
Attributes

Remarks

Warning

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to

Convert(ProjectLoadSettings)

Source:
ProjectFileConverter.cs

Caution

Use parameterless overload instead

Converts the project specified by the OldProjectFile property and saves it in the file specified by the NewProjectFile property.

public:
 void Convert(Microsoft::Build::BuildEngine::ProjectLoadSettings projectLoadSettings);
[System.Obsolete("Use parameterless overload instead")]
public void Convert (Microsoft.Build.BuildEngine.ProjectLoadSettings projectLoadSettings);
public void Convert (Microsoft.Build.BuildEngine.ProjectLoadSettings projectLoadSettings);
[System.Obsolete("Use parameterless overload instead")]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public void Convert (Microsoft.Build.BuildEngine.ProjectLoadSettings projectLoadSettings);
[<System.Obsolete("Use parameterless overload instead")>]
member this.Convert : Microsoft.Build.BuildEngine.ProjectLoadSettings -> unit
member this.Convert : Microsoft.Build.BuildEngine.ProjectLoadSettings -> unit
[<System.Obsolete("Use parameterless overload instead")>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.Convert : Microsoft.Build.BuildEngine.ProjectLoadSettings -> unit
Public Sub Convert (projectLoadSettings As ProjectLoadSettings)

Parameters

projectLoadSettings
ProjectLoadSettings

A ProjectLoadSettings flag that determine whether the project ignores non-existent .target files when loading.

Attributes

Applies to

Convert(String)

Source:
ProjectFileConverter.cs

Caution

Use parameterless overload instead.

This is the entry point method, which performs the project file format conversion. This method will overwrite "newProjectFile" if it already exists, so the caller of this method should confirm with the user if that's what they really want to do.

public:
 void Convert(System::String ^ msbuildBinPath);
[System.Obsolete("Use parameterless overload instead.")]
public void Convert (string msbuildBinPath);
[System.Obsolete("Use parameterless overload instead.")]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public void Convert (string msbuildBinPath);
[<System.Obsolete("Use parameterless overload instead.")>]
member this.Convert : string -> unit
[<System.Obsolete("Use parameterless overload instead.")>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.Convert : string -> unit
Public Sub Convert (msbuildBinPath As String)

Parameters

msbuildBinPath
String

The fully qualified path to MSBuild.exe.

Attributes

Applies to