I'd like to suggest that all of the relevant tasks have an attribute to set
their default directory. It's not good to have the same file in two places
and in this case I have to place the file outside of my project.

Thanks - dave


-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 25, 2004 12:14 AM
To: David Thielen; [EMAIL PROTECTED]
Subject: Re: [Nant-users] How to set default dir for <vjc>

David,

I know the csc looks for the key file relative to the current directory and 
the output directory. I'm not sure if the MS vjc compiler has the same 
behaviour (as csc), but if it does, then you need to make sure that your key

file is available in either of these locations. In your case if would have 
to be one directory below your output directory, or one directory below your

NAnt build file.

Visual C#.NET actually uses the <project dir>\obj\<configuration> directory 
as working directory, but NAnt does not create/use such a directory, so we 
can't use this as a working directory for our compiler tasks.  If we would 
change this, then our behaviour would match that of VS.NET (at least for 
C#).

Visual Basic.NET actually uses the directory from which VS.NET was launched 
as working directory, so we can't really mimic that behaviour.

As I said earlier, I haven't yet checked what the behaviour of Visual J# 
(and the vjc command line compiler) is.

In the .NET 2.0 command line compilers, MS has added command line switches 
that allow your to specifiy the key file to use to sign your assembly.  This

would make things a lot easier. However, we have not yet exposed these 
options in our compiler tasks.

For now, I'd suggest coping the key file to the directory where vjc expects 
is as part of your build procedure.

Gert

----- Original Message ----- 
From: "David Thielen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 25, 2004 6:17 AM
Subject: [Nant-users] How to set default dir for <vjc>


> Hi;
>
>
>
> In my AssemblyInfo.jsl I have @assembly AssemblyKeyFile("..\\public.snk")
>
>
>
> The relative path to public.snk works fine when I build in Visual Studio.
> However, when I build using nant it can't find the file. I need to be able
> to build with both.
>
>
>
> Is there a way I can set the default directory when building?
>
>
>
> Thanks - dave
>
> 




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to