Adding AllowPartiallyTrustedCallers with MSBuild

Posted by Ben Rice on Stack Overflow See other posts from Stack Overflow or by Ben Rice
Published on 2009-12-03T19:03:36Z Indexed on 2010/06/09 11:52 UTC
Read the original article Hit count: 595

I am using CC.Net with MSBuild tasks to build an application that is composed of a number of solutions and projects. We are using the AssemblyInfo MSBuild Community task to update version info in AssemblyInfo.cs. Unfortunately the AllowPartiallyTrustedCallers attribute doesn't get in and the AssemblyInfo task tells me that the AllowPartiallyTrustedCallers attribute is not supported by the task. Is there any way to add that attribute through MSBuild without having to resort to a custom task that just tacks the line at the end of the file after-the-fact?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about msbuild