Page 1 of 1

Targeting .net8-windows

Posted: 29 Apr 2025, 17:11
by voula_d
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

Re: Targeting .net8-windows

Posted: 05 May 2025, 19:29
by sfernandez
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).