{"id":483,"date":"2003-08-27T21:22:59","date_gmt":"2003-08-28T01:22:59","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=483"},"modified":"2003-08-27T21:22:59","modified_gmt":"2003-08-28T01:22:59","slug":"nant","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2003\/08\/27\/nant\/","title":{"rendered":"NAnt"},"content":{"rendered":"<p>I mentioned a couple days ago that my current project is based on a C# and ASP.NET.  I don&#8217;t have access to Visual Studio (should I try to get it? is it worth it?) so I&#8217;ve been using the <a href=\"http:\/\/www.improve-technologies.com\/alpha\/esharp\/\">Improv C# plugin<\/a> with Eclipse.  The combination works alright, but there are a couple things that need improvement.  First, when compiling an assembly in C#, you have to specify each module that it references per class, there isn&#8217;t a way to to say that MyProject.dll should be included in the classpath for the entire C# project.  Second, there&#8217;s no way to say that you want all the compiled assemblies to be placed in ..\/classes\/ instead of ..\/build (ie: you can&#8217;t specify an output folder).  But that&#8217;s where <a href=\"http:\/\/nant.sourceforge.net\/\">NAnt<\/a> comes to the rescue.  I downloaded NAnt today and was able to get a build script running within a couple minutes that accomplishes the two things I needed above.  <\/p>\n<p>I do have a question for those of you who have done .NET programming before.  In Java, you compile .java files to .class files.  Using C#, you compile a .cs file to a .dll (or .exe, etc..) which is called an assembly.   Then in Java you&#8217;d usually package up your class files into a jar file.  After using NAnt today, I see that you can compile a bunch of .cs files into a single dll, also called an assembly, which you can then use just like a jar file. Do I have that right?  Are there different ways of doing this?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I mentioned a couple days ago that my current project is based on a C# and ASP.NET. I don&#8217;t have access to Visual Studio (should I try to get it? is it worth it?) so I&#8217;ve been using the Improv C# plugin with Eclipse. The combination works alright, but there are a couple things that &hellip; <a href=\"https:\/\/cephas.net\/blog\/2003\/08\/27\/nant\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">NAnt<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/483"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=483"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/483\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}