Skip to content

Commit 54700ed

Browse files
committed
Update NuGet restore command and modify project references
Changed the NuGet restore command in `build.yml` to include the property `/p:BuildWithNetFrameworkHostedCompiler=true` for better compatibility. Removed the `<PackageReference>` for `Microsoft.Net.Sdk.Compilers.Toolset` in `openHAB.Common.csproj`, which may impact the build process. Signed-off-by: Christoph Hofmann <oss@hoffe.org>
1 parent 43cfe68 commit 54700ed

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
- name: Restore nuget packages
9191
shell: pwsh
9292
run: |
93-
dotnet restore ${{github.workspace}}\repo\OpenHAB.Windows.sln --force --no-cache
93+
dotnet restore ${{github.workspace}}\repo\OpenHAB.Windows.sln /p:BuildWithNetFrameworkHostedCompiler=true --force --no-cache
9494
9595
- name: Build OpenHab Windows App
9696
shell: pwsh

src/openHAB.Common/openHAB.Common.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.Net.Sdk.Compilers.Toolset" Version="9.0.301" />
1413
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.7.250606001" />
1514
</ItemGroup>
1615
</Project>

0 commit comments

Comments
 (0)