Does system.Reflection work when I use release folder开发者_如何学Go ?
Usually yes - reflection is just a runtime tool; however, it really depends on what you do with your release that is different to debug; for example:
- do you obfuscate?
- do you merge (ilmerge etc)
- do you sign/strong-name them differently?
- does your release app run with the same privelege / security as in the debugger?
- any caspol differences: running from a network share, for eample?
- is the release framework version / platform the same?
- does your code have any intentional
#IF DEBUG
/#IF RELEASE
or[Conditional(...)]
sections?
all of these can impact reflection.
But if all other variables are the same, then yes: reflection should be the same between debug and release.
The simple answer is that "Yes, reflection will work regardless of the folder"
Are you running into a particular problem?
精彩评论