Xamarin Components missing from VS2022 Queues
See original GitHub issueThis issue is causing build failure here : https://dev.azure.com/dnceng/public/_build/results?buildId=1858175&view=logs&j=396e4757-3dc0-597a-e469-5feb3123c7be&t=44c646e6-db1b-5521-5b76-c5c2c57c3a93&l=223
[Error] Project C:\Users\cloudtest\AppData\Local\Temp\dotnet-upgrade-assistant-tests\ab659678-ff94-460c-a980-c5dddf3569c5\EwDavidForms\EwDavidForms.Android\EwDavidForms.Android.csproj cannot be loaded: Could not load project. Please ensure the selected VS instance has the correct workloads installed for your projects. If Upgrade Assistant selected the incorrect VS version, please pass the argument --vs-path with the appropriate path. You can see the Visual Studio instances searched by running with the --verbose flag. If you are migrating UWP to Windows App SDK project, make sure you are using the latest version of VS 2022 (>17.2)
upgrade-assistant uses the following pool (https://github.com/dotnet/upgrade-assistant/blob/main/azure-pipeline.yml#L46):
pool:
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
name: NetCore1ESPool-Public
demands: ImageOverride -equals build.windows.amd64.vs2022.pre.open
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
name: NetCore1ESPool-Internal
demands: ImageOverride -equals build.windows.amd64.vs2022.pre
Can we include the following components (includes components for both Xamarin and .NET MAUI) for VS 2022 Preview for the above mentioned pools:
Components for Xamarin:
{
"components": [
"Microsoft.NetCore.Component.Runtime.5.0",
"Microsoft.NetCore.Component.Runtime.3.1",
"Microsoft.NetCore.Component.SDK",
"Microsoft.VisualStudio.Component.NuGet",
"Microsoft.Net.Component.4.6.1.TargetingPack",
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
"Microsoft.VisualStudio.Component.Roslyn.LanguageServices",
"Microsoft.VisualStudio.Component.FSharp",
"Microsoft.ComponentGroup.ClickOnce.Publish",
"Microsoft.NetCore.Component.DevelopmentTools",
"Microsoft.Net.Component.4.8.SDK",
"Microsoft.Net.Component.4.7.2.TargetingPack",
"Microsoft.Net.ComponentGroup.DevelopmentPrerequisites",
"Microsoft.Component.MSBuild",
"Component.OpenJDK",
"Component.Xamarin.RemotedSimulator",
"Component.Xamarin",
"Microsoft.VisualStudio.Workload.NetCrossPlat",
]
}
Components for .NET MAUI :
{
"components": [
"Component.OpenJDK",
"Component.Android.SDK.MAUI",
"microsoft.net.runtime.mono.tooling",
"maui.core",
"maui.blazor",
"microsoft.net.runtime.android",
"microsoft.net.runtime.android.aot",
"android",
"maui.android",
"Microsoft.VisualStudio.ComponentGroup.Maui.Android",
"runtimes.ios",
"microsoft.net.runtime.ios",
"ios",
"maui.ios",
"Microsoft.VisualStudio.ComponentGroup.Maui.iOS",
"runtimes.maccatalyst",
"microsoft.net.runtime.maccatalyst",
"maccatalyst",
"maui.maccatalyst",
"Microsoft.VisualStudio.ComponentGroup.Maui.MacCatalyst",
"maui.windows",
"Microsoft.VisualStudio.ComponentGroup.MSIX.Packaging",
"Microsoft.VisualStudio.ComponentGroup.Maui.Windows",
"Microsoft.VisualStudio.ComponentGroup.Maui.Blazor",
"Microsoft.VisualStudio.ComponentGroup.Maui.All",
"Microsoft.VisualStudio.Workload.NetCrossPlat"
]
}
cc : @brandonh-msft
Issue Analytics
- State:
- Created a year ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
A missing ';' is not recognized in VS2022
[severity:It's more difficult to complete my work] I first compiled the following code : while (queue.size()) { tmp=queue.front() ...
Read more >Missing Visual Studio extensions after installation - Xamarin
Possible Fix 1: Change the installation to make sure the Visual Studio extensions are installed. In certain situations, the Xamarin installer ...
Read more >VS2022 17.3 Preview 1.1 - Missing Xamarin SDKs
Visual Studio 2022 17.3 Preview 1.1 for Windows breaks Xamarin development for iOS because it uninstalls the Xamarin SDKs.
Read more >VS2022 17.5.4 for ARM does not load Xamarin Forms ...
I am running Windows 11 Pro & trying to open a Xamarin Forms solution with an Android project in the latest VS2022 Community...
Read more >n00b issue? Can't compile the sample app #65
The missing file is ../../packages/Xamarin.Forms.2.3.4.247/build/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It looks like the VS2022 images do have the Xamarin components installed on them (see helix.dot.net), but the preview images are missing the MAUI components. Prepping a PR to install them.
As we have not gotten any additional direction from the team in the last ~20 days, I am going to close this issue. Feel free to re-open it (or open a new one) once you have more information for us to take action on.