1 write to ProjectSystemProject
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
109
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
;
124
ProjectSystemProject
,
132
ProjectSystemProject
.DefaultNamespace = GetRootNamespacePropertyValue(hierarchy);
136
ProjectSystemProject
.MaxLangVersion = maxLangVer;
141
ProjectSystemProject
.RunAnalyzers = runAnayzers;
146
ProjectSystemProject
.RunAnalyzersDuringLiveAnalysis = runAnayzersDuringLiveAnalysis;
155
_externalErrorReporter = new ProjectExternalErrorReporter(
ProjectSystemProject
.Id, projectHierarchyGuid, externalErrorReportingPrefix, language, workspaceImpl);
157
_batchScopeCreator.StartTrackingProject(
ProjectSystemProject
, Hierarchy);
160
public string AssemblyName =>
ProjectSystemProject
.AssemblyName;
163
=>
ProjectSystemProject
.CompilationOutputAssemblyFilePath;
167
_batchScopeCreator.StopTrackingProject(
ProjectSystemProject
);
171
ProjectSystemProject
.RemoveFromWorkspace();
193
ProjectSystemProject
.AddSourceFile(filename, sourceCodeKind, folders);
215
else if (!string.IsNullOrEmpty(
ProjectSystemProject
.FilePath))
222
ProjectSystemProject
.AddSourceFile(filename, sourceCodeKind, folders);
235
ProjectSystemProject
.RemoveSourceFile(filename);
269
if (
ProjectSystemProject
.FilePath == null)
274
outputDirectory = FileUtilities.ResolveRelativePath(outputDirectory, Path.GetDirectoryName(
ProjectSystemProject
.FilePath));
282
ProjectSystemProject
.OutputFilePath = FileUtilities.NormalizeAbsolutePath(Path.Combine(outputDirectory, targetFileName));
286
ProjectSystemProject
.OutputRefFilePath = targetRefPath;
290
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);