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)
145
return new
EvaluationContext
(Policy, fileSystem, SdkResolverService, FileEntryExpansionCache)
104 references to EvaluationContext
dotnet (9)
Commands\Test\MTP\MSBuildUtility.cs (7)
71
var
evaluationContext =
EvaluationContext
.Create(
EvaluationContext
.SharingPolicy.Shared);
93
var
evaluationContext =
EvaluationContext
.Create(
EvaluationContext
.SharingPolicy.Shared);
260
EvaluationContext
evaluationContext,
Commands\Test\MTP\SolutionAndProjectUtility.cs (2)
157
EvaluationContext
evaluationContext,
224
EvaluationContext
evaluationContext,
Microsoft.Build (92)
Definition\Project.cs (40)
271
EvaluationContext
evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive)
365
EvaluationContext
evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive)
461
EvaluationContext
evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive)
938
public List<GlobResult> GetAllGlobs(
EvaluationContext
evaluationContext)
960
public List<GlobResult> GetAllGlobs(string itemType,
EvaluationContext
evaluationContext)
1022
public List<ProvenanceResult> GetItemProvenance(string itemToMatch,
EvaluationContext
evaluationContext)
1046
public List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType,
EvaluationContext
evaluationContext)
1076
public List<ProvenanceResult> GetItemProvenance(ProjectItem item,
EvaluationContext
evaluationContext)
1392
public ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings,
EvaluationContext
evaluationContext)
1424
/// <param name="evaluationContext">The <see cref="
EvaluationContext
"/> to use. See <see cref="
EvaluationContext
"/>.</param>
1425
public void ReevaluateIfNecessary(
EvaluationContext
evaluationContext)
1643
public bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers,
EvaluationContext
evaluationContext)
1910
public ProjectImpl(Project owner, XmlReader xmlReader, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings,
EvaluationContext
evaluationContext)
1945
public ProjectImpl(Project owner, string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings,
EvaluationContext
evaluationContext)
2508
/// See <see cref="ProjectLink.GetAllGlobs(
EvaluationContext
)"/>.
2514
public override List<GlobResult> GetAllGlobs(
EvaluationContext
evaluationContext)
2520
/// See <see cref="ProjectLink.GetAllGlobs(string,
EvaluationContext
)"/>.
2527
public override List<GlobResult> GetAllGlobs(string itemType,
EvaluationContext
evaluationContext)
2701
/// See <see cref="ProjectLink.GetItemProvenance(string,
EvaluationContext
)"/>.
2708
public override List<ProvenanceResult> GetItemProvenance(string itemToMatch,
EvaluationContext
evaluationContext)
2714
/// See <see cref="ProjectLink.GetItemProvenance(string, string,
EvaluationContext
)"/>.
2722
public override List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType,
EvaluationContext
evaluationContext)
2728
/// See <see cref="ProjectLink.GetItemProvenance(ProjectItem,
EvaluationContext
)"/>.
2739
public override List<ProvenanceResult> GetItemProvenance(ProjectItem item,
EvaluationContext
evaluationContext)
2759
private List<ProjectItemElement> GetEvaluatedItemElements(
EvaluationContext
evaluationContext)
3288
/// See <see cref="ProjectLink.CreateProjectInstance(ProjectInstanceSettings,
EvaluationContext
)"/>.
3293
public override ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings,
EvaluationContext
evaluationContext)
3321
/// <param name="evaluationContext">The <see cref="
EvaluationContext
"/> to use. See <see cref="
EvaluationContext
"/>.</param>
3322
public override void ReevaluateIfNecessary(
EvaluationContext
evaluationContext)
3349
public override bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers,
EvaluationContext
evaluationContext)
3688
private void ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation,
EvaluationContext
evaluationContext = null)
3699
EvaluationContext
evaluationContext = null)
3723
EvaluationContext
evaluationContext)
3733
EvaluationContext
evaluationContext = null)
3735
evaluationContext = evaluationContext?.ContextForNewProject() ??
EvaluationContext
.Create(
EvaluationContext
.SharingPolicy.Isolated);
3787
internal void Initialize(IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectLoadSettings loadSettings,
EvaluationContext
evaluationContext, bool interactive)
4288
public void InitializeForEvaluation(IToolsetProvider toolsetProvider,
EvaluationContext
evaluationContext, LoggingContext loggingContext)
Definition\ProjectOptions.cs (1)
46
public
EvaluationContext
EvaluationContext { get; set; }
Evaluation\Context\EvaluationContext.cs (13)
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)
139
/// Creates a copy of this <see cref="
EvaluationContext
"/> with a given <see cref="IFileSystem"/> swapped in.
143
internal
EvaluationContext
ContextWithFileSystem(IFileSystem fileSystem)
Evaluation\Evaluator.cs (3)
153
private readonly
EvaluationContext
_evaluationContext;
215
EvaluationContext
evaluationContext,
319
EvaluationContext
evaluationContext,
Evaluation\Expander.cs (4)
322
internal
EvaluationContext
EvaluationContext { get; }
356
internal Expander(IPropertyProvider<P> properties,
EvaluationContext
evaluationContext,
379
internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items,
EvaluationContext
evaluationContext, LoggingContext loggingContext)
415
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;
430
_evaluationContext =
EvaluationContext
.Create(
EvaluationContext
.SharingPolicy.Shared);
853
EvaluationContext
evaluationContext)
Instance\ProjectInstance.cs (7)
278
internal ProjectInstance(string projectFile, IDictionary<string, string> globalProperties, string toolsVersion, string subToolsetVersion, ProjectCollection projectCollection,
EvaluationContext
context, bool interactive = false)
302
ProjectLoadSettings? projectLoadSettings,
EvaluationContext
evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive)
544
ProjectLoadSettings? projectLoadSettings,
EvaluationContext
evaluationContext, IDirectoryCacheFactory directoryCacheFactory, bool interactive)
1787
InitializeForEvaluation(IToolsetProvider toolsetProvider,
EvaluationContext
evaluationContext, LoggingContext loggingContext)
3201
EvaluationContext
evaluationContext = null,
3289
evaluationContext = evaluationContext?.ContextForNewProject() ??
EvaluationContext
.Create(
EvaluationContext
.SharingPolicy.Isolated);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (15)
132
/// Facilitate remoting the <see cref="Project.GetAllGlobs(
EvaluationContext
)"/>.
134
public abstract List<GlobResult> GetAllGlobs(
EvaluationContext
evaluationContext);
137
/// Facilitate remoting the <see cref="Project.GetAllGlobs(string,
EvaluationContext
)"/>.
139
public abstract List<GlobResult> GetAllGlobs(string itemType,
EvaluationContext
evaluationContext);
142
/// Facilitate remoting the <see cref="Project.GetItemProvenance(string,
EvaluationContext
)"/>.
144
public abstract List<ProvenanceResult> GetItemProvenance(string itemToMatch,
EvaluationContext
evaluationContext);
147
/// Facilitate remoting the <see cref="Project.GetItemProvenance(string, string,
EvaluationContext
)"/>.
149
public abstract List<ProvenanceResult> GetItemProvenance(string itemToMatch, string itemType,
EvaluationContext
evaluationContext);
152
/// Facilitate remoting the <see cref="Project.GetItemProvenance(ProjectItem,
EvaluationContext
)"/>.
154
public abstract List<ProvenanceResult> GetItemProvenance(ProjectItem item,
EvaluationContext
evaluationContext);
232
/// Facilitate remoting the <see cref="Project.CreateProjectInstance(ProjectInstanceSettings,
EvaluationContext
)"/>.
234
public abstract ProjectInstance CreateProjectInstance(ProjectInstanceSettings settings,
EvaluationContext
evaluationContext);
242
/// Facilitate remoting the <see cref="Project.ReevaluateIfNecessary(
EvaluationContext
)"/>.
244
public abstract void ReevaluateIfNecessary(
EvaluationContext
evaluationContext);
254
public abstract bool Build(string[] targets, IEnumerable<ILogger> loggers, IEnumerable<ForwardingLoggerRecord> remoteLoggers,
EvaluationContext
evaluationContext);
NuGet.Build.Tasks.Console (3)
MSBuildStaticGraphRestore.cs (3)
1273
EvaluationContext
evaluationContext =
EvaluationContext
.Create(
EvaluationContext
.SharingPolicy.Shared);