SharpCrafters Forum – Enable/Disable postasharp

SharpCrafters Support Forum

        


Enable/Disable postasharp Expand / Collapse
Author
Message
Posted 12/23/2009 1:42:47 PM


Community Member
Hello,

can i enable or disable postsharp?
I have created a simple aspect and try it on a very large project.
It takes too much to postsharp making his job.
Since the aspect is working, to reduce the compile time i want to disable it because i'm testing other functionalities of the program and once the rest is ok i can enable postsharp to inject his code.
Any idea on how to do this?

Thank you
Post #2622
Posted 1/3/2010 10:08:21 AM


Gael Fraiteur

SharpCrafters
You can define the compiler constant SkipPostSharp, or the MSBuild property of the same name. The easiest is probably to have many build configurations in Visual Studio and to define the SkipPostSharp constant/property only for the configurations you want.
Post #2623
Posted 1/4/2010 9:36:32 AM


Community Member
I have created a new build configuration and defined the SkipPostSharp symbol. It works!! <!-- s:D --> <!-- s:D -->

thank you
Post #2624
« Prev Topic | Next Topic »


All times are GMT +1:00, Time now is 11:34am

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0.142. 8 queries. Compression Disabled.