Cannot create android project
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.0.0.1-beta04-1265
Platform(s): Windows
Describe the bug
New project cannot be created.
To Reproduce
Steps to reproduce the behavior:
- Create a new empty project for .net core 3.1
Expected behavior
I expect the project to be created.
Log and callstacks
Verbose: Restore NuGet packages for MyGame4.Android...
[\MyGame4\MyGame4.Android\MyGame4.Android.csproj(93,3)]: Error: The imported project "C:\Program Files\dotnet\sdk\3.1.302\Xamarin\Android\Xamarin.Android.CSharp.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files\dotnet\sdk\3.1.302\Xamarin\Android\Xamarin.Android.CSharp.targets" is correct, and that the file exists on disk.
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 with MyGame4.Android.csproj at line 93 and the logged import of Xamarin/Android/Xamarin.Android.CSharp.targets under the .NET SDK 3.1.302 path. Reproduce project creation on Windows and verify that a new Android project restores successfully without the missing-target error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100