Hello. I just installed Stride, and tried to start an example using the Android platform.
I get an error:
Error: The imported project "C:\Program Files\dotnet\sdk\5.0.403\Xamarin\Android\Xamarin.Android.CSharp.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files\dotnet\sdk\5.0.403\\Xamarin\Android\Xamarin.Android.CSharp.targets" is correct, and that the file exists on disk.
I checked around, and it appears this is a common issue, where although the .csproj has this:
Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets"
It appears to be searching “C:\Program Files\dotnet\sdk\5.0.403”
I can’t find a way to change this path. How can I resolve this?
Is using the workaround here the correct way to proceed?
As a workaround, one would have to use msbuild via:
msbuild /t:restore MyApplication.sln
or
msbuild /t:restore MyApplication.csproj