EvaluationContext.Create Method
Definition
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.
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
The EvaluationContext.SharingPolicy to use.
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
The EvaluationContext.SharingPolicy to use.
- 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.