I looked into this, and apparently VS.NET runs csc with <project
directory>\obj\<configuration> as working directory or output directory (the
compiler look in both the current directory and the output directory for
locating the key file).  I think it might actually use <project
directory>\obj\<configuration> as output directory, and then copy the
assemblies to the actual output directory, but I'm not sure about this ...

Now, how do you propose to deal with this ?

Should we

1. create the <project directory>\obj\<configuration> directory (if it
doesn't exist), and use it as working directory ?
2. use <project directory>\obj\<configuration> as output directory, and then
copy the compiled assembly (and its debug symbols) to the actual output
directory ?

Gert

----- Original Message ----- 
From: "Ian MacLean" <[EMAIL PROTECTED]>
To: "Eric Fetzer" <[EMAIL PROTECTED]>
Cc: "Florian Benischke" <[EMAIL PROTECTED]>; "Nant Users"
<[EMAIL PROTECTED]>
Sent: Saturday, March 27, 2004 4:24 AM
Subject: Re: AW: [Nant-users] Solution Task and Strong Names


> Hmm,
> It looks like csc.exe is run with the project folder as the working
> directory when to be consistent with vs.net it should be the
> output/object folder.
> ie line 423 of Project.cs
>
> psi.WorkingDirectory = _projectDirectory;
>
> should be setting WorkingDirectory to the directory of the output path.
> Can someone more familiar with the solution task that I am comment on this
?
>
> I think its kinda weird that vs.net references it from the output folder
> but thats neither here nor there.
>
> Ian
>
> btw Eric - I just checked the subscriber list for nant-users and your
> email isn't there. I can add you now if you'd like.
>
>
>
> Eric Fetzer wrote:
>
> >Florian,
> >
> >If I did that, it wouldn't compile for the developers
> >here (who use Visual Studio), only the daily build.
> >The key file exists in the same place as the csproj
> >file.  Visual Studio is referencing the snk file from
> >the Object folder.  Any other suggestions out there?
> >
> >Thanks,
> >Eric
> >
> >
> >--- Florian Benischke <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hi Eric,
> >>
> >>looks like nant just can't find your key file. I'm
> >>using assembly signing
> >>too and I'm not having any problems.
> >>
> >>You can try setting the key file reference to a
> >>"strong" path, like
> >>D:\mykeyfile.snk (well you also have to copy the
> >>file there ;) ), to see
> >>that key file signing is possible.
> >>
> >>
> >>Best regards / Mit freundlichen Gru?en
> >>
> >>Florian Benischke
> >>Softwareentwickler
> >>Technical Applications
> >>______________________________________
> >>Albat + Wirsam Software-Vertriebs AG
> >>
> >>
> >>-----Ursprungliche Nachricht-----
> >>Von: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED]
> >>Auftrag von Eric Fetzer
> >>Gesendet: Freitag, 26. Marz 2004 00:21
> >>An: Nant Users
> >>Betreff: [Nant-users] Solution Task and Strong Names
> >>
> >>I am getting the following error trying to build a
> >>new
> >>project with the solution task:
> >>
> >>[compile] error CS1548: Cryptographic failure while
> >>signing assembly 'd:\myproject\myDll.dll' -- 'Error
> >>reading key file '..\..\myproject.myDll.snk' -- The
> >>system cannot find the file specified. '
> >>
> >>Does solution not support strong names?
> >>
> >>Thanks,
> >>Eric
> >>
> >>__________________________________
> >>Do you Yahoo!?
> >>Yahoo! Finance Tax Center - File online. File on
> >>time.
> >>http://taxes.yahoo.com/filing.html
> >>
> >>
> >>
> >>
> >>
> >-------------------------------------------------------
> >
> >
> >>This SF.Net email is sponsored by: IBM Linux
> >>Tutorials
> >>Free Linux tutorial presented by Daniel Robbins,
> >>President and CEO of
> >>GenToo technologies. Learn everything from
> >>fundamentals to system
> >>
> >>
> >>
> >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> >
> >
> >>_______________________________________________
> >>Nant-users mailing list
> >>[EMAIL PROTECTED]
> >>
> >>
> >>
> >https://lists.sourceforge.net/lists/listinfo/nant-users
> >
> >
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Yahoo! Finance Tax Center - File online. File on time.
> >http://taxes.yahoo.com/filing.html
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by: IBM Linux Tutorials
> >Free Linux tutorial presented by Daniel Robbins, President and CEO of
> >GenToo technologies. Learn everything from fundamentals to system
> >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> >_______________________________________________
> >Nant-users mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/nant-users
> >
> >
>
>
> -- 
> Ian MacLean, Developer,
> ActiveState, a division of Sophos
> http://www.ActiveState.com
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to