Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2004

Tip: Looking for answers? Try searching our database.

how compile sources VB.NET & C# with command line?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alfonso Melchionna - 19 Nov 2004 14:06 GMT
How can I compile in .NET Framework modules written in various languages
(VB.NET, C# and others) having, finally, one result (e.g. an EXE), using
common namespaces?
Robby - 19 Nov 2004 22:47 GMT
Compile the VB files with the Visual Basic Complier (vbc.exe) using the
/target:module switch.  Then do the same with the C# Compiler (sorry, I
don't know the name) and the CS files.  Then use the Assembly Linker
(al.exe) passing the two modules from the previous step and use the /out and
/target:exe switches.

--Robby

> How can I compile in .NET Framework modules written in various languages
> (VB.NET, C# and others) having, finally, one result (e.g. an EXE), using
> common namespaces?
Alfonso Melchionna - 22 Nov 2004 10:02 GMT
Ok. I know this. The problem begin put into the modules definition common
namespace.

i.e.
-Vbmodule.vb
Namespace MyNamespace
   public Class ClassVB
   .....
   ....
End Namespace

-Csmodule.cs
Namespace MyNamespace
{

   public static main ()
   .....
  // Use class of of Class ClassVB
           ....
}

How  import the MyNamespace the modules. I like one .exe

Alfonso

> Compile the VB files with the Visual Basic Complier (vbc.exe) using the
> /target:module switch.  Then do the same with the C# Compiler (sorry, I
[quoted text clipped - 7 lines]
> > (VB.NET, C# and others) having, finally, one result (e.g. an EXE), using
> > common namespaces?
John Azzolina - 03 Dec 2004 00:53 GMT
Have you removed the default namespace from the VB Project?
Right click on the project and choose project properties.
Clear out the textbox for "Root Namespace" (just leave it blank) and
explicitly use the same namesapce throughout your apps.

-John

> Ok. I know this. The problem begin put into the modules definition common
> namespace.
[quoted text clipped - 33 lines]
> > > (VB.NET, C# and others) having, finally, one result (e.g. an EXE), using
> > > common namespaces?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.