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 / Visual Studio.NET / IDE / March 2005

Tip: Looking for answers? Try searching our database.

Build object only?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eat_spam@nlsa.com - 28 Feb 2005 19:33 GMT
I'm new to VS 2003 so please bear with me... is there any way to build
(or compile, or just error-check) a C# file without it being part of a
project?  In other words, to just build the Object defined in a .cs
file that is not in a project?
Scott M. - 01 Mar 2005 00:50 GMT
No.  Classes must be declared inside of a namespace and namespaces must be
part of an assembly.  In VS.NET the assembly is represented by the project.

Why not just create a Class Library project and include only your class that
you wish to build?  That way, when you build this project, it will consist
of just your one class.

> I'm new to VS 2003 so please bear with me... is there any way to build
> (or compile, or just error-check) a C# file without it being part of a
> project?  In other words, to just build the Object defined in a .cs
> file that is not in a project?

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.