I'm creating a WSP package in Visual Studio 2010 to deploy my feature to the Sharepoint 2007 environment on a Windows 2003 Server box. Currently, the xml file that references the assembly containing the code I have written is referenced from the GAC. What I'd like to do is make it so this WSP file will add the dll to the assembly automatically and then reference it so the feature can be properly installed. Is this possible? If so, how is this done?
I have my ListManifest.xml file as follows:
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Receivers ListTemplateId="101">
<Receiver>
<Name>AddedEventHandler</Name>
<Type>ItemAdded</Type>
<SequenceNumber>10000</SequenceNumber>
<Assembly DeploymentTarget="GlobalAssemblyCache" Location="SPEventHandler.dll"/>
<Class>SPEventHandler.ItemAddedHandler</Class>
<Data></Data>
<Filter></Filter>
</Receiver>
</Receivers>
As you can see, it references the SPEventHandler assembly in the GAC, but I'd like the program to have my DLL included in the assembly, add it to the GAC and reference it.
Thanks for your help in advance.
My DDF file:
.OPTION Explicit ; Generate errors
.Set DiskDirectory1="..\bin"
.Set CabinetNameTemplate="ChangeContentType.wsp"
manifest.xml
.Set DestinationDir="List\ListTemplates"
List\ListTemplates\ListManifest.xml ; specify cab file name
.Set DestinationDir="List\Messages"
List\Messages\schema.xml
.Set DestinationDir="List"
List\Feature.xml
..\bin\SPEventHandler.dll SPEventHandler.dll
manifest.xml :
<?xml version="1.0" encoding="utf-8"?>
<Solution xmlns="http://schemas.microsoft.com/sharepoint/"
SolutionId="F9850E13-81B6-47E1-BBC6-42AC70A903C3" >
<FeatureManifests>
<FeatureManifest Location="List\Feature.xml"/>
</FeatureManifests>
</Solution>