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

Kalpani Ranasinghe 1 Reputation point

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.

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.

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