Created
April 22, 2014 22:17
-
-
Save leniel/11196345 to your computer and use it in GitHub Desktop.
ASP.NET Web Deployment using Visual Studio: Deploying Extra Files
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>Package</WebPublishMethod> | |
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> | |
<LastUsedPlatform>Any CPU</LastUsedPlatform> | |
<SiteUrlToLaunchAfterPublish /> | |
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> | |
<ExcludeApp_Data>True</ExcludeApp_Data> | |
<DesktopBuildPackageLocation>C:\ITVizion\VizionLogs\Web Deploy Packages\VizionLogs.DailyLogs.zip</DesktopBuildPackageLocation> | |
<PackageAsSingleFile>true</PackageAsSingleFile> | |
<DeployIisAppPath> | |
</DeployIisAppPath> | |
</PropertyGroup> | |
<Target Name="CustomCollectFiles"> | |
<ItemGroup> | |
<_CustomFiles Include="..\ExtraFiles\**\*" /> | |
<FilesForPackagingFromProject Include="%(_CustomFiles.Identity)"> | |
<DestinationRelativePath>>%(RecursiveDir)%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath> | |
</FilesForPackagingFromProject> | |
</ItemGroup> | |
</Target> | |
<PropertyGroup> | |
<CopyAllFilesToSingleFolderForPackageDependsOn> | |
CustomCollectFiles; | |
$(CopyAllFilesToSingleFolderForPackageDependsOn); | |
</CopyAllFilesToSingleFolderForPackageDependsOn> | |
<CopyAllFilesToSingleFolderForMsdeployDependsOn> | |
CustomCollectFiles; | |
$(CopyAllFilesToSingleFolderForPackageDependsOn); | |
</CopyAllFilesToSingleFolderForMsdeployDependsOn> | |
</PropertyGroup> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment