I have installed VS C# 2008 .NET 2.0 and 3.5 installed. Build succeeds if I
build from VS. But If I try to build from b.bat, I get a msbuild.exe not
able to recognise ccnet.sln file. Obv when I loaded the sln file in VS 2008
it converted the file from version 9.0 to 10. And msbuild with .NEt 2.0 cant
read a sln file with version 10 and above.

VS builds the project ok, the exe's updated to the current date/time (thats
all I care for at them moment). I get 194 warnings though. Thats another
mail thread.

Siddharth

On Mon, Mar 23, 2009 at 12:24 AM, Craig Sutherland <[email protected]
> wrote:

>
> It looks like the problem is with MSBuild. Can you run MSBuild from
> the command line and see what happens.
>
> Visual Studio sometimes does some special things to compile projects.
> This means we can't always trust an IDE build process to be correct.
>
>
> Craig
>
> On Mar 20, 12:26 am, WA <[email protected]> wrote:
> > Hi,
> >
> > I have a solution which has several projects which target both the
> > 2.0 .NET Framework as well as 3.5 .NET Framework.
> >
> > The main project is in 3.5 but some of the other projects are built
> > using 2.0.
> >
> > My question is when I use CCnet to build the software and do a publish
> > using ClickOnce, I get a load of errors like the following:
> >
> > DVRDatabase.cs(5,14): error CS0234: The type or namespace name
> > 'Install' does not exist in the namespace 'Acme' (are you missing an
> > assembly reference?)
> > DVRDatabase.cs(6,28): error CS0234: The type or namespace name
> > 'Public' does not exist in the namespace 'Acme.FileInspector' (are you
> > missing an assembly reference?)
> > DVRDatabase.cs(13,31): error CS0246: The type or namespace name
> > 'ILocalConfig' could not be found (are you missing a using directive
> > or an assembly reference?)
> > DVRDatabase.cs(1226,39): error CS0246: The type or namespace name
> > 'IDisplayAppInfo' could not be found (are you missing a using
> > directive or an assembly reference?)
> > DVRHelper.cs(4,14): error CS0234: The type or namespace name 'Install'
> > does not exist in the namespace 'Acme' (are you missing an assembly
> > reference?)
> > DVRHelper.cs(5,28): error CS0234: The type or namespace name 'Public'
> > does not exist in the namespace 'Acme.FileInspector' (are you missing
> > an assembly reference?)
> > DVRDatabase.cs(15,19): error CS0246: The type or namespace name
> > 'IDVRDatabaseServerSupport' could not be found (are you missing a
> > using directive or an assembly reference?)DVRDatabase.cs(21,17): error
> > CS0246: The type or namespace name 'ILog' could not be found (are you
> > missing a using directive or an assembly reference?)
> >
> > I found out that since I'm targeting 3.5 MSBuild these errors are
> > occuring but in the IDE it builds fine.
> >
> > My Config file task section is as follows:
> >
> >         <tasks>
> >             <msbuild>
> >                 <executable>C:\WINDOWS\Microsoft.NET\Framework
> > \v3.5\MSBuild.exe</executable>
> >                 <workingDirectory>C:\Scyron\$\FileInspector
> > \FileInspector</workingDirectory>
> >                 <projectFile>FileInspector.sln</projectFile>
> >                 <buildArgs>/p:Configuration=Release</buildArgs>
> >                 <targets>Rebuild</targets>
> >                 <logger>C:\Program Files\CruiseControl.NET\server
> > \ThoughtWorks.CruiseControl.MSBuild.dll</logger>
> >             </msbuild>
> >           <exec>
> >             <executable>C:\Scyron\$\FileInspector\FileInspector
> > \Publish.bat</executable>
> >           </exec>
> >         </tasks>
> >
> > The Publish.bat file contains the following:
> >
> > C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe /
> > p:Configuration=Release /target:rebuild "C:\Acme\$\FileInspector
> > \FileInspector\Configurator\Configurator.csproj" /
> > property:ApplicationRevision=%CCNetLabel% /
> > property:AssemblyName="Configurator" /property:PublishUrl="http://Acme-
> > ch-2/installers/Configurator/"
> >
> > C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe /
> > p:Configuration=Release /target:publish "C:\Acme\$\FileInspector
> > \FileInspector\Configurator\Configurator.csproj" /
> > property:ApplicationVersion="1.0.0.%CCNetLabel%" /
> > property:AssemblyVersion="1.0.0" /property:AssemblyName="Configurator"
> >
> > XCOPY "C:\Acme\$\FileInspector\FileInspector\Configurator\bin\Release
> > \app.publish" "C:\Publish\Configurator" /Y /I
> >
> > XCOPY "C:\Acme\$\FileInspector\FileInspector\Configurator\bin\Release
> > \app.publish\Application Files" "C:\Publish\Configurator\Application
> > Files" /Y /I /S
> >
> > Any ideas please on how to resolve this problem????
>

Reply via email to