Target ResolveReferences not found

I am trying to publish an ASP.Net website through NAnt / MSBuild calls. MSBuild is invoked 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 to build under cruise control, I get the following error:

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

+3
source share
2 answers

The MSBuild Deployment task requires a project (not a solution) to complete .........

+4
source

you can just delete the command

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

This will stop him from calling. The .SLN file already has all the links, it builds the order information needed to create the file with the correct dependencies.

0

Source: https://habr.com/ru/post/1712342/


All Articles