Closed starkpl closed 5 months ago
@Frassle thanks for the approve. It looks like some checks failed in the Merge Queue (same that passed in the PR, doesn't look correlated with my changes). Any idea what happened and how can we merge this PR?
Odd, we'll try another merge if that fails I'll dig into what's up. The PR test passed so it probably isn't due to this change.
Yeh that test is failing on main now, something must have changed in the CLI. Raised https://github.com/pulumi/pulumi-dotnet/issues/252 to fix it.
Thanks, got this merged now!
Thanks, can't wait to use it 👍
I want to be able to write a base class for a stack, which will be reused for a few projects which have separate, but similar infrastructures. Currently, the Output properties defined on the base class are not being registered in the derived stacks because of the
BindingFlags.DeclaredOnly
flag used in theStack.RegisterPropertyOutputs
method.In this PR I remove this flag. Instead, I explicitly cut off properties from ancestors of the
Stack
class (currently theResource
class hasUrn
output property and I believe this was the reason to add theDeclaredOnly
flag in the first place).Check the test I added to see exactly what I wanted to achieve.