Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In CodeLibrary project, it's better to let user choose target platform #1985

Open
itn3000 opened this issue Oct 24, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@itn3000
Copy link

itn3000 commented Oct 24, 2023

Is your feature request related to a problem? Please describe.
My environment does not have Android and iOS SDK, only for windows.
In such environment, restoring error occured in creating new code library project.
here is the error message;

Verbose: Generating MyLibrary...
Verbose: Process dependencies for MyLibrary...
Verbose: Restore NuGet packages for MyLibrary...
[C:\Program Files\dotnet\sdk\6.0.415\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.targets(38,5)]: Error: このプロジェクトをビルドするには、次のワークロードをインストールする必要があります: android
これらのワークロードをインストールするには、次のコマンドを実行します: dotnet workload restore
[C:\Program Files\dotnet\sdk\6.0.415\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(267,5)]: Error: 資産ファイル 'd:\src\gitrepos\stride-sandbox\MyLibrary\MyLibrary\obj\project.assets.json' が見つかりません。NuGet パッケージの復元を実行して、このファイルを生成してください。
[C:\Program Files\dotnet\sdk\6.0.415\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.targets(38,5)]: Error: Unable to build assembly reference [d:\src\gitrepos\stride-sandbox\MyLibrary\MyLibrary\bin\Debug\net6.0-windows\MyLibrary.dll]
[C:\Program Files\dotnet\sdk\6.0.415\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.targets(38,5)]: Verbose: Loading Assets from Package [MyLibrary.sdpkg]
[C:\Program Files\dotnet\sdk\6.0.415\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.targets(38,5)]: Verbose: Compiling game assemblies...
[C:\Program Files\dotnet\sdk\6.0.415\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.targets(38,5)]: Verbose: Game assemblies compiled...

Describe the solution you'd like
Target platform should be able to choose when creating new code library project.

Describe alternatives you've considered
Set default target platform only net6.0?

Additional context

@itn3000 itn3000 added the enhancement New feature or request label Oct 24, 2023
@itn3000 itn3000 changed the title In CodeLibrary project, I think it's better to let me choose target platform In CodeLibrary project, it's better to let me choose target platform Oct 24, 2023
@itn3000 itn3000 changed the title In CodeLibrary project, it's better to let me choose target platform In CodeLibrary project, it's better to let user choose target platform Oct 24, 2023
@manio143
Copy link
Member

The template for code library targets net6.0-windows;uap10.0.16299;net6.0;net6.0-android;net6.0-ios instead of just net6.0.
It seems more complex how the template generator is arriving at that though.

@itn3000
Copy link
Author

itn3000 commented Nov 17, 2023

"uap10" is not supported by Stride nuget packages, so "uap10" should be removed at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants