-
Notifications
You must be signed in to change notification settings - Fork 538
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
Error building Xamarin.Android project for Net6-preview6 #6101
Comments
The workloads seems installed
And maui-check says everything is ok
|
Do you have this folder?
Your earlier error seems like something might have gone wrong with your
You could try manually deleting folders as described here, then run https://github.com/dotnet/maui/tree/main/src/Workload#cleanup-net-6-installs--workloads |
The folder is there C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.RuntimeConfigParser.Task\6.0.0-preview.6.21352.12. |
I had 2 versions of net6, one I installed and the other installed by visual studio 2022, I could uninstall mine, but the other is still there. Do you think I should proceed with removing the files manually? |
I just uninstalled visual studio 2022, and removed all the net6 folders as indicated, I'm reinstalling visual studio 2022... I supposed that would be better than running maui-check to avoid having 2 net6 installations again |
Visual Studio 2022 installation finished correctly, I run maui-check to install the missing workloads
I open the project and build and the same error appears. What is wrong? |
Can you Share the |
Building from the command line worked.
but when I perform it from visual studio menu it doesn't compile
|
Ah, so you're hitting: dotnet/runtime#55277 If you put this in your project, does it workaround for now? <PropertyGroup>
<GenerateRuntimeConfigurationFiles>false</GenerateRuntimeConfigurationFiles>
</PropertyGroup> |
It worked with that line. Thanks for the workaround! |
Despite the project ran with GenerateRuntimeConfigurationFiles set to false. When I reference an android library project, it builds but it doesn't run and returns the following errors
And performing the command
|
Can you attach a |
Sure, here it is. |
Here is another using |
You're calling I'm not sure what we should do here, but calling |
How should I run an Android project from the command line? |
Please ignore my I ran This seems to work, I can see the app is deployed, but I can not debug, which is mandatory at this stage of development. Here is the binlog in case it helps |
I'd recommend using VS 2022 for debugging, using the regular "play" button. Did you already try that? |
Yes, it doesn't work. It's the other error I showed before
|
Let us know if you find another issue, thanks. |
I just created a new Xamarin.Android application for .Net6-preview6, but I can not make it compile
Also had trouble with the workload installation
The text was updated successfully, but these errors were encountered: