/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/IntegrationTest/Harness/SourceGenerator/Microsoft.VisualStudio.Extensibility.Testing.SourceGenerator.csproj
40 строк
2 KB
David Barbet
Fix sg nuget package being locked by build when used as a project reference
08 янв 2026, 22:59
08 янв 2026, 22:59
507f2b5
Код
Авторство
О чём код?
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netstandard2.0</TargetFramework> </PropertyGroup> <PropertyGroup> <DevelopmentDependency>true</DevelopmentDependency> <IncludeBuildOutput>false</IncludeBuildOutput> <IncludeSymbols>false</IncludeSymbols> <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> <TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage> <IsPackable>true</IsPackable> </PropertyGroup> <ItemGroup> <!-- This needs to be a package reference to avoid attempting to use a newer compiler version than either the CLI or IDE has. --> <PackageReference Include="Microsoft.CodeAnalysis.CSharp" /> </ItemGroup> <ItemGroup> <Compile Include="..\..\..\..\Dependencies\Contracts\NullableAttributes.cs" /> <Compile Include="..\..\..\..\Dependencies\Contracts\IsExternalInit.cs" /> </ItemGroup> <ItemGroup> <InternalsVisibleTo Include="Microsoft.VisualStudio.Extensibility.Testing.SourceGenerator.UnitTests" /> </ItemGroup> <Target Name="PackBuildOutputs" DependsOnTargets="ResolveProjectReferences;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies"> <ItemGroup> <!-- Code generation for C# projects --> <TfmSpecificPackageFile Include="$(TargetPath)" PackagePath="analyzers\dotnet\roslyn4.0\cs\" /> <TfmSpecificPackageFile Include="@(SatelliteDllsProjectOutputGroupDependency)" PackagePath="analyzers\dotnet\roslyn4.0\cs\%(SatelliteDllsProjectOutputGroupDependency.DestinationSubDirectory)" Condition=" '%(SatelliteDllsProjectOutputGroupDependency.DestinationSubDirectory)' != '' " /> <TfmSpecificPackageFile Include="@(SatelliteDllsProjectOutputGroupOutput->'%(FinalOutputPath)')" PackagePath="analyzers\dotnet\roslyn4.0\cs\%(SatelliteDllsProjectOutputGroupOutput.Culture)\" /> <TfmSpecificPackageFile Include="%(_ResolvedProjectReferencePaths.Identity)" Condition="'%(FileName)' != 'Microsoft.VisualStudio.Extensibility.Testing.SourceGenerator.VisualBasic'" PackagePath="analyzers\dotnet\roslyn4.0\cs\" /> </ItemGroup> </Target> </Project>