Skip to content

Commit

Permalink
Update SDKs and target frameworks to Windows 11
Browse files Browse the repository at this point in the history
Updated README.md with new SDK versions and setup steps.
Updated target frameworks in various .csproj files to
net8.0-windows10.0.22621.0. Removed minimum target platform
versions and updated runtime identifiers. Added or updated
SupportedOSPlatformVersion to 10.0.19041.0.

Signed-off-by: Christoph Hofmann <oss@hoffe.org>
  • Loading branch information
hoffe86 committed Dec 15, 2024
1 parent d7a8b0a commit e7f176f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ If you want to contribute to the Windows application, we are here to help you se

### Steps to Set Up:
1. Download and install [Visual Studio Community Edition](https://www.visualstudio.com/downloads/).
2. During installation, ensure to select UWP SDK 17763.
2. During installation, ensure to select Windows 10 SDK 10.0.19041.0 and Windows 11 SDK 10.0.22621.
3. Check out the latest code from GitHub.
4. Install pre-commit hook tooling by executing `setup_pre-commit.ps1`
4. Open the project in Visual Studio (File -> Open -> Project/Solution).
5. Rebuild the solution to fetch all missing NuGet packages.

Expand Down
6 changes: 3 additions & 3 deletions src/openHAB.Common/openHAB.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
<RootNamespace>openHAB.Common</RootNamespace>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<UseWinUI>true</UseWinUI>
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 2 additions & 3 deletions src/openHAB.Core.Client/openHAB.Core.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
<PropertyGroup>
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
<OutputType>Library</OutputType>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<UseWinUI>true</UseWinUI>
<ApplicationManifest>
</ApplicationManifest>
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
<Platforms>x86;x64;arm64</Platforms>
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
<SupportedOSPlatformVersion>10.0.18362.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
<RootNamespace>$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
</PropertyGroup>
<ItemGroup>
Expand Down Expand Up @@ -48,4 +47,4 @@
<ItemGroup>
<ProjectReference Include="..\openHAB.Common\openHAB.Common.csproj" />
</ItemGroup>
</Project>
</Project>
5 changes: 2 additions & 3 deletions src/openHAB.Core/Openhab.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
<PropertyGroup>
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
<OutputType>Library</OutputType>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
<UseWinUI>true</UseWinUI>
<ApplicationManifest>
</ApplicationManifest>
<EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
<Platforms>x86;x64;arm64</Platforms>
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
<SupportedOSPlatformVersion>10.0.18362.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
<RootNamespace>$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
<WindowsPackageType>MSIX</WindowsPackageType>
Expand Down Expand Up @@ -55,4 +54,4 @@
<ProjectReference Include="..\openHAB.Common\openHAB.Common.csproj" />
<ProjectReference Include="..\openHAB.Core.Client\openHAB.Core.Client.csproj" />
</ItemGroup>
</Project>
</Project>
5 changes: 2 additions & 3 deletions src/openHAB.Windows/openHAB.Windows.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<OutputType>WinExe</OutputType>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<PackageCertificateKeyFile>OpenHAB.Windows_StoreKey.pfx</PackageCertificateKeyFile>
<PackageCertificateThumbprint>
</PackageCertificateThumbprint>
Expand All @@ -21,7 +20,7 @@
<Platforms>x86;x64;arm64</Platforms>
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
<StartupObject></StartupObject>
<SupportedOSPlatformVersion>10.0.18362.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
<RootNamespace>$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
Expand Down Expand Up @@ -108,4 +107,4 @@
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
</Project>
</Project>

0 comments on commit e7f176f

Please sign in to comment.