Created
July 19, 2018 14:20
-
-
Save gbellmann/15bf6f4dbd6e87f2f3fb4193a1dbde64 to your computer and use it in GitHub Desktop.
Modified .csproj file for when you need to add bundled scripts that are not included in your project file to the MSDeploy package.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
... | |
<PropertyGroup> | |
<CopyAllFilesToSingleFolderForMSDeployDependsOn> | |
CustomCollectFiles; | |
$(CopyAllFilesToSingleFolderForMSDeployDependsOn); | |
</CopyAllFilesToSingleFolderForMSDeployDependsOn> | |
</PropertyGroup> | |
<Target Name="CustomCollectFiles"> | |
<ItemGroup> | |
<_CustomFiles Include="Scripts\your-app-bundle.*" /> | |
<FilesForPackagingFromProject Include="%(_CustomFiles.Identity)"> | |
<DestinationRelativePath>Scripts\%(Filename)%(Extension)</DestinationRelativePath> | |
</FilesForPackagingFromProject> | |
</ItemGroup> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment