/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Tools/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj
30 строк
2 KB
Copilot
Remove superfluous `src/Tools/Source` directory level (#83484)
30 апр 2026, 06:54
Не верифицирован
30 апр 2026, 06:54
2933275
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <!-- 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. --> <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <RootNamespace>CSharpSyntaxGenerator</RootNamespace> <!-- We build this against $(NetRoslyn) to build the console app version, and against netstandard2.0 for the Source Generator version. --> <TargetFrameworks>$(NetRoslyn);netstandard2.0</TargetFrameworks> <OutputType Condition="'$(TargetFramework)' != 'netstandard2.0'">Exe</OutputType> <RuntimeIdentifiers>$(RoslynPortableRuntimeIdentifiers)</RuntimeIdentifiers> <IsShipping>false</IsShipping> <ExcludeFromSourceOnlyBuild>false</ExcludeFromSourceOnlyBuild> </PropertyGroup> <ItemGroup> <!-- Make sure to reference the same version of Microsoft.CodeAnalysis.Analyzers as the rest of the build --> <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" PrivateAssets="all" /> <!-- Pin SCI and SRM to 8.0, since this generator is built & consumed in our pipeline so it has to work with stock compiler in msbuild (currently shipped with 8.0) --> <PackageReference Include="System.Collections.Immutable" VersionOverride="8.0.0" /> <PackageReference Include="System.Reflection.Metadata" VersionOverride="8.0.0" /> </ItemGroup> <ItemGroup> <!-- If we're building the command line tool, we have to include some dependencies used for grammar generation --> <Compile Include="..\..\..\..\Compilers\Core\Portable\Symbols\WellKnownMemberNames.cs" Link="Grammar\WellKnownMemberNames.cs" Condition="'$(TargetFramework)' != 'netstandard2.0'" /> <Compile Include="..\..\..\..\Compilers\CSharp\Portable\Declarations\DeclarationModifiers.cs" Link="Grammar\DeclarationModifiers.cs" Condition="'$(TargetFramework)' != 'netstandard2.0'" /> <Compile Include="..\..\..\..\Compilers\CSharp\Portable\Syntax\SyntaxKind.cs" Link="Grammar\SyntaxKind.cs" Condition="'$(TargetFramework)' != 'netstandard2.0'" /> <Compile Include="..\..\..\..\Compilers\CSharp\Portable\Syntax\SyntaxKindFacts.cs" Link="Grammar\SyntaxKindFacts.cs" Condition="'$(TargetFramework)' != 'netstandard2.0'" /> <PackageReference Include="Microsoft.CodeAnalysis.Common" PrivateAssets="all" Condition="'$(TargetFramework)' == 'netstandard2.0'" /> </ItemGroup> </Project>