A recent mention of PostSharp reminded me of this:
Last year, when I worked, we thought of using PostSharp to inject tools into our code. This was in the Team Team Server Build / Continuous Integration environment.
Thinking about it, I felt how PostSharp works - it edits IL, which is generated by compilers. It bothered me a little.
I was not so concerned that PostSharp did not do its job correctly; I was worried about what I first heard about such an instrument. I was worried that other tools might not take this into account.
In fact, as we moved forward, we had some problems with PostSharp getting confused about which folder the original IL was in. This violated our builds. Apparently, this is due to a conflict with the goal of MSBUILD, which solves project links. The conflict appears to be related to PostSharp using a temporary directory to store unmodified versions of IL.
Anyway, I didn't have StackOverflow to reference then! Now that I do this, I would like to ask you all if you know any other tools that edit IL as part of the build process; or Microsoft takes this tool to an account in Visual Studio, MSBUILD, Team Build, etc.
Update: Thanks for the answers.
The bottom line is that, at least with VS 2010, Microsoft really needs to know that this can happen. Therefore, if there are problems in this area in VS2010, Microsoft may share the blame.
c # postsharp intermediate-language
John saunders
source share