File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 30
30
name : NuGet packages
31
31
path : bin/Packages/
32
32
retention-days : 7
33
+ - name : Verify trimming compatibility
34
+ run : dotnet publish TrimmingTestApp
33
35
test :
34
36
name : Test / ${{ matrix.os }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
35
37
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change 23
23
<MinVerBuildMetadata Condition =" '$(libgit2_hash)' != ''" >libgit2-$(libgit2_hash.Substring(0,7))</MinVerBuildMetadata >
24
24
</PropertyGroup >
25
25
26
+ <PropertyGroup Condition =" '$(TargetFramework)' == 'net6.0'" >
27
+ <IsTrimmable >true</IsTrimmable >
28
+ </PropertyGroup >
29
+
26
30
<ItemGroup >
27
31
<None Include =" ..\square-logo.png" Pack =" true" PackagePath =" " Visible =" false" />
28
32
<None Include =" ..\README.md" Pack =" true" PackagePath =" App_Readme/" Visible =" false" />
Original file line number Diff line number Diff line change
1
+ using LibGit2Sharp ;
2
+
3
+ _ = new Repository ( ) ;
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
+
3
+ <PropertyGroup >
4
+ <TargetFramework >net8.0</TargetFramework >
5
+ <OutputType >Exe</OutputType >
6
+ <ImplicitUsings >enable</ImplicitUsings >
7
+ <Nullable >enable</Nullable >
8
+ <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
9
+ <PublishTrimmed >true</PublishTrimmed >
10
+ <PublishSingleFile >true</PublishSingleFile >
11
+ </PropertyGroup >
12
+
13
+ <ItemGroup >
14
+ <ProjectReference Include =" ..\LibGit2Sharp\LibGit2Sharp.csproj" />
15
+ <TrimmerRootAssembly Include =" LibGit2Sharp" />
16
+ </ItemGroup >
17
+
18
+ </Project >
You can’t perform that action at this time.
0 commit comments