Technical support This forum is closed.
Version 1.x > Technical support > Building Version 1.9 from a command line View modes: 
User avatar
Member
Member
davidmohara - 5/17/2006 3:09:12 PM
   
Building Version 1.9 from a command line
I have a NAnt script that builds our code by calling "c:\windows\microsoft.net\framework\v2.0.50727\msbuild.exe CMSSolution_cs.sln" so that we can have automated builds. However, this script stopped working when we put the latest codebase (1.9) in to source control. After much digging around and trial-and-error, I finally discovered what the issue was and wanted to record it here in case anyone else runs into the same issue.

The projects that are supposed to produce DLLs have the following line in their project file:

<em><StartupObject>Kentico.CMS.MetadataEngine.%28None%29</StartupObject></em>

This line needs to be the following instead:

<em><StartupObject></StartupObject></em>

A small but VERY important distinction. You can accomplish this by either manually editing each project file, or by using the IDE (via Project Properties | Application) to switch the project output type to something other than "Class Library" and then switching it back to "Class Library". Save the project file and you're all set.


Thanks,
David O'Hara

P.S. Petr, I suspect this may be an artifact of the conversion process that you all have to do in order to produce all the versions of the code. Let me know if there's anything that I can do to help out in testing this further.

User avatar
Member
Member
Martin_Kentico - 5/19/2006 4:00:41 PM
   
Re: Building Version 1.9 from a command line
Hello David,

Thank you for the information, I edited all the project files where I found this inconvenience, so it should be ok in the next release.

It seems the issue got there from the VS2003 version where the namespace.(none) strings were, how it got in there ... who knows

Thanks again for the resolution

Best Regards