new to Nant
Ruben Rotteveel <[email protected]> Sat, 31 Mar 2012 15:16:55 +0000
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <10A08DE450078E46971CF2353254623E9CEBF3@BY2PRD0510MB378.namprd05.prod.outlook.com> |
--===============1510509663483212779==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_10A08DE450078E46971CF2353254623E9CEBF3BY2PRD0510MB378na_"
--_000_10A08DE450078E46971CF2353254623E9CEBF3BY2PRD0510MB378na_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I'm new to Nant and am editing a build script. I need to build the assembl=
ies in my project to AllowPartiallyTrustedCallers, however when I add the a=
ttribute to the assemblyinfo builder I get the following error:
'...CommonAssemblyInfo.cs' could not be generated.
Assembly attribute with type 'AllowPartiallyTrustedCallers' could not b=
e loaded.
Any help is greatly appreciated.
This is the part that creates the assemblyinfo.
<target name=3D"update-common-assemblyinfo">
<echo message=3D"Generating common AssemblyInfo file..." />
<!-- ensure src/CommonAssemblyInfo.cs is writable if it already exists =
-->
<attrib file=3D"${root.dir}\src\CommonAssemblyInfo.cs" readonly=3D"fals=
e" if=3D"${file::exists('${root.dir}\src\CommonAssemblyInfo.cs')}" />
<!-- generate the source file holding the common assembly-level attribu=
tes -->
<asminfo output=3D"${root.dir}\src\CommonAssemblyInfo.cs" language=3D"C=
Sharp">
<imports>
<import namespace=3D"System" />
<import namespace=3D"System.Security" />
<import namespace=3D"System.Reflection" />
<import namespace=3D"System.Runtime.InteropServices" />
</imports>
<attributes>
<attribute type=3D"CLSCompliantAttribute" value=3D"true" />
<attribute type=3D"ComVisibleAttribute" value=3D"false" />
<attribute type=3D"AssemblyProductAttribute" value=3D"${product.ful=
lname}" />
<attribute type=3D"AssemblyCompanyAttribute" value=3D"${product.url=
}" />
<attribute type=3D"AssemblyCopyrightAttribute" value=3D"${product.c=
opyright}" />
<attribute type=3D"AssemblyTrademarkAttribute" value=3D"Apache Lice=
nse, Version 2.0" />
<attribute type=3D"AssemblyCultureAttribute" value=3D"" />
<attribute type=3D"AssemblyVersionAttribute" value=3D"${project.ver=
sion}" />
<attribute type=3D"AssemblyConfigurationAttribute" value=3D"${proje=
ct.framework}; ${project.version}; ${project.buildtype}" />
<attribute type=3D"AllowPartiallyTrustedCallers" value=3D"" />
</attributes>
</asminfo>
</target>
--_000_10A08DE450078E46971CF2353254623E9CEBF3BY2PRD0510MB378na_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal">I’m new to Nant and am editing a build script.=
I need to build the assemblies in my project to AllowPartiallyTruste=
dCallers, however when I add the attribute to the assemblyinfo builder I ge=
t the following error:<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">‘…CommonAssemblyInfo.cs' could not be ge=
nerated.<o:p></o:p></p>
<p class=3D"MsoNormal"> Assembly attribute with type 'All=
owPartiallyTrustedCallers' could not be loaded.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">Any help is greatly appreciated.<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal">This is the part that creates the assemblyinfo.<o:p>=
</o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><target name=3D"update-common-assemblyinfo&q=
uot;><o:p></o:p></p>
<p class=3D"MsoNormal"> <echo message=3D"Generati=
ng common AssemblyInfo file..." /><o:p></o:p></p>
<p class=3D"MsoNormal"> <!-- ensure src/CommonAssembly=
Info.cs is writable if it already exists --><o:p></o:p></p>
<p class=3D"MsoNormal"> <attrib file=3D"${root.di=
r}\src\CommonAssemblyInfo.cs" readonly=3D"false" if=3D"=
${file::exists('${root.dir}\src\CommonAssemblyInfo.cs')}" /><o:p></=
o:p></p>
<p class=3D"MsoNormal"> <!-- generate the source file =
holding the common assembly-level attributes --><o:p></o:p></p>
<p class=3D"MsoNormal"> <asminfo output=3D"${root=
.dir}\src\CommonAssemblyInfo.cs" language=3D"CSharp"><o:p=
></o:p></p>
<p class=3D"MsoNormal"> <imports><o:p><=
/o:p></p>
<p class=3D"MsoNormal"> <impor=
t namespace=3D"System" /><o:p></o:p></p>
<p class=3D"MsoNormal"> <impor=
t namespace=3D"System.Security" /><o:p></o:p></p>
<p class=3D"MsoNormal"> <impor=
t namespace=3D"System.Reflection" /><o:p></o:p></p>
<p class=3D"MsoNormal"> <impor=
t namespace=3D"System.Runtime.InteropServices" /><o:p></o:p></=
p>
<p class=3D"MsoNormal"> </imports><o:p>=
</o:p></p>
<p class=3D"MsoNormal"> <attributes><o:=
p></o:p></p>
<p class=3D"MsoNormal"> <attri=
bute type=3D"CLSCompliantAttribute" value=3D"true" />=
;<o:p></o:p></p>
<p class=3D"MsoNormal"> <attri=
bute type=3D"ComVisibleAttribute" value=3D"false" />=
<o:p></o:p></p>
<p class=3D"MsoNormal"> <attri=
bute type=3D"AssemblyProductAttribute" value=3D"${product.fu=
llname}" /><o:p></o:p></p>
<p class=3D"MsoNormal"> <attri=
bute type=3D"AssemblyCompanyAttribute" value=3D"${product.ur=
l}" /><o:p></o:p></p>
<p class=3D"MsoNormal"> <attri=
bute type=3D"AssemblyCopyrightAttribute" value=3D"${product.=
copyright}" /><o:p></o:p></p>
<p class=3D"MsoNormal"> <attri=
bute type=3D"AssemblyTrademarkAttribute" value=3D"Apache Lic=
ense, Version 2.0" /><o:p></o:p></p>
<p class=3D"MsoNormal"> <attri=
bute type=3D"AssemblyCultureAttribute" value=3D"" />=
<o:p></o:p></p>
<p class=3D"MsoNormal"> <attri=
bute type=3D"AssemblyVersionAttribute" value=3D"${project.ve=
rsion}" /><o:p></o:p></p>
<p class=3D"MsoNormal"> <attri=
bute type=3D"AssemblyConfigurationAttribute" value=3D"${proj=
ect.framework}; ${project.version}; ${project.buildtype}" /><o:p></=
o:p></p>
<p class=3D"MsoNormal"> <attri=
bute type=3D"AllowPartiallyTrustedCallers" value=3D"" /=
><o:p></o:p></p>
<p class=3D"MsoNormal"> </attributes><o=
:p></o:p></p>
<p class=3D"MsoNormal"> </asminfo><o:p></o:p></p>
<p class=3D"MsoNormal"> </target><o:p></o:p></p>
</div>
</body>
</html>
--_000_10A08DE450078E46971CF2353254623E9CEBF3BY2PRD0510MB378na_--
--===============1510509663483212779==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
--===============1510509663483212779==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
--===============1510509663483212779==--