NotepadPlusPlusPluginPack.Net icon indicating copy to clipboard operation
NotepadPlusPlusPluginPack.Net copied to clipboard

Project Template not recognized in Visual Studio 2022

Open glanham-jr opened this issue 2 years ago • 4 comments

I tried loading the using the latest release (0.95) with Visual Studio 2022, but the IDE didn't recognize it. It currently works with Visual Studio 2019. However, I was able to create the project in Visual Studio 2019, and open it in 2022.

glanham-jr avatar Apr 15 '22 20:04 glanham-jr

If you can, please submit a PR that fixes it:)

kbilsted avatar May 28 '22 14:05 kbilsted

What is the errors you are getting and what are the solutions to those errors?

kbilsted avatar Jun 09 '22 06:06 kbilsted

Insofar as I'm experiencing the same thing (and I haven't tried VS2019 yet), there are no errors to report:

  • You place the Zip file in Documents\Visual Studio 2022\Templates\ProjectTemplates\Visual C#\ as suggested
  • You open Visual Studio
  • You search for the template - it's not there

(I've also tried something more equivalent to another template that does work, eg unzipped in C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\ProjectTemplates\CSharp\1033, but same outcome)

Presumably there's a failure in a log somewhere, but I have no idea where the template enumeration log might be found.

TaoK avatar Aug 04 '22 07:08 TaoK

Presumably this is unrelated information, but when I installed VS2019 as a workaround, I found that I was still missing a few steps that were non-obvious (to me):

  • I had to install at least the C# support in Visual Studio 2019, otherwise the template was ignored / didn't show up
  • I had to install the .Net 4 targeting pack, otherwise I couldn't compile the new project
  • I had to install .Net 3.5 (windows optional feature), otherwise the DllExportTask wouldn't run

After all this I was able to create the project in VS2019, compile it successfully, and also open and run/compile that new project in VS2022.

TaoK avatar Aug 06 '22 13:08 TaoK

so basically the csproj definition incompatibility or missing dependencies for VS2022 issue.

will take care of it in new release's regression testing closing issue.

mahee96 avatar Nov 17 '22 20:11 mahee96

@mahee96 why close bug before committing changes to the project file?

kbilsted avatar Nov 17 '22 21:11 kbilsted

@kbilsted, I am working on synchronizing the latest Scintilla.iface API and current state of this plugin APIs by testing custom generator script which will include all the changes that are directly embedded into the generated CS files.

I just wanted to see what are the active open items that the upcoming PR won't be fixing, so closed the issues that will be fixed.

mahee96 avatar Nov 18 '22 05:11 mahee96