1 write to _loadedProject
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\ProjectFile\ProjectFile.cs (1)
34
_loadedProject
= loadedProject;
17 references to _loadedProject
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (17)
MSBuild\ProjectFile\ProjectFile.cs (17)
28
public virtual string FilePath =>
_loadedProject
?.FullPath ?? string.Empty;
53
if (
_loadedProject
is null)
55
return [ProjectFileInfo.CreateEmpty(Language,
_loadedProject
?.FullPath)];
58
var targetFrameworkValue =
_loadedProject
.GetPropertyValue(PropertyNames.TargetFramework);
59
var targetFrameworksValue =
_loadedProject
.GetPropertyValue(PropertyNames.TargetFrameworks);
69
if (!
_loadedProject
.GlobalProperties.TryGetValue(PropertyNames.TargetFramework, out var initialGlobalTargetFrameworkValue))
75
_loadedProject
.SetGlobalProperty(PropertyNames.TargetFramework, targetFramework);
76
_loadedProject
.ReevaluateIfNecessary();
85
_loadedProject
.RemoveGlobalProperty(PropertyNames.TargetFramework);
89
_loadedProject
.SetGlobalProperty(PropertyNames.TargetFramework, initialGlobalTargetFrameworkValue);
92
_loadedProject
.ReevaluateIfNecessary();
99
projectFileInfo ??= ProjectFileInfo.CreateEmpty(Language,
_loadedProject
?.FullPath);
106
if (
_loadedProject
is null)
108
return ProjectFileInfo.CreateEmpty(Language,
_loadedProject
?.FullPath);
111
var project = await _buildManager.BuildProjectAsync(
_loadedProject
, Log, cancellationToken).ConfigureAwait(false);
115
: ProjectFileInfo.CreateEmpty(Language,
_loadedProject
.FullPath);
182
var fileGlobs =
_loadedProject
?.GetAllGlobs().Select(GetFileGlobs).ToImmutableArray() ?? [];