3 instantiations of EvaluationContext
Microsoft.Build (3)
Evaluation\Context\EvaluationContext.cs (3)
101var context = new EvaluationContext( 125EvaluationContext context = new EvaluationContext(Policy, fileSystem: null, sdkResolverService: Policy == SharingPolicy.SharedSDKCache ? SdkResolverService : null) 144return new EvaluationContext(Policy, fileSystem, SdkResolverService, FileEntryExpansionCache)
111 references to EvaluationContext
dotnet (15)
Commands\Test\MTP\MSBuildUtility.cs (10)
74var evaluationContext = EvaluationContext.Create(EvaluationContext.SharingPolicy.Shared); 109var evaluationContext = EvaluationContext.Create(EvaluationContext.SharingPolicy.Shared); 176var evaluationContext = EvaluationContext.Create(EvaluationContext.SharingPolicy.Shared); 409EvaluationContext evaluationContext,
Commands\Test\MTP\SolutionAndProjectUtility.cs (5)
171EvaluationContext evaluationContext, 239EvaluationContext evaluationContext, 407EvaluationContext? evaluationContext = null, 431evaluationContext ??= EvaluationContext.Create(EvaluationContext.SharingPolicy.Shared);
Microsoft.Build (93)
Definition\Project.cs (40)
271EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive) 365EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive) 461EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive) 956public List<GlobResult> GetAllGlobs(EvaluationContext evaluationContext) 978public List<GlobResult> GetAllGlobs(string itemType, EvaluationContext evaluationContext) 1040public List<ProvenanceResult> GetItemProvenance(string itemToMatch, EvaluationContext evaluationContext) 1064public List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType, EvaluationContext evaluationContext) 1094public List<ProvenanceResult> GetItemProvenance(ProjectItem item, EvaluationContext evaluationContext) 1410public ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext) 1442/// <param name="evaluationContext">The <see cref="EvaluationContext"/> to use. See <see cref="EvaluationContext"/>.</param> 1443public void ReevaluateIfNecessary(EvaluationContext evaluationContext) 1672public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext) 1939public ProjectImpl(Project owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) 1974public ProjectImpl(Project owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext) 2538/// See <see cref="ProjectLink.GetAllGlobs(EvaluationContext)"/>. 2544public override List<GlobResult> GetAllGlobs(EvaluationContext evaluationContext) 2550/// See <see cref="ProjectLink.GetAllGlobs(string, EvaluationContext)"/>. 2557public override List<GlobResult> GetAllGlobs(string itemType, EvaluationContext evaluationContext) 2731/// See <see cref="ProjectLink.GetItemProvenance(string, EvaluationContext)"/>. 2738public override List<ProvenanceResult> GetItemProvenance(string itemToMatch, EvaluationContext evaluationContext) 2744/// See <see cref="ProjectLink.GetItemProvenance(string, string, EvaluationContext)"/>. 2752public override List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType, EvaluationContext evaluationContext) 2758/// See <see cref="ProjectLink.GetItemProvenance(ProjectItem, EvaluationContext)"/>. 2769public override List<ProvenanceResult> GetItemProvenance(ProjectItem item, EvaluationContext evaluationContext) 2789private List<ProjectItemElement> GetEvaluatedItemElements(EvaluationContext evaluationContext) 3318/// See <see cref="ProjectLink.CreateProjectInstance(ProjectInstanceSettings, EvaluationContext)"/>. 3323public override ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext) 3351/// <param name="evaluationContext">The <see cref="EvaluationContext"/> to use. See <see cref="EvaluationContext"/>.</param> 3352public override void ReevaluateIfNecessary(EvaluationContext evaluationContext) 3380public override bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext) 3719private void ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, EvaluationContext evaluationContext = null) 3730EvaluationContext evaluationContext = null) 3754EvaluationContext evaluationContext) 3764EvaluationContext evaluationContext = null) 3766evaluationContext = evaluationContext?.ContextForNewProject() ?? EvaluationContext.Create(EvaluationContext.SharingPolicy.Isolated); 3818internal void Initialize(IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext, bool interactive) 4319public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext)
Definition\ProjectOptions.cs (1)
47public EvaluationContext EvaluationContext { get; set; }
Evaluation\Context\EvaluationContext.cs (14)
29/// Instructs the <see cref="EvaluationContext"/> to reuse all cached state between the different project evaluations that use it. 34/// Instructs the <see cref="EvaluationContext"/> to not reuse any cached state between the different project evaluations that use it. 39/// Instructs the <see cref="EvaluationContext"/> to reuse SDK resolver cache between the different project evaluations that use it. 50internal static Action<EvaluationContext> TestOnlyHookOnCreate { get; set; } 75/// Factory for <see cref="EvaluationContext" /> 78public static EvaluationContext Create(SharingPolicy policy) 85/// Factory for <see cref="EvaluationContext" /> 94public static EvaluationContext Create(SharingPolicy policy, MSBuildFileSystemBase fileSystem) 101var context = new EvaluationContext( 110internal EvaluationContext ContextForNewProject() 125EvaluationContext context = new EvaluationContext(Policy, fileSystem: null, sdkResolverService: Policy == SharingPolicy.SharedSDKCache ? SdkResolverService : null) 133return Assumed.Unreachable<EvaluationContext>(); 138/// Creates a copy of this <see cref="EvaluationContext"/> with a given <see cref="IFileSystem"/> swapped in. 142internal EvaluationContext ContextWithFileSystem(IFileSystem fileSystem)
Evaluation\Evaluator.cs (3)
165private readonly EvaluationContext _evaluationContext; 227EvaluationContext evaluationContext, 333EvaluationContext evaluationContext,
Evaluation\Expander.cs (4)
81internal EvaluationContext EvaluationContext { get; } 115internal Expander(IPropertyProvider<P> properties, EvaluationContext evaluationContext, 138internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, EvaluationContext evaluationContext, LoggingContext loggingContext) 174EvaluationContext evaluationContext,
Evaluation\IEvaluatorData.cs (1)
228void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext);
Evaluation\LazyItemEvaluator.cs (2)
46protected EvaluationContext EvaluationContext { get; } 52public LazyItemEvaluator(IEvaluatorData<P, I, M, D> data, IItemFactory<I, I> itemFactory, LoggingContext loggingContext, EvaluationProfiler evaluationProfiler, EvaluationContext evaluationContext)
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
214public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext)
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
170public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) => _wrapped.InitializeForEvaluation(toolsetProvider, evaluationContext, loggingContext);
Graph\ProjectGraph.cs (4)
62private readonly EvaluationContext _evaluationContext = null; 458_evaluationContext = EvaluationContext.Create(EvaluationContext.SharingPolicy.Shared); 986EvaluationContext evaluationContext)
Instance\ProjectInstance.cs (7)
285internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection, EvaluationContext context, bool interactive = false) 310ProjectLoadSettings? projectLoadSettings, EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive, 554ProjectLoadSettings? projectLoadSettings, EvaluationContext evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive, 1831InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 3254EvaluationContext evaluationContext = null, 3343evaluationContext = evaluationContext?.ContextForNewProject() ?? EvaluationContext.Create(EvaluationContext.SharingPolicy.Isolated);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (15)
133/// Facilitate remoting the <see cref="Project.GetAllGlobs(EvaluationContext)"/>. 135public abstract List<GlobResult> GetAllGlobs(EvaluationContext evaluationContext); 138/// Facilitate remoting the <see cref="Project.GetAllGlobs(string, EvaluationContext)"/>. 140public abstract List<GlobResult> GetAllGlobs(string itemType, EvaluationContext evaluationContext); 143/// Facilitate remoting the <see cref="Project.GetItemProvenance(string, EvaluationContext)"/>. 145public abstract List<ProvenanceResult> GetItemProvenance(string itemToMatch, EvaluationContext evaluationContext); 148/// Facilitate remoting the <see cref="Project.GetItemProvenance(string, string, EvaluationContext)"/>. 150public abstract List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType, EvaluationContext evaluationContext); 153/// Facilitate remoting the <see cref="Project.GetItemProvenance(ProjectItem, EvaluationContext)"/>. 155public abstract List<ProvenanceResult> GetItemProvenance(ProjectItem item, EvaluationContext evaluationContext); 233/// Facilitate remoting the <see cref="Project.CreateProjectInstance(ProjectInstanceSettings, EvaluationContext)"/>. 235public abstract ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings, EvaluationContext evaluationContext); 243/// Facilitate remoting the <see cref="Project.ReevaluateIfNecessary(EvaluationContext)"/>. 245public abstract void ReevaluateIfNecessary(EvaluationContext evaluationContext); 256public abstract bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers, EvaluationContext evaluationContext);
NuGet.Build.Tasks.Console (3)
MSBuildStaticGraphRestore.cs (3)
1303EvaluationContext evaluationContext = EvaluationContext.Create(EvaluationContext.SharingPolicy.Shared);