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)
28public virtual string FilePath => _loadedProject?.FullPath ?? string.Empty; 53if (_loadedProject is null) 55return [ProjectFileInfo.CreateEmpty(Language, _loadedProject?.FullPath)]; 58var targetFrameworkValue = _loadedProject.GetPropertyValue(PropertyNames.TargetFramework); 59var targetFrameworksValue = _loadedProject.GetPropertyValue(PropertyNames.TargetFrameworks); 69if (!_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(); 99projectFileInfo ??= ProjectFileInfo.CreateEmpty(Language, _loadedProject?.FullPath); 106if (_loadedProject is null) 108return ProjectFileInfo.CreateEmpty(Language, _loadedProject?.FullPath); 111var project = await _buildManager.BuildProjectAsync(_loadedProject, Log, cancellationToken).ConfigureAwait(false); 115: ProjectFileInfo.CreateEmpty(Language, _loadedProject.FullPath); 182var fileGlobs = _loadedProject?.GetAllGlobs().Select(GetFileGlobs).ToImmutableArray() ?? [];