I have done this manually then re-zipped the files as creating a package via dnn is leaving out some of the required dll's.
My mew issue on this is when I try to upload my extension via the wizard it cannot find the dnn manifest file. This is 1 subdirectory below where it is looking. I'm guessing this has somthing to do with my build file.
My error
A critical error has occurred. Could not find file 'D:\MyDNNSite\Install\Temp\0ivw5oxk\_Custom.MyModule.dnn'.
The actual location is e 'D:\MyDNNSite\Install\Temp\0ivw5oxk\_Custom.MyModule_Install\_Custom.MyModule.dnn'.
How can I change my module build file to reflect this path?
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
<Target Name="AfterBuild" DependsOnTargets="CopyBin;CopyFiles" />
<PropertyGroup>
<WebsitePath>C:\EOA</WebsitePath>
<WebsiteBinPath>$(WebsitePath)\bin</WebsiteBinPath>
<ModuleFolderName>$(WebsitePath)\DesktopModules\Custom\MyModule</ModuleFolderName>
</PropertyGroup>
<ItemGroup>
<Views Include="*.ascx;" />
<Styles Include="*.css;" />
</ItemGroup>
<Target Name="CopyBin">
<Copy SourceFiles="$(MSBuildProjectDirectory)\bin\$(AssemblyName).dll" DestinationFolder="$(WebsiteBinPath)" />
<Copy SourceFiles="$(MSBuildProjectDirectory)\bin\$(AssemblyName).dll" DestinationFolder="$(WebsiteBinPath)" />
</Target>
<Target Name="CopyFiles">
<Copy SourceFiles="@(Views)" DestinationFolder="$(ModuleFolderName)" />
<Copy SourceFiles="@(Styles)" DestinationFolder="$(ModuleFolderName)" />
</Target>
</Project>