when i use the project template is working fine
i the only think(?) that is different the ".deps.json" is different, in my project the relevant dlls are missing from there(my project is a class library project)
Also in my project i have the following
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<SupportedOSPlatformVersion>10.0.19041.0</SupportedOSPlatformVersion>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIndentifierToOutputPath>false</AppendRuntimeIndentifierToOutputPath>
when i copied the above to the template project it didnt affected the result(worked fine)