tag:help.appveyor.com,2012-11-13:/discussions/problems/18083-net-core-sdk-21403-disappeared-from-ubuntu-imageAppVeyor: Discussion 2018-11-19T08:34:26Ztag:help.appveyor.com,2012-11-13:Comment/465083372018-11-16T08:43:51Z2018-11-16T08:43:53Z.NET Core SDK 2.1.403 disappeared from Ubuntu image<div><p>Hi,</p>
<p>The builds for all my .NET Core projects are failing today because they use <code>global.json</code> to pin to version 2.1.4 of the SDK and it seems to have disappeared between yesterday and today on the Ubuntu image. The Windows builds are working fine.</p>
<p>As can be seen below, from the output of <code>dotnet --info</code> on the Ubuntu image, there is now 2.1.500 but no 2.1.400+:</p>
<pre>
<code>.NET Core SDKs installed:
1.1.5 [/usr/share/dotnet/sdk]
1.1.6 [/usr/share/dotnet/sdk]
1.1.7 [/usr/share/dotnet/sdk]
1.1.8 [/usr/share/dotnet/sdk]
1.1.9 [/usr/share/dotnet/sdk]
1.1.10 [/usr/share/dotnet/sdk]
1.1.11 [/usr/share/dotnet/sdk]
2.0.0 [/usr/share/dotnet/sdk]
2.0.2 [/usr/share/dotnet/sdk]
2.0.3 [/usr/share/dotnet/sdk]
2.1.2 [/usr/share/dotnet/sdk]
2.1.3 [/usr/share/dotnet/sdk]
2.1.4 [/usr/share/dotnet/sdk]
2.1.101 [/usr/share/dotnet/sdk]
2.1.103 [/usr/share/dotnet/sdk]
2.1.104 [/usr/share/dotnet/sdk]
2.1.105 [/usr/share/dotnet/sdk]
2.1.200 [/usr/share/dotnet/sdk]
2.1.201 [/usr/share/dotnet/sdk]
2.1.202 [/usr/share/dotnet/sdk]
2.1.500 [/usr/share/dotnet/sdk]</code>
</pre>
<p>The build fails due to the following error at the end:</p>
<pre>
<code>A compatible SDK version for global.json version: [2.1.400] from [/home/appveyor/projects/boxing/global.json] was not found
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409</code>
</pre>
<p>See <a href="https://ci.appveyor.com/project/raboof/boxing/build/job/f7vglb0h4464uagm">build 7 of my Boxing project</a>. The same project <a href="https://ci.appveyor.com/project/raboof/boxing/builds/20331584/job/4tqsbm1dsc0td2xw">was building fine yesterday</a> and the same Ubuntu image had version 2.1.403 installed:</p>
<pre>
<code>.NET Core SDKs installed:
1.1.5 [/usr/share/dotnet/sdk]
1.1.6 [/usr/share/dotnet/sdk]
1.1.7 [/usr/share/dotnet/sdk]
1.1.8 [/usr/share/dotnet/sdk]
1.1.9 [/usr/share/dotnet/sdk]
1.1.10 [/usr/share/dotnet/sdk]
1.1.11 [/usr/share/dotnet/sdk]
2.0.0 [/usr/share/dotnet/sdk]
2.0.2 [/usr/share/dotnet/sdk]
2.0.3 [/usr/share/dotnet/sdk]
2.1.2 [/usr/share/dotnet/sdk]
2.1.3 [/usr/share/dotnet/sdk]
2.1.4 [/usr/share/dotnet/sdk]
2.1.101 [/usr/share/dotnet/sdk]
2.1.103 [/usr/share/dotnet/sdk]
2.1.104 [/usr/share/dotnet/sdk]
2.1.105 [/usr/share/dotnet/sdk]
2.1.200 [/usr/share/dotnet/sdk]
2.1.201 [/usr/share/dotnet/sdk]
2.1.202 [/usr/share/dotnet/sdk]
2.1.403 [/usr/share/dotnet/sdk]</code>
</pre>
<p>I checked the <a href="https://www.appveyor.com/docs/linux-images-software/#net-framework">list of .NET Core SDK version pre-installed on the Linux images</a> and 2.1.4 is still listed.</p>
<p>I would appreciate any help you can offer as most of my project builds are failing now.</p>
<p>Thanks!</p></div>azizatif+appveyortag:help.appveyor.com,2012-11-13:Comment/465083372018-11-16T15:11:19Z2018-11-16T15:11:19Z.NET Core SDK 2.1.403 disappeared from Ubuntu image<div><p>The reason here is that Microsoft replaced 2.1.403 with 2.1.500. Let me try to explain how Microsoft versioning SDKs now.<br>
Each time we update ubuntu images we install all software from scratch. We install .NET SDKs from official Microsoft's repository which you can browse here <a href="https://packages.microsoft.com/ubuntu/16.04/prod/pool/main/d/">https://packages.microsoft.com/ubuntu/16.04/prod/pool/main/d/</a>. If you run <code>apt-cache search dotnet-sdk-*</code> on any ubuntu host you will see a pretty much same list of SDKs.<br>
As you may see a version is a part of deb package name.<br>
After releasing .NET SDK 2.1.300 RC1 as <code>dotnet-sdk-2.1.300-rc1...</code> deb package in May 2018 Microsoft decided to remove minor version from package name and released .NET SDK 2.1.300 as <code>dotnet-sdk-2.1</code> deb package. All next versions released with this package name.<br>
So now there is a bunch of versions under <code>dotnet-sdk-2.1</code> name <a href="https://packages.microsoft.com/ubuntu/16.04/prod/pool/main/d/dotnet-sdk-2.1/">https://packages.microsoft.com/ubuntu/16.04/prod/pool/main/d/dotnet...</a><br>
or you can get the same list with <code>apt-cache show dotnet-sdk-2.1</code> command.<br>
<code>apt</code> consider it all as different versions of the same package. <code>apt</code> does now allow to install multiple versions of the same package co-exist on the same system. Thus you may get installed either 2.1.400 or 2.1.500 on the system.</p>
<p>if it is crucial for you to run your builds with .NET SDK 2.1.400 you may use <code>previous ubuntu</code> image.</p></div>Wasa Pleshakovtag:help.appveyor.com,2012-11-13:Comment/465083372018-11-19T07:54:08Z2018-11-19T07:54:08Z.NET Core SDK 2.1.403 disappeared from Ubuntu image<div><p>Thanks for a very detailed answer, Wasa! I wasn't aware of those changes and now I understand exactly how to go about and resolve my issue.</p>
<p>Thanks again and keep up the splendid work!</p></div>azizatif+appveyortag:help.appveyor.com,2012-11-13:Comment/465083372018-11-19T08:34:22Z2018-11-19T08:34:22Z.NET Core SDK 2.1.403 disappeared from Ubuntu image<div><p>Just in case someone else coming looking for a solution, here's what I ended up adding to the <code>install</code> section of my <code>appveyor.yml</code>:</p>
<pre>
<code>apt-get install -y --allow-downgrades dotnet-sdk-2.1=2.1.403-1</code>
</pre></div>azizatif+appveyor