/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Workspaces/MSBuild/Contracts/IProjectFile.cs
27 строк
1 KB
Jason Malinowski
Unload projects from the BuildHost when we're done with them
17 июл 2026, 01:48
17 июл 2026, 01:48
29e2f3c
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Threading; using System.Threading.Tasks; namespace Microsoft.CodeAnalysis.MSBuild; /// <summary> /// RPC methods. /// </summary> internal interface IProjectFile : IDisposable { DiagnosticLogItem[] GetDiagnosticLogItems(); Task<ProjectFileInfo[]> GetProjectFileInfosAsync(CancellationToken cancellationToken); void AddDocument(string filePath, string? logicalPath); void RemoveDocument(string filePath); void AddMetadataReference(string metadataReferenceIdentity, string[] aliases, string? hintPath); void RemoveMetadataReference(string shortAssemblyName, string fullAssemblyName, string filePath); void AddProjectReference(string projectName, ProjectFileReference reference); void RemoveProjectReference(string projectName, string projectFilePath); void AddAnalyzerReference(string fullPath); void RemoveAnalyzerReference(string fullPath); void Save(); }