tag:help.appveyor.com,2012-11-13:/discussions/problems/23108-new-visual-studio-2017-image-breaks-buildAppVeyor: Discussion 2020-09-13T14:24:25Ztag:help.appveyor.com,2012-11-13:Comment/471887492019-04-18T19:24:10Z2019-04-18T19:24:10ZNew Visual Studio 2017 image breaks build<div><p>Please check <a href="https://help.appveyor.com/discussions/problems/12928-build-failing-without-any-change">this discussion</a>. In general it is right thing to pin to specific .NET Core SDK.</p>
<p>Please let us know if this helps to use the current <code>Visual Studio 2017</code> image.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/471887492019-04-18T20:07:49Z2020-09-13T14:24:25ZNew Visual Studio 2017 image breaks build<div><p>I checked that discussion. That isn't what i'm talking about. We don't need to pin our project to a specific .NET Core SDK as it works on different versions just fine. I was trying to point out that the update notes seem to be indicating that <code>.NET Core SDK 2.2.203</code> was installed, but that is only supposed to be used in Visual Studio 2019. The equivalent SDK for Visual Studio 2017 is 2.2.106 (see <a href="https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-2.2.106-windows-x64-installer">https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-2.2.106-...</a>).</p>
<p>Since our project builds fine on our machines using the newest version of the SDK meant for Visual Studio 2017 (2.2.106) it leads me to believe that 2.2.203 was incorrectly installed as part of your latest update, leading to our project failing to build.</p></div>levitiessentag:help.appveyor.com,2012-11-13:Comment/471887492019-04-18T21:32:37Z2019-04-18T21:32:37ZNew Visual Studio 2017 image breaks build<div><p>I see. Sorry, I should have to look at your initial message closer.</p>
<p>Indeed we install software with a scripts, therefoer we missed that message you can see in the browser.</p>
<p>Is there any way you can provide some simplified repro in the public repository? Or at least provide us with a steps to reproduce it?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/471887492019-04-18T21:52:25Z2019-04-18T21:52:25ZNew Visual Studio 2017 image breaks build<div><p>What puzzles me is that our own production and test .NET Core projects which use SDK <code>2.2.203</code> are being built fine. Also we have no other complains. So this maybe some special case we need to investigate. So repro would be great.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/471887492019-04-18T21:54:36Z2019-04-18T21:54:38ZNew Visual Studio 2017 image breaks build<div><p>If you need a repro, this open source repository is affected by the same issue</p>
<p><a href="https://ci.appveyor.com/project/Kralizek/nybus/builds/23954388">https://ci.appveyor.com/project/Kralizek/nybus/builds/23954388</a></p>
<p>The symptom is that it fails after executing a couple of dotnet tool install</p></div>Renatotag:help.appveyor.com,2012-11-13:Comment/471887492019-04-19T02:08:50Z2019-04-19T02:08:50ZNew Visual Studio 2017 image breaks build<div><p><strong>@Renato</strong>: i don't think it is the same issue at all. I forked your repo and was able to make it work by changing <code>Cake.Tool</code> version to the latest <code>0.33.0</code></p>
<p><strong>@Levi</strong>: we still need a repro</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/471887492019-04-19T03:27:17Z2020-09-13T14:24:25ZNew Visual Studio 2017 image breaks build<div><p>I will see if I can get something together after the weekend.</p></div>levitiessentag:help.appveyor.com,2012-11-13:Comment/471887492019-04-19T18:47:45Z2019-04-19T18:47:47ZNew Visual Studio 2017 image breaks build<div><p>Thanks @ilya. I wonder what happened because my CI pipeline has been working without any issue until few days ago.</p></div>Renatotag:help.appveyor.com,2012-11-13:Comment/471887492019-04-19T19:28:23Z2019-04-19T19:28:23ZNew Visual Studio 2017 image breaks build<div><p><strong>@Renato</strong> I did not look deep. It is just my first instinct to update the the failing components to the last version when other components has been updated recently. If you want to investigate, you can set <code>Cake.Tool</code> version back to the old one and increase it's verbosity to the highest level.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/471887492019-04-24T13:33:24Z2020-09-13T14:24:25ZNew Visual Studio 2017 image breaks build<div><p>In my efforts to make a simple reproducible case I realized that I hadn't been clear. What started failing is some tests that run as part of our build.</p>
<p>Before the weekend I had updated my local SDK from version 2.2.103 to 2.2.106 when our Appveyor build (tests) started to break. I re-ran the build and the tests and everything passed. I then looked at what had changed and saw what I believed (and still believe) to be the wrong version (2.2.203) of the SDK for vs 2017.</p>
<p>Yesterday while trying to make a simple repro, using version 2.2.106 I started to have the same errors locally when running the tests after a build. This would seem to indicate that some behaviour changed between version 2.2.103 which I had previously and the new 2.2.106. Since the issue is now reproducible locally, this doesn't seem to be an issue with the Visual Studio image that Appveyor has.</p></div>levitiessentag:help.appveyor.com,2012-11-13:Comment/471887492019-04-25T22:59:26Z2019-04-25T22:59:26ZNew Visual Studio 2017 image breaks build<div><p>Thanks for the update. I filed <a href="https://github.com/appveyor/ci/issues/2925">https://github.com/appveyor/ci/issues/2925</a> to investigate before next image update. However my feeling that this is mostly related to VS and unrelated to msbuild which is version 15 for both VS2017 and VS2019.</p>
<p>I think we still have to install the latest SDK + ensure the latest for specific VS version (in this case <code>2.2.106</code>) is installed too.</p></div>Ilya Finkelshteyn