Stride Game Studio is looking for the Xamarin.Android.CSharp.targets file under the wrong path
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: Official Release
Version: 4.1.0.1459-beta
Platform(s): Windows 10 20H2, Microsoft .NET Core Runtime 5.0.203
Describe the bug
An Android project cannot be created due to the following error:
Error: The imported project "C:\Program Files\dotnet\sdk\5.0.203\Xamarin\Android\Xamarin.Android.CSharp.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files\dotnet\sdk\5.0.203\\Xamarin\Android\Xamarin.Android.CSharp.targets" is correct, and that the file exists on disk.
Steps to reproduce the behavior:
- Lunch the Stride Launcher 5.1 on your PC
- Set the current version to 4.1.0.1459 and open the Stride 3D Game Studio 4.1.0.1459-beta (.NET 5.0.6)
- Navigate to a "New game" and select only an Android platform option
- Press OK
Expected behavior
Xamarin.Android.CSharp.targets file is not part of the .NET Core installation folder. MSBuild is installed in a folder under each version of the Visual Studio.
Installation folder for VS 2019 Community Edition
c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.CSharp.targets
Screenshots

Additional context
I have not tried to create a project on other platforms and this must be also included in the further investigation.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing Android-only project creation in Stride Game Studio 4.1.0.1459-beta and inspect the generated project’s Xamarin.Android.CSharp.targets import. Compare the failing .NET SDK path with the Visual Studio MSBuild path shown in the report; done when a new Android project is created without the missing-targets error and other platform targets remain unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100