次の方法で共有


EvaluationContext.Create Method

Definition

Overloads

Create(EvaluationContext+SharingPolicy)

Factory for EvaluationContext

Create(EvaluationContext+SharingPolicy, MSBuildFileSystemBase)

Factory for EvaluationContext

Create(EvaluationContext+SharingPolicy)

Source:
EvaluationContext.cs

Factory for EvaluationContext

public:
 static Microsoft::Build::Evaluation::Context::EvaluationContext ^ Create(Microsoft::Build::Evaluation::Context::EvaluationContext::SharingPolicy policy);
public static Microsoft.Build.Evaluation.Context.EvaluationContext Create (Microsoft.Build.Evaluation.Context.EvaluationContext.SharingPolicy policy);
static member Create : Microsoft.Build.Evaluation.Context.EvaluationContext.SharingPolicy -> Microsoft.Build.Evaluation.Context.EvaluationContext
Public Shared Function Create (policy As EvaluationContext.SharingPolicy) As EvaluationContext

Parameters

Returns

Applies to

Create(EvaluationContext+SharingPolicy, MSBuildFileSystemBase)

Source:
EvaluationContext.cs

Factory for EvaluationContext

public:
 static Microsoft::Build::Evaluation::Context::EvaluationContext ^ Create(Microsoft::Build::Evaluation::Context::EvaluationContext::SharingPolicy policy, Microsoft::Build::FileSystem::MSBuildFileSystemBase ^ fileSystem);
public static Microsoft.Build.Evaluation.Context.EvaluationContext Create (Microsoft.Build.Evaluation.Context.EvaluationContext.SharingPolicy policy, Microsoft.Build.FileSystem.MSBuildFileSystemBase fileSystem);
static member Create : Microsoft.Build.Evaluation.Context.EvaluationContext.SharingPolicy * Microsoft.Build.FileSystem.MSBuildFileSystemBase -> Microsoft.Build.Evaluation.Context.EvaluationContext
Public Shared Function Create (policy As EvaluationContext.SharingPolicy, fileSystem As MSBuildFileSystemBase) As EvaluationContext

Parameters

fileSystem
MSBuildFileSystemBase

The Microsoft.Build.Shared.FileSystem.IFileSystem to use. This parameter is compatible only with Shared. The method throws if a file system is used with Isolated or SharedSDKCache. The reasoning is that these values guarantee not reusing file system caches between evaluations, and the passed in fileSystem might cache state.

Returns

Applies to