-
I've just installed VS2022 on a fresh, clean Win10Pro to test it out with our solutions, which are all plain, native C (with a couple C++ modules). So I only installed the C/C++ Desktop package from the VS Installer to start. Then I followed these instructions and when I load the project I created in the first step, I get an error about the project targeting an older .NET version. Oh, I changed my project name to "xLearn" because the name used in the instructions matches one of the extensions loaded by the 'essentials' pack install by following the requirements from the document. I closed the IDE and restarted, then loaded the solution again and this time it offered to retarget it for me, so I accepted. Now the IDE is reporting 38 errors (the first is This is the first time I've ever looked at creating an extension, so I know nothing, but the tutorial doesn't mention that I should expect so many errors. Ergo, I'm confused about where to go next. (For reference, I've been a C programmer for about 40 years on DOS original, then Windows and linux, too. So I have a little experience... :-) ) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Sounds like your project might be using the wrong target framework. Each version of
|
Beta Was this translation helpful? Give feedback.
-
OK. The comment about Frankly, I'm quite surprised that this wasn't automatically included by Visual Studio when I selected its "Visual Studio Extension Development" package. Apparently, someone, somewhere assumed that I would already have this installed, I guess. |
Beta Was this translation helpful? Give feedback.
-
@nurbles I've opened an internal bug for the extensibility team to take a look at missing components in the extensibility workload |
Beta Was this translation helpful? Give feedback.
OK. The comment about
Community.VisualStudio.Toolkit.17
sent me on a hunt and I finally stumbled over another requirement that was not mentioned in the instructions I referenced in my OP. I needed to install the .NET 4.8 Framework Developer's Pack After I did that, the project built with no errors.Frankly, I'm quite surprised that this wasn't automatically included by Visual Studio when I selected its "Visual Studio Extension Development" package. Apparently, someone, somewhere assumed that I would already have this installed, I guess.