Open SerratedSharp opened 1 month ago
Note: I didn't have this problem when I went from 17.11.0 Preview 4 to 17.11.0 final release. I didn't have to reinstall workloads in that case.
I'd just be curious if this is by design to require reinstall each time, and if so I think that's a pretty bad experience compared to what we're conditioned to expect when compared to other tooling such as components selected in Visual Studio Installer or Extensions. Having to go and re-lookup documentation every time I upgrade VS to figure out what workloads I need for the given things I'm, trying to do(some of them aren't named super intuitively) to reinstall is not good, nor is the way the project breaks without clear errors.
Otherwise if I encountered a fluke, maybe because I was using preview versions, then I'd be in favor of closing this out. I don't have any way to try and reproduce reliably without uninstalling and then trying to step through versions, and I'm not in a position to subject my dev machine to that.
Is it expected that the templates from the wasm workloads disappear every time I update VS2022? Should workloads become integrated with the VS2022 Installer so it can track your previous selections between updates?
This has happened at least twice now, that after updating VS, I noticed templates are gone, and pre-existing projects using the wasm-browser template have problems. IDK if this is because I'm on a preview channel. (Update Settings won't let me off the Preview channel)
When I update VS without remembering to reinstall the workload, then my wasm-browser projects no longer automatically launch the browser when starting a debug session, and the self-host uses a random port instead of the one configured. Enough time passes that I forget what causes this issue, and am frustrated a bit trying to remember why it's having problems. It seems like the project should have something to alert you if it's missing.
Once I reinstall the dotnet wasm-experimental workload, then close and reopen VS, then the project behaves correctly, and additionally I can again see the templates in the New Project dialog.
Here's output from reinstalling after my most recent update to 17.11.0 Preview 4:
If it were already installed, it would have shown this output: