Merge pull request #607 from Sergio0694/dev/centralize-generator-props
Centralize defines for SOURCE_GENERATOR
このコミットが含まれているのは:
4ファイル変更
+5
-14
検索条件に一致するファイルはありません
@@ -2,10 +2,6 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<DefineConstants>$(DefineConstants);SOURCE_GENERATOR</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--The source generator cannot contain package references or project references, so instead we're just
|
||||
manually linking the source files from ComputeSharp\Core in here. We only need them to extract metadata
|
||||
|
||||
@@ -4,10 +4,6 @@
|
||||
<NoWarn>$(NoWarn);CS1591;CS0649;CS1574</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<DefineConstants>$(DefineConstants);SOURCE_GENERATOR</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Same setup as ComputeSharp.Core.SourceGenerators, just with also APIs from ComputeSharp -->
|
||||
<ItemGroup>
|
||||
|
||||
|
||||
@@ -4,10 +4,6 @@
|
||||
<NoWarn>$(NoWarn);CS1591;CS0649;CS1574</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<DefineConstants>$(DefineConstants);SOURCE_GENERATOR</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Same setup as ComputeSharp.Core.SourceGenerators, just with also APIs from ComputeSharp -->
|
||||
<ItemGroup>
|
||||
|
||||
|
||||
@@ -38,6 +38,9 @@
|
||||
<!-- Additional properties for all source projects-->
|
||||
<PropertyGroup>
|
||||
|
||||
<!-- Define SOURCE_GENERATOR as well for source generators -->
|
||||
<DefineConstants Condition="$(IsSourceGeneratorProject)">$(DefineConstants);SOURCE_GENERATOR</DefineConstants>
|
||||
|
||||
<!-- Disable packing symbols for all analyzers -->
|
||||
<PackSymbols Condition="$(IsAnalyzersProject)">false</PackSymbols>
|
||||
|
||||
@@ -69,9 +72,9 @@
|
||||
|
||||
<!--
|
||||
Reference PolySharp for all .NET Standard 2.0 polyfills.
|
||||
Only needed for the .Core project and all analyzers.
|
||||
Only needed for the .Core project and all source generators.
|
||||
-->
|
||||
<ItemGroup Condition="'$(MSBuildProjectName)' == 'ComputeSharp.Core' OR $(MSBuildProjectName.EndsWith('.SourceGenerators'))">
|
||||
<ItemGroup Condition="'$(MSBuildProjectName)' == 'ComputeSharp.Core' OR $(IsSourceGeneratorProject)">
|
||||
<PackageReference Include="PolySharp" Version="1.13.2">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>build;analyzers</IncludeAssets>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする