Skip to content

Commit 96cb2e8

Browse files
committed
fix: Fixed missing CLS complianse/trimming/native AOT.
1 parent 16caa88 commit 96cb2e8

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Build and test
1+
name: Test
22
on:
33
pull_request:
44
branches:
55
- main
66

77
jobs:
8-
build-test:
8+
test:
99
name: Build abd test
1010
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
1111
with:

src/libs/Directory.Build.props

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<ItemGroup Label="CLSCompliant">
1111
<AssemblyAttribute Include="System.CLSCompliantAttribute">
12-
<_Parameter1>false</_Parameter1>
12+
<_Parameter1>true</_Parameter1>
1313
</AssemblyAttribute>
1414
</ItemGroup>
1515

@@ -46,12 +46,12 @@
4646
<AnalysisMode>All</AnalysisMode>
4747
</PropertyGroup>
4848

49-
<!-- <PropertyGroup Label="Trimmable" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">-->
50-
<!-- <IsAotCompatible>true</IsAotCompatible>-->
51-
<!-- <EnableTrimAnalyzer>true</EnableTrimAnalyzer>-->
52-
<!-- <IsTrimmable>true</IsTrimmable>-->
53-
<!-- <SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>-->
54-
<!-- <TrimmerSingleWarn>false</TrimmerSingleWarn>-->
55-
<!-- </PropertyGroup>-->
49+
<PropertyGroup Label="Trimmable" Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
50+
<IsAotCompatible>true</IsAotCompatible>
51+
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
52+
<IsTrimmable>true</IsTrimmable>
53+
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings>
54+
<TrimmerSingleWarn>false</TrimmerSingleWarn>
55+
</PropertyGroup>
5656

5757
</Project>

0 commit comments

Comments
 (0)