Creating a Visual Studio Package and DLLs in Single Bin Mode

I use MEF to create some kind of rough plugin architecture. It works well. However, when I do the deployment using visual studio package / publish build tasks (which I invoke through NAnt / MSbuild). My unrelated plugin assemblies are not included in the package and therefore are not deployed.

Can VS / MSBuild be specified to include these DLLs?

They live in / bin / Extensions.

Cheers rob

+2
source share
3 answers

. : http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx

, .

<!--
    Added by RSL to deal with deploying the plugins folder
    Followed tutorial here:
    http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx
  -->
    <PropertyGroup>
        <CopyAllFilesToSingleFolderForPackageDependsOn>
            CollectExtensionDLLs;
            CollectExtensionViews;
            $(CopyAllFilesToSingleFolderForPackageDependsOn);
        </CopyAllFilesToSingleFolderForPackageDependsOn>
    </PropertyGroup>
    <Target Name="CollectExtensionDLLs">
        <ItemGroup>
            <_CustomFiles Include="bin\Extensions\**\*"/>

            <FilesForPackagingFromProject Include="%(_CustomFiles.Identity)">
                <DestinationRelativePath>bin\Extensions\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
            </FilesForPackagingFromProject>
        </ItemGroup>
    </Target>
    <Target Name="CollectExtensionViews">
        <ItemGroup>
            <_CustomFiles Include="Views\Extensions\**\*"/>

            <FilesForPackagingFromProject Include="%(_CustomFiles.Identity)">
                <DestinationRelativePath>Views\Extensions\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
            </FilesForPackagingFromProject>
        </ItemGroup>
    </Target>
    <!-- //// End Rob modifications -->
+2
  • , : → → → . , "", , , " "
  • → , :
    • :
    • : ,

, , ( ), , bin.

+2

All Articles