Monday, March 21, 2011

Add an assembly to your Visual Studio 2010 SharePoint Package

If you are familiar with WSP-builder for development with SharePoint 2007, the way of adding assemblies to your SharePoint 2010 project is a little different. You always start with an empty SharePoint project. From here you can add other items. In WSP-builder you had the bin and GAC folder in Visual Studio.


To add an assembly to your Visual Studio 2010 SharePoint Package (SharePoint 2010)

1.Open you Package.package file.
2.On the bottom of the window you can choose: Design | Advanced | Manifest
3.Choose Advanced




You can choose for an existing assembly or the output assembly of your project.

















You can deploy the assembly to the GAC (C:\Windows\Assembly - The Global Assembly Cache, full trusted) or the WebApplication (actually the Bin Folder of your WebApplication in your InetPub folder of your WebServer).

No comments: