ProjectInstance.DeepCopy Method

Definition

Creates an independent, deep clone of this project and everything in it. Useful for compiling a single file or for keeping build results between builds.

Overloads

DeepCopy()

Create an independent, deep clone of this object and everything in it. Useful for compiling a single file; or for keeping build results between builds. Clone has the same mutability as the original.

DeepCopy(Boolean)

Create an independent, deep clone of this object and everything in it, with specified mutability. Useful for compiling a single file; or for keeping build results between builds.

DeepCopy()

Source:
ProjectInstance.cs

Create an independent, deep clone of this object and everything in it. Useful for compiling a single file; or for keeping build results between builds. Clone has the same mutability as the original.

C#
public Microsoft.Build.Execution.ProjectInstance DeepCopy();

Returns

Creates an independent, deep clone of this project.

Applies to

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DeepCopy(Boolean)

Source:
ProjectInstance.cs

Create an independent, deep clone of this object and everything in it, with specified mutability. Useful for compiling a single file; or for keeping build results between builds.

C#
public Microsoft.Build.Execution.ProjectInstance DeepCopy(bool isImmutable);

Parameters

isImmutable
Boolean

Flag indicating clone mutability.

Returns

An independent, deep clone of this project, with specified mutability.

Applies to

.NET Framework 4.8.1 e outras versões
Produto Versões
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1