Share via


ProjectFileConverter.ConvertInMemory Method

Definition

Creates a new project in memory from the OldProjectFile.

Overloads

ConvertInMemory()

Creates a new project in memory from the OldProjectFile.

ConvertInMemory(Engine)
Obsolete.

Creates a new project in memory from the OldProjectFile.

ConvertInMemory(Engine, ProjectLoadSettings)
Obsolete.

This is the entry point method, which performs the project file format conversion. This method will simply create a new MSBuild Project object in memory, instead of trying to write it to disk.

Remarks

Returns the converted Project.

ConvertInMemory()

Source:
ProjectFileConverter.cs

Creates a new project in memory from the OldProjectFile.

public:
 Microsoft::Build::Construction::ProjectRootElement ^ ConvertInMemory();
public Microsoft.Build.Construction.ProjectRootElement ConvertInMemory ();
member this.ConvertInMemory : unit -> Microsoft.Build.Construction.ProjectRootElement
Public Function ConvertInMemory () As ProjectRootElement

Returns

The converted Project.

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

ConvertInMemory(Engine)

Source:
ProjectFileConverter.cs

Caution

Use parameterless ConvertInMemory() method instead

Creates a new project in memory from the OldProjectFile.

public:
 Microsoft::Build::BuildEngine::Project ^ ConvertInMemory(Microsoft::Build::BuildEngine::Engine ^ engine);
[System.Obsolete("Use parameterless ConvertInMemory() method instead")]
public Microsoft.Build.BuildEngine.Project ConvertInMemory (Microsoft.Build.BuildEngine.Engine engine);
public Microsoft.Build.BuildEngine.Project ConvertInMemory (Microsoft.Build.BuildEngine.Engine engine);
[System.Obsolete("Use parameterless ConvertInMemory() method instead")]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public Microsoft.Build.BuildEngine.Project ConvertInMemory (Microsoft.Build.BuildEngine.Engine engine);
[<System.Obsolete("Use parameterless ConvertInMemory() method instead")>]
member this.ConvertInMemory : Microsoft.Build.BuildEngine.Engine -> Microsoft.Build.BuildEngine.Project
member this.ConvertInMemory : Microsoft.Build.BuildEngine.Engine -> Microsoft.Build.BuildEngine.Project
[<System.Obsolete("Use parameterless ConvertInMemory() method instead")>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.ConvertInMemory : Microsoft.Build.BuildEngine.Engine -> Microsoft.Build.BuildEngine.Project
Public Function ConvertInMemory (engine As Engine) As Project

Parameters

engine
Engine

The Engine in which to create the new project.

Returns

The converted Project.

Attributes

Applies to

ConvertInMemory(Engine, ProjectLoadSettings)

Source:
ProjectFileConverter.cs

Caution

Use parameterless ConvertInMemory() method instead

This is the entry point method, which performs the project file format conversion. This method will simply create a new MSBuild Project object in memory, instead of trying to write it to disk.

public:
 Microsoft::Build::BuildEngine::Project ^ ConvertInMemory(Microsoft::Build::BuildEngine::Engine ^ engine, Microsoft::Build::BuildEngine::ProjectLoadSettings projectLoadSettings);
[System.Obsolete("Use parameterless ConvertInMemory() method instead")]
public Microsoft.Build.BuildEngine.Project ConvertInMemory (Microsoft.Build.BuildEngine.Engine engine, Microsoft.Build.BuildEngine.ProjectLoadSettings projectLoadSettings);
public Microsoft.Build.BuildEngine.Project ConvertInMemory (Microsoft.Build.BuildEngine.Engine engine, Microsoft.Build.BuildEngine.ProjectLoadSettings projectLoadSettings);
[<System.Obsolete("Use parameterless ConvertInMemory() method instead")>]
member this.ConvertInMemory : Microsoft.Build.BuildEngine.Engine * Microsoft.Build.BuildEngine.ProjectLoadSettings -> Microsoft.Build.BuildEngine.Project
member this.ConvertInMemory : Microsoft.Build.BuildEngine.Engine * Microsoft.Build.BuildEngine.ProjectLoadSettings -> Microsoft.Build.BuildEngine.Project
Public Function ConvertInMemory (engine As Engine, projectLoadSettings As ProjectLoadSettings) As Project

Parameters

engine
Engine

The Engine in which to create the new project.

projectLoadSettings
ProjectLoadSettings

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

Returns

The converted Project.

Attributes

Applies to