Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@SyntaxC4
Last active August 29, 2015 13:57
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 SyntaxC4/9545768 to your computer and use it in GitHub Desktop.
Save SyntaxC4/9545768 to your computer and use it in GitHub Desktop.
This target file can be used to deploy WebJobs via WebDeploy (Visual Studio Publish)
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="4.0">
<ItemGroup>
<FilesForPackagingFromProject Include="App_Data\jobs\**\*">
<DestinationRelativePath>App_Data\jobs\%(RecursiveDir)%(FileName)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
</Project>
rem Replace [WebProjectName] with the name of your Web Application project name
xcopy "$(TargetDir)*.*" "$(SolutionDir)[WebProjectName]\App_Data\jobs\continuous\$(ProjectName)\" /y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment