I am working on a clean Win10 install and struggling to get the C# templates for Visual Studio to install correctly.
I am working with Visual Studio Community 2019, version 16.11.27, and Visual Studio Community 2022, version 17.6.5. Both are setup for .NET desktop development, desktop development with C++, and Linux embedded development with C++. I have tried installing the PLCnext_Toolchain_Windows_2023.0 with all available options for C# and C++ extensions for visual studio. Also tried PLCnext_Toolchain_Windows_2022.0 and PLCnCLI_Setup_2021.0.
I can open and build existing C# projects without issue, but I am missing the new project and new item templates. Any ideas on what I am missing?
Hi Rob,
can you please check if all the extensions for visual studio are installed under Extensions → Manage Extensions
Sometime extension packages are stuck in a problematic loading state and land on a blacklist. Following commands could help.
Open up a command line and navigate to one of your VS Installation (e.g. C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE) and run:
.\devenv.exe /ResetSkipPkgs
.\devenv.exe /updateconfiguration
.\devenv.exe /Setup
I ran the suggested commands which lead to the realization of the real issue: visual studio extensions are installed per user. My user account does not have admin privileges so I am running the tool chain installer as a different user. If I run visual studio as that admin user, the packages are installed correctly, but not for my non-admin user account.
Is there a way to install the extensions for all users?
Unfortunately, there is no other way for now. We are analyzing a possible solution. I will inform you about the status in the end of next week.
We where able to fix the issue and the fix will be part of the next version 2023.6. The version will be released in the next weeks together with the firmware and PLCnext Engineer 2023.6.
Excellent. Thank you, .