I'm slightly confused (it doesn't take much!).  Which tasks have been
modified?  I raised the same problem last week (see "Problem with vbc task"
post) and Gert kindly provided the response that VS tries the path to the
Key file first from the current directory, and if it can't find it there,
then from the output directory.  As a result of this, I then changed my
AssemblyInfo.vb file to be:

        <Assembly: AssemblyKeyFile("Component.snk")>

and this seems to work fine both within Visual Studio and from my NAnt
script  (I'm using 0.84).  Will this now break as a result of changes made
when I upgrade to 0.85?

Thanks,

Bill



 -----Original Message-----
From:   Gert Driesen [mailto:[EMAIL PROTECTED] 
Sent:   28 March 2004 09:08
To:     Ian MacLean; Eric Fetzer
Cc:     Florian Benischke; Nant Users
Subject:        Re: AW: [Nant-users] Solution Task and Strong Names

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




______________________________________________________________

CONFIDENTIALITY NOTICE

This communication and the information it contains is intended for the person or 
organisation to whom it is addressed.  Its contents are confidential and may be 
protected in law.  Unauthorised use, copying or disclosure of any of it may be 
unlawful.  If you are not the intended recipient, please contact us immediately.

The contents of any attachments in this e-mail may contain software viruses, which 
could damage your own computer system.  While Marlborough Stirling has taken every 
reasonable precaution to minimise this risk, we cannot accept liability for any 
damage, which you sustain as a result of software viruses.  You should carry out your 
own virus checking procedure before opening any attachment.

Marlborough Stirling plc, Registered in England and Wales 
Registered No. 3008820,
Allen Jones House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH
Tel: 01242 547000     Fax: 01242 547100
http://www.marlborough-stirling.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_id70&alloc_id638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to