CI/CD build script
jvmlet opened this issue · comments
Would you please share your build script ?
Thanks
Sure, it is already here - https://github.com/microsoft/DurableFunctionsMonitor/blob/main/azure-pipelines.yml
An Azure DevOps build pipeline.
Thanks, the reason I asked is this, was not aware about <FunctionsInDependencies>true</FunctionsInDependencies>
hack.
The way I delivered [FunctionName]
to the application from nuget
was packaging the source files in nuget and then adding them to Compile
build action, my nuspec
generation looks like this :
var m = new Manifest(new ManifestMetadata());
m.Files.Add(new ManifestFile()
{
Source = $"{dir / "**" / "*.cs"}",
Target = $"contentFiles/any/any/{apiSpec.Ns}"
});
m.Metadata.ContentFiles = new[]
{
new ManifestContentFiles()
{
Include = "any/any/**/*.cs",
BuildAction = "Compile",
Flatten = "true",
CopyToOutput = "true"
}
};