Big apologies for point 1 - It was me being stupid.  I had closed the vbc
tag in the wrong place with a bit of cut and paste so my default namespace
was not getting set therefore the imported namespace didn't exist. <DOH!>

Issue 2 is still a problem though if anyone has any thoughts.

Cheers,

Bill



 -----Original Message-----
From:   Bill Martin  
Sent:   23 March 2004 11:47
To:     [EMAIL PROTECTED]
Subject:        [Nant-users] Problem with vbc task

Hi Folks,

I'm having a couple of problems with the vbc task and wonder if anyone can
shed any light on them:

1)      In one of the projects, the author has defines a class with static
methods on it. This is then imported into a second class so the methods may
be used without reference to the class.  This compiles fine within Visual
Studio, but when I execute the vbc task on the source, I get an error along
the lines of "Namespace or Type 'C' cannot be found for Imports A.B.C  I an
compiling *.vb in the task.  I have tried listing the files separately with
'C' at the top of the list ,but still get the error.  I would assume that
vbc ought to support this syntax as it is legitimate code.  Has anyone seen
similar issues?  Is there a work round or am I doing something wrong?
2)      Some of the projects I am building are signed.  The .snk file is in
the same folder as the source, but in the AssemblyInfo.vb file, the entry
for the AssemblyKeyFile attribute is "..\..\MyKeyFile.snk".  This causes vbc
to fail as it reports it can't find the file, however the project compiles
fine within Visual Studio.  Now the strange bit - If I change the
AssemblyInfo file to have a value of "MyKeyFile.snk" then Nant works fine,
but some projects don't build within VS and some do!  I definitely only have
one copy of each key file and it's definitely in the same folder as the rest
of the solution files in both cases.  I'm getting really confused now.

Any help or pointers gratefully appreciated.

Cheers,

Bill




______________________________________________________________

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=ick
_______________________________________________
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_id70&alloc_id638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to