tag:help.appveyor.com,2012-11-13:/discussions/problems/606-builds-broken-platform-environment-no-longer-existsAppVeyor: Discussion 2018-10-19T08:16:39Ztag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T04:08:00Z2014-07-30T04:08:01ZBuilds broken: "Platform" environment no longer exists<div><p>I am experiencing the same problem. My appveyor.yml looks
something like:</p>
<pre>
<code>platform:
- AnyCPU
configuration:
- Release</code>
</pre>
<p>When I attempt to build <a href=
"https://ci.appveyor.com/project/Zoltu/zoltu-wrapper">https://ci.appveyor.com/project/Zoltu/zoltu-wrapper</a>
(only change was to readme text) I receive <code>error MSB4126: The
specified solution configuration "Release|AnyCPU" is
invalid.</code> It would appear that the configuration
<em><em>and</em></em> platform are both being supplied to MSBuild
as the configuration, concatenated with a <code>|</code>.</p>
<p>Again looking at the build output, it appears that the
platform/configuration isn't supplied via command line, so I am not
sure how appveyor is providing these variables so I can't really
debug further.</p>
<p><code>"C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe"
"Zoltu.Wrapper.sln" /logger:"C:\Program
Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"</code></p></div>micahtag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T05:14:47Z2014-07-30T05:14:47ZBuilds broken: "Platform" environment no longer exists<div><p>Will fix that shortly, sorry for that regression.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T05:51:31Z2014-07-30T05:51:31ZBuilds broken: "Platform" environment no longer exists<div><p>@micah, AppVeyor supplies those values through environment
variables. You can override any variable within MSBuild process
through environment variables.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T05:54:41Z2014-07-30T05:54:41ZBuilds broken: "Platform" environment no longer exists<div><p>...and there is no bug in relation to MSBuild. it's just
<code>AnyCPU</code> is the platform that doesn't exist in your
solution. Correct one is <code>Any CPU</code> (with space):</p>
<pre>
<code>platform:
- Any CPU
configuration:
- Release</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T12:33:16Z2014-07-30T12:33:16ZBuilds broken: "Platform" environment no longer exists<div><p>It's back - original behavior of <code>platform</code> and
<code>configuration</code> parameters for non-MSBuild
scenarios.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T14:25:34Z2014-07-30T14:25:39ZBuilds broken: "Platform" environment no longer exists<div><p>I have a CMake project that I am building with a configuration
similar to this:</p>
<pre>
<code>platform:
- Win32
- x64
before_build:
- cmd: if "%platform%"=="Win32" cmake -G"Visual Studio 12" ..
- cmd: if "%platform%"=="x64" cmake -G"Visual Studio 12 Win64" ..</code>
</pre>
<p>It was working before, but now (last build 22 minutes ago) none
of the above cmake command is executed, and therefore the build
fails after a few seconds since the solution file is not
created.</p></div>Daniele E. Domenichellitag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T14:28:44Z2014-07-30T14:28:44ZBuilds broken: "Platform" environment no longer exists<div><p>Will fix that shortly.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T15:33:52Z2014-07-30T15:33:52ZBuilds broken: "Platform" environment no longer exists<div><p>Should be fine now.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T16:31:34Z2014-07-30T16:31:37ZBuilds broken: "Platform" environment no longer exists<div><p>Thanks!</p>
<p>Unfortunately now it looks like that the
<code>before_build</code> step is no longer performed</p></div>Daniele E. Domenichellitag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T16:45:59Z2014-07-30T16:45:59ZBuilds broken: "Platform" environment no longer exists<div><p>Seems to be working here: <a href=
"https://ci.appveyor.com/project/appvyr/appveyor-bot-0904-0540/build/1.0.107">
https://ci.appveyor.com/project/appvyr/appveyor-bot-0904-0540/build...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T16:57:04Z2014-07-30T16:57:05ZBuilds broken: "Platform" environment no longer exists<div><p>Failed for both Win32 and x64 builds:</p>
<p><a href=
"https://ci.appveyor.com/project/drdanz/ycm/build/job/brw96b623wij26ua">
https://ci.appveyor.com/project/drdanz/ycm/build/job/brw96b623wij26ua</a><br>
<a href=
"https://ci.appveyor.com/project/drdanz/ycm/build/job/sc26eonasufh0xmv">
https://ci.appveyor.com/project/drdanz/ycm/build/job/sc26eonasufh0xmv</a></p>
<p>The <code>before_build</code> step seems to be skipped, this was
the output of the previous build<br>
<a href=
"https://ci.appveyor.com/project/drdanz/ycm/build/0.0.0.169/job/wgb7exsjo63ulu7s">
https://ci.appveyor.com/project/drdanz/ycm/build/0.0.0.169/job/wgb7...</a><br>
showing in cyan the before_build commands.</p>
<p>the cmake to go straight to the build step...</p></div>Daniele E. Domenichellitag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T16:59:33Z2014-07-30T16:59:34ZBuilds broken: "Platform" environment no longer exists<div><p>Appveyor script: <a href=
"https://github.com/robotology/ycm/blob/master/appveyor.yml">https://github.com/robotology/ycm/blob/master/appveyor.yml</a></p></div>Daniele E. Domenichellitag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T17:38:09Z2014-07-30T17:38:09ZBuilds broken: "Platform" environment no longer exists<div><p>OK, I see. Just deployed a fix.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T17:57:54Z2014-07-30T17:57:57ZBuilds broken: "Platform" environment no longer exists<div><p>The build started now.<br>
Thanks a lot!</p></div>Daniele E. Domenichellitag:help.appveyor.com,2012-11-13:Comment/339556282014-07-30T18:02:41Z2014-07-30T18:02:41ZBuilds broken: "Platform" environment no longer exists<div><p>Thanks Feodor!</p></div>Brian Reavis