1 write to ProjectSystemProject
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
105
ProjectSystemProject
= threadingContext.JoinableTaskFactory.Run(() => projectFactory.CreateAndAddToWorkspaceAsync(
53 references to ProjectSystemProject
Microsoft.VisualStudio.LanguageServices (30)
ProjectSystem\Legacy\AbstractLegacyProject.cs (21)
40
internal ProjectSystemProject Test_ProjectSystemProject =>
ProjectSystemProject
;
120
ProjectSystemProject
,
128
ProjectSystemProject
.DefaultNamespace = GetRootNamespacePropertyValue(hierarchy);
132
ProjectSystemProject
.MaxLangVersion = maxLangVer;
137
ProjectSystemProject
.RunAnalyzers = runAnayzers;
142
ProjectSystemProject
.RunAnalyzersDuringLiveAnalysis = runAnayzersDuringLiveAnalysis;
151
_externalErrorReporter = new ProjectExternalErrorReporter(
ProjectSystemProject
.Id, projectHierarchyGuid, externalErrorReportingPrefix, language, workspaceImpl);
153
_batchScopeCreator.StartTrackingProject(
ProjectSystemProject
, Hierarchy);
156
public string AssemblyName =>
ProjectSystemProject
.AssemblyName;
159
=>
ProjectSystemProject
.CompilationOutputAssemblyFilePath;
163
_batchScopeCreator.StopTrackingProject(
ProjectSystemProject
);
167
ProjectSystemProject
.RemoveFromWorkspace();
189
ProjectSystemProject
.AddSourceFile(filename, sourceCodeKind, folders);
211
else if (!string.IsNullOrEmpty(
ProjectSystemProject
.FilePath))
218
ProjectSystemProject
.AddSourceFile(filename, sourceCodeKind, folders);
231
ProjectSystemProject
.RemoveSourceFile(filename);
265
if (
ProjectSystemProject
.FilePath == null)
270
outputDirectory = FileUtilities.ResolveRelativePath(outputDirectory, Path.GetDirectoryName(
ProjectSystemProject
.FilePath));
278
ProjectSystemProject
.OutputFilePath = FileUtilities.NormalizeAbsolutePath(Path.Combine(outputDirectory, targetFileName));
282
ProjectSystemProject
.OutputRefFilePath = targetRefPath;
286
ProjectSystemProject
.OutputRefFilePath = null;
ProjectSystem\Legacy\AbstractLegacyProject_IAnalyzerConfigFileHost.cs (2)
12
=>
ProjectSystemProject
.AddAnalyzerConfigFile(filePath);
15
=>
ProjectSystemProject
.RemoveAnalyzerConfigFile(filePath);
ProjectSystem\Legacy\AbstractLegacyProject_IAnalyzerHost.cs (4)
15
=>
ProjectSystemProject
.AddAnalyzerReference(analyzerAssemblyFullPath);
18
=>
ProjectSystemProject
.RemoveAnalyzerReference(analyzerAssemblyFullPath);
38
=>
ProjectSystemProject
.AddAdditionalFile(additionalFilePath, folders: GetFolderNamesForDocument(additionalFilePath));
41
=>
ProjectSystemProject
.RemoveAdditionalFile(additionalFilePath);
ProjectSystem\Legacy\AbstractLegacyProject_IProjectSiteEx.cs (1)
18
=> _batchScopes.Push(
ProjectSystemProject
.CreateBatchScope());
ProjectSystem\Legacy\AbstractLegacyProject_IVsHierarchyEvents.cs (2)
66
ProjectSystemProject
.FilePath = filePath;
71
ProjectSystemProject
.DisplayName = name;
Microsoft.VisualStudio.LanguageServices.CSharp (23)
ProjectSystemShim\CSharpProjectShim.cs (2)
68
this.ProjectCodeModel = componentModel.GetService<IProjectCodeModelFactory>().CreateProjectCodeModel(
ProjectSystemProject
.Id, this);
69
this.ProjectSystemProjectOptionsProcessor = new OptionsProcessor(this.
ProjectSystemProject
, Workspace.Services.SolutionServices);
ProjectSystemShim\CSharpProjectShim.ICSharpProjectSite.cs (8)
76
ProjectSystemProject
.AddMetadataReference(filename, new MetadataReferenceProperties(embedInteropTypes: embedInteropTypes));
85
ProjectSystemProject
.RemoveMetadataReference(filename, properties:
ProjectSystemProject
.GetPropertiesForMetadataReference(filename).Single());
132
var project = Workspace.CurrentSolution.GetRequiredProject(
ProjectSystemProject
.Id);
170
using (
ProjectSystemProject
.CreateBatchScope())
172
var existingProperties =
ProjectSystemProject
.GetPropertiesForMetadataReference(file).Single();
173
ProjectSystemProject
.RemoveMetadataReference(file, existingProperties);
174
ProjectSystemProject
.AddMetadataReference(file, existingProperties.WithAliases(currentAliases));
ProjectSystemShim\CSharpProjectShim.ICSharpVenusProjectSite.cs (11)
24
var projectReferencesToRemove =
ProjectSystemProject
.GetProjectReferences().Where(p => p.ProjectId == projectSite.
ProjectSystemProject
.Id).ToList();
33
ProjectSystemProject
.RemoveProjectReference(new ProjectReference(projectSite.
ProjectSystemProject
.Id));
44
using (
ProjectSystemProject
.CreateBatchScope())
46
var existingProjectReference =
ProjectSystemProject
.GetProjectReferences().Single(p => p.ProjectId == projectSite.
ProjectSystemProject
.Id);
48
ProjectSystemProject
.RemoveProjectReference(existingProjectReference);
49
ProjectSystemProject
.AddProjectReference(new ProjectReference(existingProjectReference.ProjectId, ImmutableArray.Create(currentAliases), existingProjectReference.EmbedInteropTypes));
57
ProjectSystemProject
.AddProjectReference(new ProjectReference(projectSite.
ProjectSystemProject
.Id, embedInteropTypes: optionID == CompilerOptions.OPTID_IMPORTSUSINGNOPIA));
ProjectSystemShim\CSharpProjectShim.ICSInputSet.cs (2)
48
ProjectSystemProject
.CompilationOutputAssemblyFilePath = filename;
53
ProjectSystemProject
.AssemblyName = Path.GetFileNameWithoutExtension(filename);