/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Workspaces/MSBuild/Contracts/ProjectFileReference.cs
46 строк
1 KB
Jason Malinowski
Remove use of System.Collections.Immutable from the build host
01 май 2026, 02:36
01 май 2026, 02:36
169a599
Код
Авторство
О чём код?
// 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.Diagnostics; using System.Runtime.Serialization; namespace Microsoft.CodeAnalysis.MSBuild; /// <summary> /// Represents a reference to another project file. /// </summary> [DataContract] #if NETFRAMEWORK [System.Serializable] // We need to this to be able to serialize across the AppDomain boundary #endif internal sealed class ProjectFileReference { /// <summary> /// The path on disk to the other project file. /// This path may be relative to the referencing project's file or an absolute path. /// </summary> [DataMember(Order = 0)] public string Path { get; } /// <summary> /// The aliases assigned to this reference, if any. /// </summary> [DataMember(Order = 1)] public string[] Aliases { get; } /// <summary> /// The value of "ReferenceOutputAssembly" metadata. /// </summary> [DataMember(Order = 2)] public bool ReferenceOutputAssembly { get; } public ProjectFileReference(string path, string[] aliases, bool referenceOutputAssembly) { Debug.Assert(aliases != null); Path = path; Aliases = aliases; ReferenceOutputAssembly = referenceOutputAssembly; } }