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