Hi guys, how to you manage stack references? Sinc...
# general
p
Hi guys, how to you manage stack references? Since stack references are defined by just strings, not verifiable at compile time, it is easy to for example rename a stack output and not realize it breaks some other stacks. How do you deal with that?
b
generally you’d use the
require_output
methods and the downstream stack will fail at compile time
p
You mean at runtime, no? The following code will not break at compile time:
Copy code
var stackReference = new StackReference("nonexistent");
var output = stackReference.RequireOutput("doesntExist");
b
sorry yes, didn’t realise you were using dotnet 🙂