Change WPF sample to be net48

This commit is contained in:
Caelan Sayler
2024-01-25 15:17:07 +00:00
parent c206f1c922
commit c51bf9b6bb
2 changed files with 9 additions and 4 deletions

View File

@@ -2,18 +2,23 @@
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net48</TargetFramework>
<ImplicitUsings>true</ImplicitUsings>
<UseWPF>true</UseWPF>
<StartupObject>VeloWpfSample.Program</StartupObject>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup>
<!-- This overrides the default Program.Main that WPF creates for you, and allows you to add VelopackApp -->
<StartupObject>VeloWpfSample.Program</StartupObject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Velopack" Version="0.*" />
</ItemGroup>
<!-- Used for demonstrating updates, so the installed application can find the Release directory -->
<!-- Used for demonstrating updates, so the installed application can find the Release directory, remove in your app -->
<ItemGroup>
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>WpfSampleReleaseDir</_Parameter1>

View File

@@ -11,7 +11,7 @@ set "version=%~1"
echo.
echo Compiling VeloWpfSample with dotnet...
dotnet publish -c Release --no-self-contained -r win-x64 -o %~dp0publish
dotnet publish -c Release -o %~dp0publish
echo.
echo Building Velopack Release v%version%