Nasser
Nasser

Reputation: 663

Target ResolveReferences is not found

I am trying to publish an ASP.Net website through NAnt/MSBuild calls. MSBuild is called using the following arguments:

<arg value="SubsManager.sln" />
<arg value="/t:ResolveReferences" />
<arg value="/t:_CopyWebApplication" />
<arg value="/p:Configuration=Release" />
<arg value="/p:OutDir=..\builda\Release\Web\bin\" />
<arg value="/p:WebProjectOutputDir=..\Publish\" />
<arg value="/logger:C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll" />
<arg value="/verbosity:detailed" /> 

When I try the build under cruise control I get the following error:

error MSB4057: The target "ResolveReferences" does not exist in the project.

Upvotes: 3

Views: 3503

Answers (2)

Kieran
Kieran

Reputation: 18059

you could just remove the command to

<arg value="/t:ResolveReferences" /> <arg value="/t:_CopyWebApplication" />

This would stop it from being called. The .SLN file already has all the references, build order information it needs to build the file with correct dependencies.

Upvotes: 0

Nasser
Nasser

Reputation: 663

MSBuild Deployment task needs a project (and not a solution) to run.........

Upvotes: 4

Related Questions