question

KalpaniRanasinghe-5595 avatar image
0 Votes"
KalpaniRanasinghe-5595 asked PengGe-MSFT commented

How can I run a project template project using command line? (VSIX)

I'm very much new to visual studio extensions. Currently, I'm working with vsix project template with a wizard. I used this guideline to create the project.

https://docs.microsoft.com/en-us/visualstudio/extensibility/how-to-use-wizards-with-project-templates?view=vs-2019

I want to run this project in command prompt. But It doesn't work. It gives me the following error.

 error MSB4019: The imported project "C:\Program Files\dotnet\sdk\5.0.301\Microsoft\VisualStudio\v16.0\VSSDK\Microsoft.VsSDK.targets" was not found. Confirm that the expression in the Import declaration "C:\Program Files\dotnet\sdk\5.0.301\Microsoft\VisualStudio\v16.0\VSSDK\Microsoft.VsSDK.targets" is correct, and that the file exists on disk.

From visual studio I can run the project without any issue.

dotnet-visual-basicvs-extensions
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers