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 3030 name : NuGet packages
3131 path : bin/Packages/
3232 retention-days : 7
33+ - name : Verify trimming compatibility
34+ run : dotnet publish TrimmingTestApp
3335 test :
3436 name : Test / ${{ matrix.os }} / ${{ matrix.arch }} / ${{ matrix.tfm }}
3537 runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change 2323 <MinVerBuildMetadata Condition =" '$(libgit2_hash)' != ''" >libgit2-$(libgit2_hash.Substring(0,7))</MinVerBuildMetadata >
2424 </PropertyGroup >
2525
26+ <PropertyGroup Condition =" '$(TargetFramework)' == 'net6.0'" >
27+ <IsTrimmable >true</IsTrimmable >
28+ </PropertyGroup >
29+
2630 <ItemGroup >
2731 <None Include =" ..\square-logo.png" Pack =" true" PackagePath =" " Visible =" false" />
2832 <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