Skip to content

Commit

Permalink
Switch to dotnet build
Browse files Browse the repository at this point in the history
Fix some publish and resource issues
  • Loading branch information
menees committed Jun 1, 2024
1 parent d6eadf6 commit 432aa56
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 1 addition & 3 deletions eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ if ($build)
{
foreach ($configuration in $configurations)
{
# Restore NuGet packages first
msbuild $slnPath /p:Configuration=$configuration /t:Restore /v:$msBuildVerbosity /nologo
msbuild $slnPath /p:Configuration=$configuration /v:$msBuildVerbosity /nologo
dotnet build $slnPath /p:Configuration=$configuration /v:$msBuildVerbosity /nologo
}
}

Expand Down
8 changes: 7 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<RepositoryUrl>https://github.com/menees/WirePeep</RepositoryUrl>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<SignAssembly>true</SignAssembly>
<LangVersion>latest</LangVersion>
<LangVersion>12</LangVersion>
<Copyright>Copyright © 2020-$([System.DateTime]::UtcNow.ToString(`yyyy`)) Bill Menees</Copyright>

<!-- When TargetFrameworks changes, also update the app's Properties\PublishProfiles\*.pubxml files. -->
Expand All @@ -18,11 +18,13 @@
<RepoSrcFolder>$(MSBuildThisFileDirectory)</RepoSrcFolder>
<CodeAnalysisRuleSet>$(RepoSrcFolder)WirePeep.ruleset</CodeAnalysisRuleSet>
<AssemblyOriginatorKeyFile>$(RepoSrcFolder)WirePeep.snk</AssemblyOriginatorKeyFile>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
<UseCustomCodeAnalyzers>true</UseCustomCodeAnalyzers>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
<_SkipUpgradeNetAnalyzersNuGetWarning >true</_SkipUpgradeNetAnalyzersNuGetWarning>
<IsPublishable>false</IsPublishable>

<!-- Make the assembly, file, and NuGet package versions the same. -->
<Version>1.1.5</Version>
Expand All @@ -49,6 +51,10 @@
<AssemblyMetadata Include="ProductUrl" Value="$(PackageProjectUrl)" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Resources.Extensions" Version="6.0.0"/>
</ItemGroup>

<ItemGroup Condition="$(UseCustomCodeAnalyzers)">
<PackageReference Include="codecracker.CSharp" Version="1.1.0">
<PrivateAssets>all</PrivateAssets>
Expand Down
1 change: 1 addition & 0 deletions src/WirePeep/WirePeep.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<UseWindowsForms>true</UseWindowsForms>
<Description>Free, open-source network downtime monitor</Description>
<ApplicationIcon>Images\WirePeep.ico</ApplicationIcon>
<IsPublishable>true</IsPublishable>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 432aa56

Please sign in to comment.