Home > Net >  How to check if a workload is installed on client's visual studio
How to check if a workload is installed on client's visual studio

Time:12-09

I'm working on a class library targeting Blazor wasm, and to work properly the client will need the wasm-tools workload installed on their instance of visual studio.

Is there any way to check if they have it installed, and produce an error message of some sort if it isn't the case ?

Thank you.

CodePudding user response:

The Visual Studio installer supports exporting and importing installation configurations as .vsconfig files. Starting with VS2019 a .vsconfig file can be added to the solution folder as a peer of the .sln file and Visual Studio will use the .vsconfig to check for missing installer items.

See "enter image description here

If you see this message then you can confirm that the workload was successfully installed.

But for your question, perhaps you can consider using dotnet command(enter image description here

  • Related