3 instantiations of EvaluationContext
Microsoft.Build (3)
Evaluation\Context\EvaluationContext.cs (3)
101
var context = new
EvaluationContext
(
125
EvaluationContext context = new
EvaluationContext
(Policy, fileSystem: null, sdkResolverService: Policy == SharingPolicy.SharedSDKCache ? SdkResolverService : null)
144
return new
EvaluationContext
(Policy, fileSystem, SdkResolverService, FileEntryExpansionCache)
96 references to EvaluationContext
Microsoft.Build (93)
Definition\Project.cs (40)
259
EvaluationContext
evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive)
353
EvaluationContext
evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive)
449
EvaluationContext
evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive)
944
public List<GlobResult> GetAllGlobs(
EvaluationContext
evaluationContext)
966
public List<GlobResult> GetAllGlobs(string itemType,
EvaluationContext
evaluationContext)
1028
public List<ProvenanceResult> GetItemProvenance(string itemToMatch,
EvaluationContext
evaluationContext)
1052
public List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType,
EvaluationContext
evaluationContext)
1082
public List<ProvenanceResult> GetItemProvenance(ProjectItem item,
EvaluationContext
evaluationContext)
1398
public ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings,
EvaluationContext
evaluationContext)
1430
/// <param name="evaluationContext">The <see cref="
EvaluationContext
"/> to use. See <see cref="
EvaluationContext
"/>.</param>
1431
public void ReevaluateIfNecessary(
EvaluationContext
evaluationContext)
1660
public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers,
EvaluationContext
evaluationContext)
1927
public ProjectImpl(Project owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings,
EvaluationContext
evaluationContext)
1962
public ProjectImpl(Project owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings,
EvaluationContext
evaluationContext)
2526
/// See <see cref="ProjectLink.GetAllGlobs(
EvaluationContext
)"/>.
2532
public override List<GlobResult> GetAllGlobs(
EvaluationContext
evaluationContext)
2538
/// See <see cref="ProjectLink.GetAllGlobs(string,
EvaluationContext
)"/>.
2545
public override List<GlobResult> GetAllGlobs(string itemType,
EvaluationContext
evaluationContext)
2561
/// See <see cref="ProjectLink.GetItemProvenance(string,
EvaluationContext
)"/>.
2568
public override List<ProvenanceResult> GetItemProvenance(string itemToMatch,
EvaluationContext
evaluationContext)
2574
/// See <see cref="ProjectLink.GetItemProvenance(string, string,
EvaluationContext
)"/>.
2582
public override List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType,
EvaluationContext
evaluationContext)
2588
/// See <see cref="ProjectLink.GetItemProvenance(ProjectItem,
EvaluationContext
)"/>.
2599
public override List<ProvenanceResult> GetItemProvenance(ProjectItem item,
EvaluationContext
evaluationContext)
2619
private List<ProjectItemElement> GetEvaluatedItemElements(
EvaluationContext
evaluationContext)
3148
/// See <see cref="ProjectLink.CreateProjectInstance(ProjectInstanceSettings,
EvaluationContext
)"/>.
3153
public override ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings,
EvaluationContext
evaluationContext)
3181
/// <param name="evaluationContext">The <see cref="
EvaluationContext
"/> to use. See <see cref="
EvaluationContext
"/>.</param>
3182
public override void ReevaluateIfNecessary(
EvaluationContext
evaluationContext)
3210
public override bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers,
EvaluationContext
evaluationContext)
3549
private void ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation,
EvaluationContext
evaluationContext = null)
3560
EvaluationContext
evaluationContext = null)
3584
EvaluationContext
evaluationContext)
3594
EvaluationContext
evaluationContext = null)
3596
evaluationContext = evaluationContext?.ContextForNewProject() ??
EvaluationContext
.Create(
EvaluationContext
.SharingPolicy.Isolated);
3648
internal void Initialize(IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings,
EvaluationContext
evaluationContext, bool interactive)
4149
public void InitializeForEvaluation(IToolsetProvider toolsetProvider,
EvaluationContext
evaluationContext, LoggingContext loggingContext)
Definition\ProjectOptions.cs (1)
47
public
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.
50
internal static Action<
EvaluationContext
> TestOnlyHookOnCreate { get; set; }
75
/// Factory for <see cref="
EvaluationContext
" />
78
public static
EvaluationContext
Create(SharingPolicy policy)
85
/// Factory for <see cref="
EvaluationContext
" />
94
public static
EvaluationContext
Create(SharingPolicy policy, MSBuildFileSystemBase fileSystem)
101
var
context = new EvaluationContext(
110
internal
EvaluationContext
ContextForNewProject()
125
EvaluationContext
context = new EvaluationContext(Policy, fileSystem: null, sdkResolverService: Policy == SharingPolicy.SharedSDKCache ? SdkResolverService : null)
133
return Assumed.Unreachable<
EvaluationContext
>();
138
/// Creates a copy of this <see cref="
EvaluationContext
"/> with a given <see cref="IFileSystem"/> swapped in.
142
internal
EvaluationContext
ContextWithFileSystem(IFileSystem fileSystem)
Evaluation\Evaluator.cs (3)
178
private readonly
EvaluationContext
_evaluationContext;
240
EvaluationContext
evaluationContext,
347
EvaluationContext
evaluationContext,
Evaluation\Expander.cs (4)
81
internal
EvaluationContext
EvaluationContext { get; }
115
internal Expander(IPropertyProvider<P> properties,
EvaluationContext
evaluationContext,
138
internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items,
EvaluationContext
evaluationContext, LoggingContext loggingContext)
174
EvaluationContext
evaluationContext,
Evaluation\IEvaluatorData.cs (1)
228
void InitializeForEvaluation(IToolsetProvider toolsetProvider,
EvaluationContext
evaluationContext, LoggingContext loggingContext);
Evaluation\LazyItemEvaluator.cs (2)
46
protected
EvaluationContext
EvaluationContext { get; }
52
public LazyItemEvaluator(IEvaluatorData<P, I, M, D> data, IItemFactory<I, I> itemFactory, LoggingContext loggingContext, EvaluationProfiler evaluationProfiler,
EvaluationContext
evaluationContext)
Evaluation\LazyItemEvaluator.EvaluatorData.cs (1)
214
public void InitializeForEvaluation(IToolsetProvider toolsetProvider,
EvaluationContext
evaluationContext, LoggingContext loggingContext)
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (1)
170
public void InitializeForEvaluation(IToolsetProvider toolsetProvider,
EvaluationContext
evaluationContext, LoggingContext loggingContext) => _wrapped.InitializeForEvaluation(toolsetProvider, evaluationContext, loggingContext);
Graph\ProjectGraph.cs (4)
62
private readonly
EvaluationContext
_evaluationContext = null;
458
_evaluationContext =
EvaluationContext
.Create(
EvaluationContext
.SharingPolicy.Shared);
986
EvaluationContext
evaluationContext)
Instance\ProjectInstance.cs (7)
285
internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
EvaluationContext
context, bool interactive = false)
310
ProjectLoadSettings? projectLoadSettings,
EvaluationContext
evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive,
554
ProjectLoadSettings? projectLoadSettings,
EvaluationContext
evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive,
1831
InitializeForEvaluation(IToolsetProvider toolsetProvider,
EvaluationContext
evaluationContext, LoggingContext loggingContext)
3254
EvaluationContext
evaluationContext = null,
3343
evaluationContext = evaluationContext?.ContextForNewProject() ??
EvaluationContext
.Create(
EvaluationContext
.SharingPolicy.Isolated);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (15)
133
/// Facilitate remoting the <see cref="Project.GetAllGlobs(
EvaluationContext
)"/>.
135
public abstract List<GlobResult> GetAllGlobs(
EvaluationContext
evaluationContext);
138
/// Facilitate remoting the <see cref="Project.GetAllGlobs(string,
EvaluationContext
)"/>.
140
public abstract List<GlobResult> GetAllGlobs(string itemType,
EvaluationContext
evaluationContext);
143
/// Facilitate remoting the <see cref="Project.GetItemProvenance(string,
EvaluationContext
)"/>.
145
public abstract List<ProvenanceResult> GetItemProvenance(string itemToMatch,
EvaluationContext
evaluationContext);
148
/// Facilitate remoting the <see cref="Project.GetItemProvenance(string, string,
EvaluationContext
)"/>.
150
public abstract List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType,
EvaluationContext
evaluationContext);
153
/// Facilitate remoting the <see cref="Project.GetItemProvenance(ProjectItem,
EvaluationContext
)"/>.
155
public abstract List<ProvenanceResult> GetItemProvenance(ProjectItem item,
EvaluationContext
evaluationContext);
233
/// Facilitate remoting the <see cref="Project.CreateProjectInstance(ProjectInstanceSettings,
EvaluationContext
)"/>.
235
public abstract ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings,
EvaluationContext
evaluationContext);
243
/// Facilitate remoting the <see cref="Project.ReevaluateIfNecessary(
EvaluationContext
)"/>.
245
public abstract void ReevaluateIfNecessary(
EvaluationContext
evaluationContext);
256
public abstract bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers,
EvaluationContext
evaluationContext);
NuGet.Build.Tasks.Console (3)
MSBuildStaticGraphRestore.cs (3)
1303
EvaluationContext
evaluationContext =
EvaluationContext
.Create(
EvaluationContext
.SharingPolicy.Shared);