/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Tools/BuildValidator/Records.cs
40 строк
1 KB
Cyrus Najmabadi
Remove unused usings
18 июн 2025, 22:17
18 июн 2025, 22:17
481c36c
Код
Авторство
О чём код?
// 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.IO; namespace BuildValidator { internal sealed record AssemblyInfo(string FilePath, Guid Mvid) { internal string FileName => Path.GetFileName(FilePath); internal string TargetFramework => Path.GetFileName(Path.GetDirectoryName(FilePath))!; } internal sealed record PortableExecutableInfo(string FilePath, Guid Mvid, bool IsReadyToRun, bool IsReferenceAssembly); internal record Options( string[] AssembliesPaths, string[] ReferencesPaths, string[] Excludes, string SourcePath, bool Verbose, bool Quiet, bool Debug, string DebugPath); /// <summary>An entry in the source-link.json dictionary.</summary> public record SourceLinkEntry { public string Prefix { get; } public string Replace { get; } public SourceLinkEntry(string prefix, string replace) { Prefix = prefix; Replace = replace; } } }