Skip to content

Instantly share code, notes, and snippets.

@KaiWalter
Last active July 24, 2017 19:32
Show Gist options
  • Select an option

  • Save KaiWalter/13a3cd2ce5e384e4bd9e7b58f839513a to your computer and use it in GitHub Desktop.

Select an option

Save KaiWalter/13a3cd2ce5e384e4bd9e7b58f839513a to your computer and use it in GitHub Desktop.
Functions Console host as Service Fabric Guest Executable
rem copy versioned DataPackage folder to work
cd ..
for /D %%f in (*.Data.*) do XCOPY.EXE %%f\*.* work /S/E
<ItemGroup>
<Content Include="..\..\azure-webjobs-sdk-script\src\WebJobs.Script.Host\bin\Release\**\*.*">
<Link>ApplicationPackageRoot\FunctionHostPkg\Code\%(RecursiveDir)%(Filename)%(Extension)</Link>
</Content>
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Code\___SetupDataFolder.bat" />
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Config\Settings.xml" />
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Data\host.json" />
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Data\ServiceBusQueueTrigger\function.json" />
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Data\ServiceBusQueueTrigger\index.js" />
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Data\TimerTrigger\function.json" />
<Content Include="ApplicationPackageRoot\FunctionHostPkg\Data\TimerTrigger\index.js" />
<Content Include="ApplicationPackageRoot\FunctionHostPkg\ServiceManifest.xml" />
<Content Include="packages.config" />
</ItemGroup>
<CodePackage Name="Code" Version="1.0.0">
<SetupEntryPoint>
<ExeHost>
<Program>___SetupDataFolder.bat</Program>
<WorkingFolder>CodePackage</WorkingFolder>
<ConsoleRedirection FileRetentionCount="5" FileMaxSizeInKb="2048" />
</ExeHost>
</SetupEntryPoint>
<EntryPoint>
<ExeHost>
<Program>Microsoft.Azure.WebJobs.Script.Host.exe</Program>
<ConsoleRedirection FileRetentionCount="5" FileMaxSizeInKb="2048" />
</ExeHost>
</EntryPoint>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment