1 write to _project
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\WorkspaceProject.cs (1)
23
_project
= project;
32 references to _project
Microsoft.CodeAnalysis.LanguageServer (32)
HostWorkspace\WorkspaceProject.cs (32)
24
_optionsProcessor = new ProjectSystemProjectOptionsProcessor(
_project
, solutionServices);
35
_project
.AddAdditionalFile(additionalFilePath);
44
_project
.AddAdditionalFile(additionalFile.FilePath, folders: [.. additionalFile.FolderNames]);
53
_project
.AddAnalyzerConfigFile(analyzerConfigPath);
62
_project
.AddAnalyzerReference(analyzerPath);
71
_project
.AddDynamicSourceFile(dynamicFilePath, folders: []);
80
_project
.AddMetadataReference(metadataReference.FilePath, metadataReference.CreateProperties());
89
_project
.AddSourceFile(sourceFile.FilePath, folders: [.. sourceFile.FolderNames]);
95
_project
.RemoveFromWorkspace();
103
_project
.RemoveAdditionalFile(additionalFilePath);
112
_project
.RemoveAnalyzerConfigFile(analyzerConfigPath);
121
_project
.RemoveAnalyzerReference(analyzerPath);
130
_project
.RemoveDynamicSourceFile(dynamicFilePath);
139
_project
.RemoveMetadataReference(metadataReference.FilePath, metadataReference.CreateProperties());
148
_project
.RemoveSourceFile(sourceFile);
164
case "AssemblyName":
_project
.AssemblyName = value; break;
165
case "IntermediateAssembly":
_project
.CompilationOutputAssemblyFilePath = GetFullyQualifiedPath(valueOrNull); break;
166
case "MaxSupportedLangVersion":
_project
.MaxLangVersion = value; break;
167
case "RootNamespace":
_project
.DefaultNamespace = valueOrNull; break;
168
case "RunAnalyzers":
_project
.RunAnalyzers = bool.Parse(valueOrNull ?? bool.TrueString); break;
169
case "RunAnalyzersDuringLiveAnalysis":
_project
.RunAnalyzersDuringLiveAnalysis = bool.Parse(valueOrNull ?? bool.TrueString); break;
170
case "TargetPath":
_project
.OutputFilePath = GetFullyQualifiedPath(valueOrNull); break;
171
case "TargetRefPath":
_project
.OutputRefFilePath = GetFullyQualifiedPath(valueOrNull); break;
172
case "CompilerGeneratedFilesOutputPath":
_project
.GeneratedFilesOutputDirectory = GetFullyQualifiedPath(valueOrNull); break;
173
case "TargetFrameworkIdentifier": _targetFrameworkManager.UpdateIdentifierForProject(
_project
.Id, valueOrNull); break;
179
Contract.ThrowIfNull(
_project
.FilePath, "We don't have a project path at this point.");
184
fileDirectory ??= Path.GetDirectoryName(
_project
.FilePath);
202
return RunAndReportNFWAsync(() =>
_project
.DisplayName = displayName, cancellationToken);
207
return RunAndReportNFWAsync(() =>
_project
.HasAllInformation = hasAllInformation, cancellationToken);
213
var disposableBatchScope = await
_project
.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false);
216
return new WorkspaceProjectBatch(
_project
.CreateBatchScope(), _logger);
223
var disposableBatchScope = await
_project
.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false);