diff options
author | sr55 <[email protected]> | 2020-11-11 20:16:15 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2020-11-11 20:16:15 +0000 |
commit | 3b5dc0e57a64d2eed7fe05d9fa35e8de8b6a75f3 (patch) | |
tree | c2df041d73d78c1e9b41c3284351c8bbae2014c2 /win/CS/HandBrakeWPF/HandBrakeWPF.csproj | |
parent | cc9a4fa40ac117a5cf44d8b826835773fa96bd77 (diff) |
WinGui: Move to .NET 5 runtime. (This requires the Microsoft .NET 5 runtime to be installed on the machine)
Changed the configruation to make the UI platform agnostic. This will allow it to run on ARM64 natively (in theory) with if provided with an ARM64 native hb.dll
Diffstat (limited to 'win/CS/HandBrakeWPF/HandBrakeWPF.csproj')
-rw-r--r-- | win/CS/HandBrakeWPF/HandBrakeWPF.csproj | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj index e65dcbe80..516d90706 100644 --- a/win/CS/HandBrakeWPF/HandBrakeWPF.csproj +++ b/win/CS/HandBrakeWPF/HandBrakeWPF.csproj @@ -2,8 +2,9 @@ <PropertyGroup>
<OutputType>WinExe</OutputType>
- <TargetFramework>net48</TargetFramework>
+ <TargetFramework>net5.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
+ <UseWindowsForms>true</UseWindowsForms>
<PackageId>HandBrake</PackageId>
<Authors>HandBrake Team</Authors>
<Company>HandBrake Team</Company>
@@ -14,8 +15,8 @@ <RepositoryUrl>https://github.com/HandBrake/HandBrake</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>1.4.0.0</AssemblyVersion>
- <Platforms>x64</Platforms>
- <PlatformTarget>x64</PlatformTarget>
+ <Platforms>AnyCPU</Platforms>
+ <PlatformTarget>AnyCPU</PlatformTarget>
<ApplicationIcon>handbrakepineapple.ico</ApplicationIcon>
<StartupObject />
<AssemblyName>HandBrake</AssemblyName>
@@ -24,14 +25,12 @@ <RuntimeIdentifiers>win7-x64</RuntimeIdentifiers>
</PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
- <PlatformTarget>x64</PlatformTarget>
- <OutputPath>bin\x64\Debug</OutputPath>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
+ <OutputPath>bin\Debug</OutputPath>
</PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
- <PlatformTarget>x64</PlatformTarget>
- <OutputPath>bin\x64\Release</OutputPath>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
+ <OutputPath>bin\Release</OutputPath>
</PropertyGroup>
<ItemGroup>
@@ -46,11 +45,17 @@ <PackageReference Include="gong-wpf-dragdrop" Version="2.3.2" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Ookii.Dialogs" Version="1.1.0" />
+ <PackageReference Include="System.Management" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\HandBrake.Interop\HandBrake.Interop.csproj" />
- <ProjectReference Include="..\HandBrake.Worker\HandBrake.Worker.csproj" />
+ <ProjectReference Include="..\HandBrake.Worker\HandBrake.Worker.csproj">
+ <Private>true</Private>
+ <CopyLocalSatelliteAssemblies>true</CopyLocalSatelliteAssemblies>
+ <IncludeAssets>*.json</IncludeAssets>
+ <ReferenceOutputAssembly>true</ReferenceOutputAssembly>
+ </ProjectReference>
</ItemGroup>
<ItemGroup>
|