Created
October 8, 2014 05:40
-
-
Save baconapplications/f7d18b132c1b780fc740 to your computer and use it in GitHub Desktop.
Final pubxml file
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"?> | |
<!-- | |
This file is used by the publish/package process of your Web project. You can customize the behavior of this process | |
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121. | |
--> | |
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<WebPublishMethod>FileSystem</WebPublishMethod> | |
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> | |
<LastUsedPlatform>Any CPU</LastUsedPlatform> | |
<SiteUrlToLaunchAfterPublish /> | |
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> | |
<ExcludeApp_Data>True</ExcludeApp_Data> | |
<publishUrl>F:\Projects\publish</publishUrl> | |
<DeleteExistingFiles>True</DeleteExistingFiles> | |
<!-- files to not publish - path is relative to project root --> | |
<ExcludeFilesFromDeployment>packages.config;css\*.less;scripts\_references.js;ignoreme.txt</ExcludeFilesFromDeployment> | |
<!-- directories to not publish - path is relative to project root --> | |
<ExcludeFoldersFromDeployment>RemoveFolder</ExcludeFoldersFromDeployment> | |
</PropertyGroup> | |
<!-- copy our external file and overwrite the global.js file --> | |
<Target Name="CopyGlobal"> | |
<ItemGroup> | |
<!-- path is relative to project root --> | |
<_CustomFiles Include="..\global.js" /> | |
<FilesForPackagingFromProject Include="%(_CustomFiles.Identity)"> | |
<DestinationRelativePath>scripts\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath> | |
</FilesForPackagingFromProject> | |
</ItemGroup> | |
</Target> | |
<PropertyGroup> | |
<CopyAllFilesToSingleFolderForPackageDependsOn> | |
CopyGlobal; | |
$(CopyAllFilesToSingleFolderForPackageDependsOn); | |
</CopyAllFilesToSingleFolderForPackageDependsOn> | |
</PropertyGroup> | |
<!-- copy external file and rename --> | |
<Target Name="CopyAndRename"> | |
<ItemGroup> | |
<!-- path is relative to project root --> | |
<_CustomFiles Include="..\renamefile.js" /> | |
<FilesForPackagingFromProject Include="%(_CustomFiles.Identity)"> | |
<DestinationRelativePath>scripts\%(RecursiveDir)config.js</DestinationRelativePath> | |
</FilesForPackagingFromProject> | |
</ItemGroup> | |
</Target> | |
<PropertyGroup> | |
<CopyAllFilesToSingleFolderForPackageDependsOn> | |
CopyAndRename; | |
$(CopyAllFilesToSingleFolderForPackageDependsOn); | |
</CopyAllFilesToSingleFolderForPackageDependsOn> | |
</PropertyGroup> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment