\

The specified solution configuration "Last | Any CPU" is invalid

I get this error with my MSBuild script running in Jenkins

C:\<path>\<solutionname>.sln.metaproj : error MSB4126: The specified solution
configuration "Latest|Any CPU" is invalid. Please specify a valid solution 
configuration using the Configuration and Platform properties (e.g. MSBuild.exe
Solution.sln
/p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank
to use the default solution configuration.

In my Jenkins configuration, under Constructive Command Line Arguments, I have

/t:Deploy /P:Configuration=Latest

I used this in other projects without any problems before, and I have almost the same build file, but I have never seen this problem happen before. I suspect that since the only thing that is different is the solution file, which may be something else that needs to be changed.

+5
source share
1 answer

"" ? Visual Studio 2 . "Debug" "Release", , Configuration Manager Visual Studio.

"Configuration Manager", . , ( , x86 ..) .

Visual Studio Configuration Manager UI

"" , .

+10

All Articles