Skip to content

Commit

Permalink
Fix publish warnings for DLLs
Browse files Browse the repository at this point in the history
  • Loading branch information
menees committed Jun 3, 2023
1 parent 69cd6a8 commit 46ba4bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>

<!-- Default to non-publishable to avoid warnings about publishing DLLs with no publish profiles.
We'll override this to true for the EXEs we want to publish. https://stackoverflow.com/a/63788333/1882616 -->
<IsPublishable>false</IsPublishable>

<!-- I'll keep the NetAnalyzers version matching the TargetFrameworks "Core" version. -->
<_SkipUpgradeNetAnalyzersNuGetWarning >true</_SkipUpgradeNetAnalyzersNuGetWarning>

Expand Down
1 change: 1 addition & 0 deletions src/GizmoDock/GizmoDock.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<OutputType>WinExe</OutputType>
<UseWPF>true</UseWPF>
<ApplicationIcon>Resources\GizmoDock.ico</ApplicationIcon>
<IsPublishable>true</IsPublishable>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/GizmoTray/GizmoTray.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<ApplicationIcon>..\GizmoDock\Resources\GizmoDock.ico</ApplicationIcon>
<IsPublishable>true</IsPublishable>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 46ba4bd

Please sign in to comment.