The specified solution configuration “Latest|Any CPU” is invalid

前端 未结 1 552
甜味超标
甜味超标 2021-02-15 16:35

I am getting this error with my MSBuild script running in Jenkins

C:\\\\.sln.metaproj : error MSB4126: The specified solution
con         


        
1条回答
  •  青春惊慌失措
    2021-02-15 17:11

    Does the "Latest" configuration exist? By Default Visual Studio creates 2 configurations when you create a new solution. These are "Debug" and "Release" if you want to create a custom configuration you need to use the Configuration Manager in Visual Studio.

    Right Click on the Solution in Solution Explorer and select "Configuration Manager" you will then be presented with the following UI. This lists all of the projects in the solution, what type they are (Any CPU, x86 etc) and whether they should be build as part of that configuration.

    Visual Studio Configuration Manager UI

    You can now create a configuration called "Latest" and decide what needs to be built for that configuration.

    0 讨论(0)
提交回复
热议问题