Skip to content

Instantly share code, notes, and snippets.

@skttl
Created March 30, 2016 06:14
Show Gist options
  • Save skttl/0e1412efe9452bcc24481aed9f639554 to your computer and use it in GitHub Desktop.
Save skttl/0e1412efe9452bcc24481aed9f639554 to your computer and use it in GitHub Desktop.
Include ucommerce bins from NonNugetAssemblies when publishing through msdeploy
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- add ucommerce assemblies -->
<!-- http://www.asp.net/mvc/overview/deployment/visual-studio-web-deployment/deploying-extra-files -->
<Target Name="CustomCollectFiles">
<ItemGroup>
<_CustomFiles Include="..\NonNugetAssemblies\uCommerce\**\*" />
<FilesForPackagingFromProject Include="%(_CustomFiles.Identity)">
<DestinationRelativePath>bin\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
</Target>
<PropertyGroup>
<CopyAllFilesToSingleFolderForPackageDependsOn>
CustomCollectFiles;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForPackageDependsOn>
<CopyAllFilesToSingleFolderForMsdeployDependsOn>
CustomCollectFiles;
$(CopyAllFilesToSingleFolderForMsdeployDependsOn);
</CopyAllFilesToSingleFolderForMsdeployDependsOn>
</PropertyGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment