You can download smart templated from http://www.codeplex.com/smarttemplates

 

1.       After  you complete coding of your web part in webpart template, build your project with strong key. And use Reflector to get the strong key name of the dll

 

2.       Open your .webpart file which is under “C:\Projects\WebPartDemo\WebPartDemo\WSP\12\TEMPLATE\FEATURES\WebPartDemo”,replace the type name with strong key name

3.       Create a GAC folder under WSP folder

 

4.       Modify  createwsp.bat file , comment out xcopy to .\80\Bin and add xcopy dll to GAC

 

5.       Then rebuild your project and run setup. This time the dll will be installed to GAC instead of bin directory

 

Advertisements