stride icon indicating copy to clipboard operation
stride copied to clipboard

Stride's new library projects target uap10.0.16299 which causes build issues until manually fixed

Open SeleDreams opened this issue 1 year ago • 1 comments

Release Type: Official Release

Version: 4.2.0.2067

Platform(s): Windows

Describe the bug When a code library project is generated via the stride editor, the project will have uap10.0.16299 as one of its targets causing build issues.

To Reproduce Steps to reproduce the behavior:

  1. Open Stride
  2. Create a code library project

Expected behavior The generated project should only target dotnet8

Screenshots image

SeleDreams avatar Feb 10 '24 11:02 SeleDreams

To add more details, the template has this line:

<#@ include file="..\Common.TargetFrameworks.targets.t4" #>

Which in turns resolves to:

<TargetFrameworks><#= string.Join(";", ((IEnumerable<Stride.Core.Assets.SolutionPlatform>)Properties.Platforms).Select(x => x.TargetFramework).Distinct()) #></TargetFrameworks>

I feel like a library project (which also applies to the Game project generated by the full template) should only reference net8.0 because it is supposed to be cross-platform. If users ever need specific stuff (like for Android or iOS) they can add these additional targets manually later.

In addition, the Properties.Platforms collection doesn't seem to be up to date as it is still trying to add the uap targets which don't exist anymore on our nuget packages.

Kryptos-FR avatar Feb 10 '24 11:02 Kryptos-FR