I know it is generally not possible to use a non-constant value as a parameter to an attribute, but I'm wondering - if I know the value at build time, is there a way to make that a constant value in the code that I can then use as a parameter?
My situation is that I'm using an external sealed attribute class, and I need to change the parameter value depending on the environment that's being built and deployed to. Since our CI scripts do both the building and deploying, I'll know the environment name ahead of time.
I'm using dotnet3.1, and my C# version is flexible.