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

Kalpani Ranasinghe 1 Reputation point
2021-09-30T02:22:24.67+00:00

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://learn.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.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,663 questions
{count} votes