Skip to content

Commit

Permalink
Merge pull request #783 from dorssel/fix_coverage
Browse files Browse the repository at this point in the history
Fix code coverage reporting
  • Loading branch information
dorssel committed Nov 28, 2023
2 parents 37d694f + 6786094 commit 0f38de7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
bin/
obj/
packages/
TestResults/
.vs/
.vscode/
*.user
Expand Down
5 changes: 0 additions & 5 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ SPDX-License-Identifier: GPL-3.0-only
<Copyright>Copyright (C) $([System.DateTime]::UtcNow.ToString("yyyy")) $(Company)</Copyright>
</PropertyGroup>

<PropertyGroup Condition="$(Configuration) == 'Release'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GitVersion.MsBuild">
<PrivateAssets>all</PrivateAssets>
Expand Down
10 changes: 9 additions & 1 deletion Usbipd/Usbipd.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ SPDX-License-Identifier: GPL-3.0-only
<IsPublishable>true</IsPublishable>
<PublishProfile>Properties\PublishProfiles\InputForInstaller.pubxml</PublishProfile>
<PublishAot>true</PublishAot>
<CopyOutputSymbolsToPublishDirectory>false</CopyOutputSymbolsToPublishDirectory>

<AssemblyName>usbipd</AssemblyName>
</PropertyGroup>
Expand Down Expand Up @@ -44,9 +45,16 @@ SPDX-License-Identifier: GPL-3.0-only

<Target Name="RemoveTranslations" BeforeTargets="Build">
<ItemGroup>
<Translations Include="$(OutputPath)\**\System.CommandLine.resources.dll"/>
<Translations Include="$(OutputPath)\**\System.CommandLine.resources.dll" />
</ItemGroup>
<RemoveDir Directories="@(Translations->DirectoryName())" />
</Target>

<Target Name="RemoveDebug" AfterTargets="Publish">
<ItemGroup>
<DebugFiles Include="$(PublishDir)\**\*.pdb" />
</ItemGroup>
<Delete Files="@(DebugFiles)" />
</Target>

</Project>

0 comments on commit 0f38de7

Please sign in to comment.