mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Change WPF sample to be net48
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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%
|
||||
|
||||
Reference in New Issue
Block a user