stride3d / stride3d/stride

[Mobile] Opening *.Android.sln / *.iOS.sln freezes visual studio

Open
#543 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-Build bug platform-Android
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

Release Type: GitHub

Version: e6f55ee3ed4c97173a5353faa03fe7686632b7ed

Platform(s): Windows

Describe the bug
When I try to open Xenko.Android.sln in Visual Studio it never finishes loading and locks. I can't build the assemblies for Android.

I'm not interested in iOS development for now but I tested Xenko.iOS.sln too and it has the same problem. The other solutions open fine.

I tried msbuild instead from the Developer Command Prompt for VS 2019:

msbuild Xenko.Android.sln /t:Rebuild
msbuild Xenko.iOS.sln /t:Rebuild

And they gives this error:

Xenko.Android.sln:

"F:\Xenko\xenko\build\Xenko.Android.sln" (Clean;Build target) (1) ->
"F:\Xenko\xenko\build..\sources\engine\Xenko.UI\Xenko.UI.csproj.metaproj" (Clean target) (2) ->
"F:\Xenko\xenko\build..\sources\engine\Xenko.Engine\Xenko.Engine.csproj.metaproj" (Clean target) (3) ->
"F:\Xenko\xenko\sources\engine\Xenko.Engine\Xenko.Engine.csproj" (Clean target) (11) ->
"F:\Xenko\xenko\sources\engine\Xenko.Engine\Xenko.Engine.csproj" (Clean target) (11:5) ->
(ResolvePackageAssets target) ->
C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): error NETSDK1005: Assets file 'F:\Xenko\xenko\sources\engine\Xenko.Engine\obj\project.assets.json' doesn't have a target for 'MonoAndroid,Version=v8.1'. Ensure that restore has run and that you have included 'monoandroid81' in the TargetFrameworks for your project. [F:\Xenko\xenko\sources\engine\Xenko.Engine\Xenko.Engine.csproj]

Xenko.iOS.sln:

"F:\Xenko\xenko\build\Xenko.iOS.sln" (Rebuild target) (1) ->
"F:\Xenko\xenko\build..\sources\engine\Xenko.Engine\Xenko.Engine.csproj.metaproj" (Rebuild target) (2) ->
"F:\Xenko\xenko\sources\engine\Xenko.Engine\Xenko.Engine.csproj" (Rebuild target) (11) ->
"F:\Xenko\xenko\sources\engine\Xenko.Engine\Xenko.Engine.csproj" (Clean target) (11:5) ->
(ResolvePackageAssets target) ->
C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,5): error NETSDK1005: Assets file 'F:\Xenko\xenko\sources\engine\Xenko.Engine\obj\project.assets.json' doesn't have a target for 'Xamarin.iOS,Version=v1.0'. Ensure that restore has run and that you have included 'xamarinios10' in the TargetFrameworks for your project. [F:\Xenko\xenko\sources\engine\Xenko.Engine\Xenko.Engine.csproj]

To Reproduce
Steps to reproduce the behavior:

  1. Open Xenko.Android.sln in Visual Studio 2019.

Expected behavior
Build Xenko.Android.sln so I can build and run a game project for an Android device.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with build/Xenko.Android.sln and build/Xenko.iOS.sln in Visual Studio 2019 or with the listed msbuild commands. Inspect sources/engine/Xenko.Engine/Xenko.Engine.csproj and the reported obj/project.assets.json target errors. Done means both platform solutions open and build successfully without freezing or NETSDK1005 errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp, ios
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.