microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.84k stars 320 forks source link

The WindowsAppSDK extension forces me to install UWP workload #2628

Open ghost1372 opened 2 years ago

ghost1372 commented 2 years ago

Describe the bug

I have Visual Studio and WindowsAppSDK installed without UWP Workload. Now when I want to update the Windows App SDK Extension template, I have to download and install UWP workload!

https://task.ms/38214742

Steps to reproduce the bug

1.Install windowsAppSDK and visual studio without uwp workload (only .net workload)

  1. Update extension to latest (v1.1)
  2. Now you have to install UWP Workload

Expected behavior

The extension must be updated without the need to install additional workload

Screenshots

image

NuGet package version

No response

Packaging type

No response

Windows version

No response

IDE

Visual Studio 2022

Additional context

https://aka.ms/windowsappsdk/1.1/1.1.1/vsix-2022-cs

BenJKuhn commented 2 years ago

This is something already on our radar (added internal work item link for tracking). This probably won't be addressed until App SDK 1.2. Much of the XAML & MSIX support in Visual Studio was built during the UWP era, and is still baked into tooling packages in the larger UWP workload. App SDK only needs a fraction of the content there, but we still have some refactoring to do to lift it out.

Varorbc commented 2 years ago

This is something already on our radar (added internal work item link for tracking). This probably won't be addressed until App SDK 1.2. Much of the XAML & MSIX support in Visual Studio was built during the UWP era, and is still baked into tooling packages in the larger UWP workload. App SDK only needs a fraction of the content there, but we still have some refactoring to do to lift it out.

Why add windows app sdk templates in the visual studio installer without installing the uwp workload?

ghost1372 commented 2 years ago

@Varorbc Because I do not need it. According to documentation, We can skip installing it. And Visual Studio allows us to do that.

On the Workloads tab of the installation dialog box, select as appropriate:

  • For C# app development using the Windows App SDK, select .NET Desktop Development. Then in the Installation details pane of the installation dialog box, select Windows App SDK C# Templates (at the bottom of the list).
  • For Universal Windows Platform (UWP) app development, select Universal Windows Platform development
Varorbc commented 2 years ago

@ghost1372 I don't need it either I was just wondering why the same extensions, installed from different sources, produce different results, either requiring both UWP workloads, or not requiring both UWP workloads, as opposed to one requiring one and the other not

ghost1372 commented 3 months ago

Hi @codendone any news?