Improve shared .props to manage analyzer projects

このコミットが含まれているのは:
Sergio Pedri committed 2023-10-02 03:22:02 +02:00
1 親 c64ae73a7f
コミット c6be57e407
2ファイル変更
+10 -6

検索条件に一致するファイルはありません

+6 -2
ファイルの表示
@@ -141,9 +141,13 @@
<ProjectDirectoryPathFromSourceRoot>$([MSBuild]::MakeRelative('$(MSBuildThisFileDirectory)..\', $(MSBuildProjectDirectory)))</ProjectDirectoryPathFromSourceRoot>
<IsPublishedProject>$(ProjectDirectoryPathFromSourceRoot.StartsWith('src\'))</IsPublishedProject>
<IsSourceGeneratorProject>false</IsSourceGeneratorProject>
<IsSourceGeneratorProject Condition="$(IsPublishedProject) AND ($(MSBuildProjectName.EndsWith('.SourceGenerators')) OR $(MSBuildProjectName.EndsWith('.CodeFixers')))">true</IsSourceGeneratorProject>
<IsSourceGeneratorProject Condition="$(IsPublishedProject) AND $(MSBuildProjectName.EndsWith('.SourceGenerators'))">true</IsSourceGeneratorProject>
<IsCodeFixersProject>false</IsCodeFixersProject>
<IsCodeFixersProject Condition="$(IsPublishedProject) AND $(MSBuildProjectName.EndsWith('.CodeFixers'))">true</IsCodeFixersProject>
<IsAnalyzersProject>false</IsAnalyzersProject>
<IsAnalyzersProject Condition="$(IsSourceGeneratorProject) OR $(IsCodeFixersProject)">true</IsAnalyzersProject>
<IsPackagedProject>false</IsPackagedProject>
<IsPackagedProject Condition="$(IsPublishedProject) AND !$(IsSourceGeneratorProject)">true</IsPackagedProject>
<IsPackagedProject Condition="$(IsPublishedProject) AND !$(IsAnalyzersProject)">true</IsPackagedProject>
<IsTestProject>$(ProjectDirectoryPathFromSourceRoot.StartsWith('tests\'))</IsTestProject>
<IsInternalsTestProject>false</IsInternalsTestProject>
<IsInternalsTestProject Condition="$(IsTestProject) AND $(MSBuildProjectName.EndsWith('.Internals'))">true</IsInternalsTestProject>
+4 -4
ファイルの表示
@@ -45,11 +45,11 @@
<!-- Additional properties for all source projects-->
<PropertyGroup>
<!-- Disable packing symbols for source generators -->
<PackSymbols Condition="$(IsSourceGeneratorProject)">false</PackSymbols>
<!-- Disable packing symbols for all analyzers -->
<PackSymbols Condition="$(IsAnalyzersProject)">false</PackSymbols>
<!-- Enable extended analyzer rules for all source generators -->
<EnforceExtendedAnalyzerRules Condition="$(IsSourceGeneratorProject)">true</EnforceExtendedAnalyzerRules>
<!-- Enable extended analyzer rules for all analyzers -->
<EnforceExtendedAnalyzerRules Condition="$(IsAnalyzersProject)">true</EnforceExtendedAnalyzerRules>
<!-- Check whether the project has a .targets file to bundle -->
<IsTargetsFileAvailableForPacking>false</IsTargetsFileAvailableForPacking>