PC Review


Reply
Thread Tools Rate Thread

command line compiler question

 
 
Brian Hman
Guest
Posts: n/a
 
      8th May 2009
I'm am building a C# assembly using csc.exe, and I'm getting the following
error:

XmlResponder.cs(5,23): error CS0234: The type or namespace name 'VB' does not
exist in the namespace 'Regulatory.Data' (are you missing an assembly
reference?)

Now this appears to indicate that I need to add a reference to the command
line arguments. The confusing part here is that I have two assemblies with
almost the same name: Regulatory.Data.dll and Regulatory.Data.VB.dll, and I
call the both with the /reference argument to the compiler like this:

/reference:d:\builds\output\Regulatory.Data.dll
/reference:d:\builds\output\Regulatory.Data.VB.dll

Since I reference both here, why do I get the error? Do I need to add an
argument to tell the compiler about the similar but seperate names? Does the
have to do with the order?

Any direction is appreciated!

Thanks,
Brian Hman

 
Reply With Quote
 
 
 
 
Pavel Minaev
Guest
Posts: n/a
 
      8th May 2009
On May 8, 2:00*pm, Brian Hman <brianh...@newsgroup.nospam> wrote:
> I'm am building a C# assembly using csc.exe, and I'm getting the following
> error:
>
> XmlResponder.cs(5,23): error CS0234: The type or namespace name 'VB' doesnot
> * * * * exist in the namespace 'Regulatory.Data' (are you missingan assembly
> * * * * reference?)


How does the line of code look?

> Now this appears to indicate that I need to add a reference to the command
> line arguments. The confusing part here is that I have two assemblies with
> almost the same name: Regulatory.Data.dll and Regulatory.Data.VB.dll, andI
> call the both with the /reference argument to the compiler like this:
>
> /reference:d:\builds\output\Regulatory.Data.dll
> /reference:d:\builds\output\Regulatory.Data.VB.dll
>
> Since I reference both here, why do I get the error? *Do I need to add an
> argument to tell the compiler about the similar but seperate names? Does the
> have to do with the order? *


For starters, you should remember that namespaces and assemby names
are completely orthogonal. There's no requirement that they match
(though it's a well-established convention).

When you write "Regulatory.Data.VB.<something>" in your code, the
prefix is namespace name, not assembly name. It may well be that
assembly Regulatory.Data.VB does not introduce a new namespace, but
instead contains types within some other namespace (maybe even the
same "Regulatory.Data" namespace as the other assembly).
 
Reply With Quote
 
Jie Wang [MSFT]
Guest
Posts: n/a
 
      11th May 2009
Hi Brian,

Pavel is right about the relationship between the namespaces and
assemblies. So I think you need to read the document (or talk to the
author) of the assemblies you're referencing, to find out in which assembly
the type you're using stays.

If you have any further questions regarding this issue, please feel free to
post here.

Regards,

Jie Wang ((E-Mail Removed), remove 'online.')

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(E-Mail Removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
Jie Wang [MSFT]
Guest
Posts: n/a
 
      18th May 2009
Hi Brian,

Is the problem solved?

Do you have any further question on this issue?

If you need assistance, please don't hesitate to let me know. I'll be happy
to help.

Thanks,

Jie Wang ((E-Mail Removed), remove 'online.')

Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(E-Mail Removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
about command line compiler (vbc.exe)... mr_unreliable Microsoft VB .NET 0 28th Aug 2006 02:47 PM
Command Line Compiler =?Utf-8?B?Q2hhcmxpZSBK?= Microsoft ASP .NET 1 3rd Apr 2006 04:25 PM
How do you see the compiler command line in VB.NET? billben74@hotmail.com Microsoft VB .NET 4 12th Jul 2005 04:02 PM
run compiler from command-line ? Chris Microsoft VC .NET 1 10th Aug 2004 04:06 PM
vbc - command line compiler question =?Utf-8?B?TWFya3Vz?= Microsoft Dot NET 0 20th Apr 2004 12:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:53 PM.