c# - MSBuild Task for setting custom attribute in AssemblyInfo.cs -


is there msbuild task setting custom attribute in assemblyinfo.cs? found assemblyinfo task seems cannot set custom attributes, predefined ones. i'd set 3 custom properties have added file.

any suggestion how solve this?

writecodefragment task can help:

<target name="beforebuild">     <itemgroup>      <assemblyattributes include="assemblytitle">         <_parameter1>my assembly</_parameter1>      </assemblyattributes>      <assemblyattributes include="assemblydescription">         <_parameter1>my assembly</_parameter1>      </assemblyattributes>        <assemblyattributes include="assemblycompany">         <_parameter1>my company</_parameter1>      </assemblyattributes>      <assemblyattributes include="assemblyproduct">         <_parameter1>my product</_parameter1>      </assemblyattributes>      <assemblyattributes include="assemblycopyright">         <_parameter1>copyright © 2012</_parameter1>      </assemblyattributes>      <assemblyattributes include="assemblyculture">         <_parameter1></_parameter1>      </assemblyattributes>             <assemblyattributes include="assemblyversion">         <_parameter1>1.0.0.0</_parameter1>      </assemblyattributes>         <assemblyattributes include="assemblyfileversion">         <_parameter1>1.0.0.0</_parameter1>      </assemblyattributes>      <assemblyattributes include="system.runtime.interopservices.guid">         <_parameter1>e7a979b2-0a4f-483a-ba60-124e7ef3a931</_parameter1>      </assemblyattributes>     </itemgroup>   <writecodefragment language="c#" outputfile="properties/assemblyinfo.cs" assemblyattributes="@(assemblyattributes)" /> </target> 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -