Targeting .net8-windows
Hi Noesis team,
I have a WPF project that targets .net8-windows and I am trying to port it to Noesis. Is that possible? Basically is the following .csproj going to work or do I need to remove the UseWPF attribute and use net8.0 instead of net8.0-windows as the target?
Thank you
I have a WPF project that targets .net8-windows and I am trying to port it to Noesis. Is that possible? Basically is the following .csproj going to work or do I need to remove the UseWPF attribute and use net8.0 instead of net8.0-windows as the target?
Code: Select all
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<OutputType>WinExe</OutputType>
<UseWPF>true</UseWPF>
<RootNamespace></RootNamespace>
</PropertyGroup>
-
-
sfernandez
Site Admin
- Posts: 3247
- Joined:
Re: Targeting .net8-windows
You probably just want to use Noesis in that project, so don't enable the use of WPF to avoid any ambiguities.
The csproj should look like this initially:
Then you have to add the NuGets for the display (Win32) and render context (D3D11 or D3D12).
The csproj should look like this initially:
Code: Select all
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace></RootNamespace>
</PropertyGroup>
</Project>
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 3 guests