voula_d
Topic Author
Posts: 21
Joined: 16 Feb 2023, 17:40

Targeting .net8-windows

29 Apr 2025, 17:11

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?
<PropertyGroup>
	<TargetFramework>net8.0-windows</TargetFramework>
	<OutputType>WinExe</OutputType>
	<UseWPF>true</UseWPF>
	<RootNamespace></RootNamespace>
</PropertyGroup>
Thank you
 
User avatar
sfernandez
Site Admin
Posts: 3252
Joined: 22 Dec 2011, 19:20

Re: Targeting .net8-windows

05 May 2025, 19:29

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:
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <RootNamespace></RootNamespace>
  </PropertyGroup>
</Project>
Then you have to add the NuGets for the display (Win32) and render context (D3D11 or D3D12).

Who is online

Users browsing this forum: Bing [Bot] and 3 guests