Skip to content

Commit 9d9369f

Browse files
authored
ci: do not pack markup projects (#600)
1 parent cb8a506 commit 9d9369f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,5 @@ ASALocalRun/
330330
.mfractor/
331331

332332
/src/crosstargeting_override.props
333-
mergedpages.*.xaml
333+
mergedpages.*.xaml
334+
.vscode/

src/Directory.Build.props

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<PropertyGroup>
3838
<IsTestProject>$(MSBuildProjectName.Contains('Test'))</IsTestProject>
3939
<IsSampleProject>$(MSBuildProjectName.Contains('Sample'))</IsSampleProject>
40+
<IsMarkupProject>$(MSBuildProjectName.Contains('Markup'))</IsMarkupProject>
4041
</PropertyGroup>
4142

4243
<Choose>
@@ -55,11 +56,16 @@
5556
</When>
5657
</Choose>
5758

59+
<PropertyGroup Condition="'$(IsMarkupProject)'=='true'">
60+
<IsPackable>false</IsPackable>
61+
</PropertyGroup>
62+
5863
<PropertyGroup Condition="'$(IsTestProject)'=='false'">
5964
<!-- Enable performance CA rules from 'Microsoft.CodeAnalysis.NetAnalyzers' as build warnings by default. Specific rules are disabled or downgraded in the repo's editorconfig. -->
6065
<AnalysisLevel>latest</AnalysisLevel>
6166
<AnalysisModePerformance>AllEnabledByDefault</AnalysisModePerformance>
6267
</PropertyGroup>
68+
6369
<ItemGroup Condition="'$(IsTestProject)'=='false'">
6470
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" PrivateAssets="All" />
6571
</ItemGroup>

0 commit comments

Comments
 (0)