-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Default xplat project cannot be built when .net8.0 is installed on linux (NETSDK1139: target platform 'android' is not recognized). #14897
Comments
dotnet workload install android |
@maxkatz6 no effect (I tried this already, please reopen) |
also, workload |
Workload exits for net8, I've installed it on my own. Try it from command line, as VS seems to be buggy here acc to some SO questions. Note: If you need urgent support, you need payed support. Or wait until community has time to. |
@timunie Apologies, I had assumed that since they had closed it that they had just left me to fend for myself. here's the output of
please keep in mind that this is from a linux dev environment, not windows. |
|
output of
Also, I Found Something. as mentioned by omajid:
that was posted from when 8.0 was in preview 6. Later down the report, there is a linked issue involving an arch linux user not being able to find those workloads. It just so happens that's also my OS. listed workaround is that the workload manifests are missing, and should be added manually by the user... |
so, not a bug on your end, but that does result in unintended behaviour |
Please open an issue at https://github.com/dotnet/sdk/issues. |
what's funny was that they are available for net7.0 with no issue. at this point, it's a packaging problem on microsoft's part, so I will raise a bug report there. |
I also have the same issue, have you solved it? |
Describe the bug
Newly created cross-platform projects fail to build when net8.0 is installed. uninstalling anything related to .net8.0 and manually editing each project to instead point to net7.0 resolves this.
full error from
dotnet build
:To Reproduce
dotnet new avalonia.xplat
)sudo dotnet workload restore
)Expected behavior
Project builds successfully.
Avalonia version
11.0.10
OS
Linux, Android
Additional context
it should be noted that this issue occurrs with both the CLI (
dotnet
), and with Rider (both normal and EAP). When creating a project in rider, the only option to choose for .net sdk is .net8.0 for an avalonia cross-platform project, even if .net8.0 is not installed.Rider's project window:
The text was updated successfully, but these errors were encountered: