Hi,

if I see this right you added a project reference (which is good normally).
So you are referencing  '..\LimeUtilities\LimeUtilities.csproj'. You shoud
add  '..\LimeUtilities\LimeUtilities.csproj'  to the artifacts to archive,
too.

I don't know what you want to do, but maybe you could use a different
approach.

We have a big C#-solution with nearly 200 Dlls and about 40 unit test
projects among them. I have one job to update and compile the complete
solution, harvest all DDLs + pdb files via
http://wiki.hudson-ci.org/display/HUDSON/Clone+Workspace+SCM+Plugin and
start about 40 unit test jobs afterwards to be able to run those jobs in
parallel and independently from each other.

HTH
Dirk

2012/9/21 Kenneth <kenneth.f.niel...@gmail.com>

> I get this error message when jenkins build c# projects that depend on c#
> dll, that I've made in another job.
> In visual studio I've made the project refer the other project, to make it
> behave in release and debug builds.
> but it causes jenkins to fail...
>
> ...
> Target ResolveProjectReferences:
> C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets :
> warning : The referenced project '..\LimeUtilities\LimeUtilities.csproj'
> does not exist.
> Done building target "ResolveProjectReferences" in project
> "LimeUtilitiesUnitTests.csproj".
> Target CoreCompile:
> C:\Windows\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig
> /nowarn:1701,1702 /reference:"obj\Any CPU\Debug\nunit.framework.dll"
> /reference:"C:\Program Files\Reference
> Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"C:\Program
> Files\Reference
> Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll"
> /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll
> /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll
> /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll
> /reference:"C:\Program Files\Reference
> Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /debug+
> /out:"obj\Any CPU ./LimeUtilitiesUnitTests.csproj && exit
> %0%\Debug\LimeUtilitiesUnitTests.dll" /target:library
> LimeCommandChecksumTests.cs LimeCommandTests.cs Properties\AssemblyInfo.cs
> ULimeCommunicationTests.cs
> LimeCommandChecksumTests.cs(4,7): error CS0246: The type or namespace name
> 'LimeUtilities' could not be found (are you missing a using directive or an
> assembly reference?)
> ...
>
> should I do a matrix build, to get a release and debug version of the
> xxxxUtilities.dll that I use in my unit test job?
> I use the copy from artifact plugin, with these params:
>
>
> Project name:LimeUtilities
> Which build:Latest succeful build
> Artifacts to copy: blank
> Target directory: .\
>
> In the LimeUtilities I have a post build task that Arkives the artifacts
> Files to arhive:  obj/Any CPU/Debug/LimeUtilities.dll,obj/Any
> CPU/Debug/LimeUtilities.pdb ///// these are only the debug ones.. maybee I
> should archive the release to.
> Exclude: blank
>  I currently only build debug in jenkins.
>
> How do I fix that?
>
>
>

Reply via email to