ablesa
asked on
How to programmatically figure out the ConfigurationName that the project was built with
I have a windows form project in a solution and when I run that project (whether its via the IDE or running the .exe), I want to be able to know the ConfigurationName that the exe/project was built with. I've looked everywhere and it seems that I need to use DTE or VSLangProj objects to get this, but I can't figure out how to use them to do what I want to do.
In my MDI, I want to have an if statement similar to this:
If Project.ConfigurationName = "Release" then
statement 1
statement 2
End if
can anyone help?
Thanks!
In my MDI, I want to have an if statement similar to this:
If Project.ConfigurationName = "Release" then
statement 1
statement 2
End if
can anyone help?
Thanks!
ASKER
thanks, but no....that's the name of my assembly....
ASKER
no resolution.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, Joseph!
Try this:
My.Application.Info.Produc
jpaulino