Is there an alternative to specifying `runtime:opt...
# dotnet
m
Is there an alternative to specifying
runtime:options:binary: <x>.dll
when running
pulumi preview/up
against the built dll instead of the project? I’m looking to run against the dll in CI but would ideally like to not use the setting so local dev can just use the standard behaviour
g
We've got a novel way of solving this as we had a similar use-case. We ended up having a Pulumi.yaml that does not specify the binary option alongside the codebase but also has a Pulumi-binary.yaml that does have the binary option specified. Then in the csproj we set the option to copy the Pulumi-binary.yaml to Pulumi.yaml so that when
dotnet build
runs the bin folder should contain both the binaries and the Pulumi.yaml with the specified binary option to execute. I'll try to dig out a minimal example to share
m
Amazing, thank you!
g
I've published an example repo here. Any questions, just shout.
m
Perfect, works exactly as you said. Thanks for providing the example