2015年11月23日 星期一

[Visual Studio 2015] Create and distribute a Poject Template with Wizard (2)

 #Visual Studio Extension   #Project Template   #IWizard   #VSIX 

Introduction


Since we had made a project template, now it’s time to distribute it to your development team or the world.

(From MSDN)
You can use the VSIX Project template to wrap one or more Visual Studio extensions in a VSIX project, and then publish the package on the Visual Studio Gallery Web site.


Environment

l   Visual Studio 2015 Ent.



Start distributing


Create a new VSIX project



Open the source.extension.vsixmanifest in the VSIX project.
Fulfill the in information in Metadata」, which including of the product name , description, version and etc.

 

  

In Install Targets, you can leave the settings as default or add new targets of what levels or versions of Visual Studio that are in your distributing scope.

 


Next step in Assets, we will choose what project template and wizard that will be distributed.



Add the output *.zip of project template.

 

However, if the VSIX project is created in the Visual Studio solution which includes your Project Template and Wizard Project, you can include the project template directly from the solution. It’s a pity that I would get an error message like this,

 

I didn’t find a solution to solve this problem, so in the meantime, I add the project template through the physical output file.

But adding the Wizard Project works fine through the solution. (lol)

 

Last in Dependencies, define which dependencies your project template have, and how they will be installed.

 

 

 


Build VSIX

Now build the VSIX project, you can find the *.vsix in your output folder.


You can share this *.vsix for your team members.
If you want to publish it all the developers in the world, then upload it to the Visual Studio Gallery. See this MSDN tutorial :
.
  

Reference




沒有留言:

張貼留言