I understand that using the exec command and calling msbuild isn't the most graceful solution at the moment to compile VS.NET 2005 solutions files, but hey, it works.
Just like other people mentioned here, I wanted to have the nice outputdir attribute that <solution> provides. I understand you can use the aspnet_compiler.exe compiler but I like using solutions. Less messy. So I ran into this thing for the Web Projects for VS.NET 2005. It's called the "Web Deployment Project" add in: http://msdn.microsoft.com/asp.net/reference/infrastructure/wdp/default.aspx That allows you to create a special project inside you solution (which contains your web project, some libraries, etc..) and in the Web Deployment Project, you can specify the outputdir as well as specifying the single assembly name for the web project. The "Web Deployment Project" is of type .wdproj. It's also XML based on the MSBuild schema. In it you can find: <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugSymbols>false</DebugSymbols> <OutputPath>.\ReleaseFolderForWebSite</OutputPath> <EnableUpdateable>true</EnableUpdateable> <UseMerge>true</UseMerge> <SingleAssemblyName>MyAssemblyNameForWebSite</SingleAssemblyName> </PropertyGroup> So that means you can easly run an xmlpoke on the OutputPath or DebugSymbols or SingleAssemblyName during your NAnt build process based on your NAnt script. Having now set the OutputPath in the Web Deployment Project file after the XMLPoke you would then compile it and and then copy it to whatever server: <exec program="MSBuild"> <arg line="${vs.wdproject} /target:rebuild /p:Configuration=${vs.configuration} /verbosity:normal" /> </exec> I hope that helps someone, and anybody that has any suggestions or a better way of doing things, let me know! Btw, can this so called new <solution> task that will be released in the future for VS.NET 2005 solution be able to compile .wdproj projects....I'm guessing it will?!? Regards, Roy Assaly ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users