Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manhng1983/2bf0dda965d402c9e3f757825d7e44e8 to your computer and use it in GitHub Desktop.
Save manhng1983/2bf0dda965d402c9e3f757825d7e44e8 to your computer and use it in GitHub Desktop.
pubxml exclude files and directories
<?xml version="1.0" encoding="utf-8"?>
<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>
</Project>