Forked from baconapplications/TestPublishExcludeFilesAndDirs.pubxml
Created
July 22, 2020 15:28
-
-
Save manhng1983/2bf0dda965d402c9e3f757825d7e44e8 to your computer and use it in GitHub Desktop.
pubxml exclude files and directories
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="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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://sitecore.stackexchange.com/questions/9363/excluding-files-like-web-config-when-using-publishing-in-vs-2017