1 write to ProjectSystemProject
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
106
ProjectSystemProject
= threadingContext.JoinableTaskFactory.Run(() => projectFactory.CreateAndAddToWorkspaceAsync(
75 references to ProjectSystemProject
Microsoft.VisualStudio.LanguageServices (30)
ProjectSystem\Legacy\AbstractLegacyProject.cs (21)
38
internal ProjectSystemProject Test_ProjectSystemProject =>
ProjectSystemProject
;
121
ProjectSystemProject
,
129
ProjectSystemProject
.DefaultNamespace = GetRootNamespacePropertyValue(hierarchy);
133
ProjectSystemProject
.MaxLangVersion = maxLangVer;
138
ProjectSystemProject
.RunAnalyzers = runAnayzers;
143
ProjectSystemProject
.RunAnalyzersDuringLiveAnalysis = runAnayzersDuringLiveAnalysis;
150
_externalErrorReporter = new ProjectExternalErrorReporter(
ProjectSystemProject
.Id, externalErrorReportingPrefix, language, workspaceImpl);
152
_batchScopeCreator.StartTrackingProject(
ProjectSystemProject
, Hierarchy);
155
public string AssemblyName =>
ProjectSystemProject
.AssemblyName;
158
=>
ProjectSystemProject
.CompilationOutputAssemblyFilePath;
162
_batchScopeCreator.StopTrackingProject(
ProjectSystemProject
);
166
ProjectSystemProject
.RemoveFromWorkspace();
194
ProjectSystemProject
.AddSourceFile(filename, sourceCodeKind, folders);
216
else if (!string.IsNullOrEmpty(
ProjectSystemProject
.FilePath))
223
ProjectSystemProject
.AddSourceFile(filename, sourceCodeKind, folders);
236
ProjectSystemProject
.RemoveSourceFile(filename);
270
if (
ProjectSystemProject
.FilePath == null)
275
outputDirectory = FileUtilities.ResolveRelativePath(outputDirectory, Path.GetDirectoryName(
ProjectSystemProject
.FilePath));
283
ProjectSystemProject
.OutputFilePath = FileUtilities.NormalizeAbsolutePath(Path.Combine(outputDirectory, targetFileName));
287
ProjectSystemProject
.OutputRefFilePath = targetRefPath;
291
ProjectSystemProject
.OutputRefFilePath = null;
ProjectSystem\Legacy\AbstractLegacyProject_IAnalyzerConfigFileHost.cs (2)
14
=>
ProjectSystemProject
.AddAnalyzerConfigFile(filePath);
17
=>
ProjectSystemProject
.RemoveAnalyzerConfigFile(filePath);
ProjectSystem\Legacy\AbstractLegacyProject_IAnalyzerHost.cs (4)
16
=>
ProjectSystemProject
.AddAnalyzerReference(analyzerAssemblyFullPath);
19
=>
ProjectSystemProject
.RemoveAnalyzerReference(analyzerAssemblyFullPath);
39
=>
ProjectSystemProject
.AddAdditionalFile(additionalFilePath);
42
=>
ProjectSystemProject
.RemoveAdditionalFile(additionalFilePath);
ProjectSystem\Legacy\AbstractLegacyProject_IProjectSiteEx.cs (1)
21
=> _batchScopes.Push(
ProjectSystemProject
.CreateBatchScope());
ProjectSystem\Legacy\AbstractLegacyProject_IVsHierarchyEvents.cs (2)
68
ProjectSystemProject
.FilePath = filePath;
73
ProjectSystemProject
.DisplayName = name;
Microsoft.VisualStudio.LanguageServices.CSharp (23)
ProjectSystemShim\CSharpProjectShim.cs (2)
69
this.ProjectCodeModel = componentModel.GetService<IProjectCodeModelFactory>().CreateProjectCodeModel(
ProjectSystemProject
.Id, this);
70
this.ProjectSystemProjectOptionsProcessor = new OptionsProcessor(this.
ProjectSystemProject
, Workspace.Services.SolutionServices);
ProjectSystemShim\CSharpProjectShim.ICSharpProjectSite.cs (8)
75
ProjectSystemProject
.AddMetadataReference(filename, new MetadataReferenceProperties(embedInteropTypes: embedInteropTypes));
84
ProjectSystemProject
.RemoveMetadataReference(filename, properties:
ProjectSystemProject
.GetPropertiesForMetadataReference(filename).Single());
123
var project = Workspace.CurrentSolution.GetRequiredProject(
ProjectSystemProject
.Id);
167
using (
ProjectSystemProject
.CreateBatchScope())
169
var existingProperties =
ProjectSystemProject
.GetPropertiesForMetadataReference(file).Single();
170
ProjectSystemProject
.RemoveMetadataReference(file, existingProperties);
171
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);
Microsoft.VisualStudio.LanguageServices.VisualBasic (22)
ProjectSystemShim\VisualBasicCodeModelInstanceFactory.vb (1)
34
Dim document = _project.Workspace.CurrentSolution.GetDocumentIdsWithFilePath(filePath).FirstOrDefault(Function(d) d.ProjectId Is _project.
ProjectSystemProject
.Id)
ProjectSystemShim\VisualBasicProject.vb (21)
51
ProjectCodeModel = componentModel.GetService(Of IProjectCodeModelFactory).CreateProjectCodeModel(
ProjectSystemProject
.Id, New VisualBasicCodeModelInstanceFactory(Me))
52
VisualStudioProjectOptionsProcessor = New OptionsProcessor(
ProjectSystemProject
, Workspace.Services.SolutionServices)
73
ProjectSystemProject
.AddMetadataReference(wszFileName, New MetadataReferenceProperties(embedInteropTypes:=True))
83
ProjectSystemProject
.AddMetadataReference(wszFileName, MetadataReferenceProperties.Assembly)
97
ProjectSystemProject
.AddProjectReference(New ProjectReference(referencedProject.
ProjectSystemProject
.Id, embedInteropTypes:=True))
117
ProjectSystemProject
.AddProjectReference(New ProjectReference(referencedProject.
ProjectSystemProject
.Id))
201
Dim project = Workspace.CurrentSolution.GetProject(
ProjectSystemProject
.Id)
273
ProjectSystemProject
.RemoveMetadataReference(wszFileName,
ProjectSystemProject
.GetPropertiesForMetadataReference(wszFileName).Single())
285
Dim projectReference =
ProjectSystemProject
.GetProjectReferences().Single(Function(p) p.ProjectId = referencedProject.
ProjectSystemProject
.Id)
286
ProjectSystemProject
.RemoveProjectReference(projectReference)
318
ProjectSystemProject
.AssemblyName = Path.GetFileNameWithoutExtension(pCompilerOptions.wszExeName)
325
ProjectSystemProject
.CompilationOutputAssemblyFilePath = Path.Combine(pCompilerOptions.wszOutputPath, pCompilerOptions.wszExeName)
327
ProjectSystemProject
.CompilationOutputAssemblyFilePath = Nothing
337
Using batchScope =
ProjectSystemProject
.CreateBatchScope()
344
ProjectSystemProject
.RemoveMetadataReference(oldRuntimeLibrary, MetadataReferenceProperties.Assembly)
352
If
ProjectSystemProject
.ContainsMetadataReference(newRuntimeLibrary, MetadataReferenceProperties.Assembly) Then
355
ProjectSystemProject
.AddMetadataReference(newRuntimeLibrary, MetadataReferenceProperties.Assembly)