all groups > visual studio .net ide > february 2005 >
You're in the

visual studio .net ide

group:

Build object only?


Build object only? eat_spam NO[at]SPAM nlsa.com
2/28/2005 11:33:08 AM
visual studio .net ide:
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?
Re: Build object only? Scott M.
2/28/2005 7:53:09 PM
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.


[quoted text, click to view]

AddThis Social Bookmark Button