Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library workflow build errors , install instructions (Windows) #35001

Closed
ixje opened this issue Apr 15, 2020 · 14 comments
Closed

Library workflow build errors , install instructions (Windows) #35001

ixje opened this issue Apr 15, 2020 · 14 comments

Comments

@ixje
Copy link

ixje commented Apr 15, 2020

Let me start by stating my end goal is to be able to debug the test of System.Runtime.Numerics.

I'm attempting to follow the library building workflow from a fresh clone

  1. the suggested step below fails trying to build some Linux stuff, while I'm on Windows
build -subset clr+libs -runtimeConfiguration Release

I fixed this by manually setting the OS and others

build -subset clr+libs -runtimeConfiguration Release -os Windows_NT -arch x64

This builds as expected. So far so good.

  1. Next step should arguably allow for opening the solution in visual studio. After a storm of errors
    it does not seem to know about the new runtime? I decided to continue on the cli with the suggested instructions
build -vs System.Runtime.Numerics

this is ok. But the next instruction fails

pushd ..\src & dotnet build & popd & dotnet build /t:test

errors with, confirming the previous hunch when using the Visual Studio IDE

D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests>pushd ..\src & dotnet build & popd dotnet build /t:test
A compatible installed .NET Core SDK for global.json version [5.0.100-preview.4.20202.8] from [D:\dotnet_code\runtime\global.json] was not found
Install the [5.0.100-preview.4.20202.8] .NET Core SDK or update [D:\dotnet_code\runtime\global.json] with an installed .NET Core SDK:
  ...
  3.1.101 [C:\Program Files\dotnet\sdk]
  3.1.102 [C:\Program Files\dotnet\sdk]

What is the proper way of installing the just build runtime?


My naïve way of installing was copying the contents of D:\dotnet_code\runtime\.dotnet into \Program Files\dotnet.

It seems to have some effect

C:\Users\erik>dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   5.0.100-preview.4.20202.8
 Commit:    074b436c3d

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\5.0.100-preview.4.20202.8\

Host (useful for support):
  Version: 5.0.0-preview.3.20169.1
  Commit:  bc28cbef85

.NET Core SDKs installed:
  2.1.104 [C:\Program Files\dotnet\sdk]
  2.1.202 [C:\Program Files\dotnet\sdk]
  2.1.505 [C:\Program Files\dotnet\sdk]
  2.1.509 [C:\Program Files\dotnet\sdk]
  2.2.109 [C:\Program Files\dotnet\sdk]
  2.2.402 [C:\Program Files\dotnet\sdk]
  3.1.102 [C:\Program Files\dotnet\sdk]
  3.1.201 [C:\Program Files\dotnet\sdk]
  5.0.100-preview.4.20202.8 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.0-preview.3.20170.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.0-preview.3.20169.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.0-preview.4.20180.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

but while it resolved the above error, trying the previous workflow command still does not work.

D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests>pushd ..\src & dotnet build & popd & dotnet build /t:test
Microsoft (R) Build Engine version 16.6.0-preview-20173-01+2d82e1a86 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  Restored D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\src\System.Runtime.Numerics.csproj (in 176 ms).
C:\Users\erik\.nuget\packages\microsoft.dotnet.apicompat\5.0.0-beta.20201.2\build\Microsoft.DotNet.ApiCompat.targets(49,5): error : ResolvedMatchingContract item must be specified to run API compat. [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\src\System.Runtime.Numerics.csproj]

Build FAILED.

C:\Users\erik\.nuget\packages\microsoft.dotnet.apicompat\5.0.0-beta.20201.2\build\Microsoft.DotNet.ApiCompat.targets(49,5): error : ResolvedMatchingContract item must be specified to run API compat. [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\src\System.Runtime.Numerics.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:03.16
Microsoft (R) Build Engine version 16.6.0-preview-20173-01+2d82e1a86 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  Restored D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj (in 260 ms).
  Restored D:\dotnet_code\runtime\src\libraries\Common\tests\TestUtilities\TestUtilities.csproj (in 260 ms).
  TestUtilities -> D:\dotnet_code\runtime\artifacts\bin\TestUtilities\netcoreapp5.0-Debug\TestUtilities.dll
BigInteger\BigIntegerToStringTests.cs(1470,32): error CS1061: 'BigInteger' does not contain a definition for 'TryFormat' and no accessible extension method 'TryFormat' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\BigIntegerToStringTests.cs(1477,37): error CS1061: 'BigInteger' does not contain a definition for 'TryFormat' and no accessible extension method 'TryFormat' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1915,33): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1916,33): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1917,33): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1918,33): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1918,47): error CS0117: 'Complex' does not contain a definition for 'NaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1920,34): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1921,34): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1922,34): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1922,48): error CS0117: 'Complex' does not contain a definition for 'Infinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1924,51): error CS0117: 'Complex' does not contain a definition for 'NaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1925,52): error CS0117: 'Complex' does not contain a definition for 'NaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1931,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1932,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1933,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1935,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1936,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1937,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1939,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1939,52): error CS0117: 'Complex' does not contain a definition for 'Infinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1940,34): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1940,53): error CS0117: 'Complex' does not contain a definition for 'NaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1943,51): error CS0117: 'Complex' does not contain a definition for 'Infinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1944,52): error CS0117: 'Complex' does not contain a definition for 'Infinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1950,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1951,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1952,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1954,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1955,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1956,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1958,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1959,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1960,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1962,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1962,51): error CS0117: 'Complex' does not contain a definition for 'Infinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1963,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1963,51): error CS0117: 'Complex' does not contain a definition for 'NaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1964,33): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ctor.cs(962,64): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<byte>' to 'byte[]' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(97,35): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(98,45): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(105,46): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(427,39): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(429,49): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(434,53): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(440,73): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(442,50): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(446,54): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(484,57): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(485,49): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(490,73): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(491,50): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(521,57): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(522,49): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(527,73): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(528,50): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(139,59): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(143,31): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(145,34): error CS1729: 'BigInteger' does not contain a constructor that takes 3 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(160,59): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(164,31): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(166,34): error CS1729: 'BigInteger' does not contain a constructor that takes 3 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(181,59): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(185,31): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(187,34): error CS1729: 'BigInteger' does not contain a constructor that takes 3 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(30,59): error CS1061: 'BigInteger' does not contain a definition for 'GetByteCount' and no accessible extension method 'GetByteCount' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(31,59): error CS1061: 'BigInteger' does not contain a definition for 'TryWriteBytes' and no accessible extension method 'TryWriteBytes' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(35,31): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(38,28): error CS1061: 'BigInteger' does not contain a definition for 'GetByteCount' and no accessible extension method 'GetByteCount' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(48,33): error CS1061: 'BigInteger' does not contain a definition for 'TryWriteBytes' and no accessible extension method 'TryWriteBytes' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(52,32): error CS1061: 'BigInteger' does not contain a definition for 'TryWriteBytes' and no accessible extension method 'TryWriteBytes' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]

Build FAILED.

BigInteger\BigIntegerToStringTests.cs(1470,32): error CS1061: 'BigInteger' does not contain a definition for 'TryFormat' and no accessible extension method 'TryFormat' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\BigIntegerToStringTests.cs(1477,37): error CS1061: 'BigInteger' does not contain a definition for 'TryFormat' and no accessible extension method 'TryFormat' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1915,33): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1916,33): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1917,33): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1918,33): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1918,47): error CS0117: 'Complex' does not contain a definition for 'NaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1920,34): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1921,34): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1922,34): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1922,48): error CS0117: 'Complex' does not contain a definition for 'Infinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1924,51): error CS0117: 'Complex' does not contain a definition for 'NaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1925,52): error CS0117: 'Complex' does not contain a definition for 'NaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1931,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1932,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1933,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1935,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1936,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1937,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1939,33): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1939,52): error CS0117: 'Complex' does not contain a definition for 'Infinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1940,34): error CS0117: 'Complex' does not contain a definition for 'IsInfinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1940,53): error CS0117: 'Complex' does not contain a definition for 'NaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1943,51): error CS0117: 'Complex' does not contain a definition for 'Infinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1944,52): error CS0117: 'Complex' does not contain a definition for 'Infinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1950,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1951,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1952,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1954,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1955,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1956,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1958,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1959,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1960,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1962,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1962,51): error CS0117: 'Complex' does not contain a definition for 'Infinity' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1963,34): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1963,51): error CS0117: 'Complex' does not contain a definition for 'NaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1964,33): error CS0117: 'Complex' does not contain a definition for 'IsFinite' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ctor.cs(962,64): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<byte>' to 'byte[]' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(97,35): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(98,45): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(105,46): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(427,39): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(429,49): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(434,53): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(440,73): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(442,50): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(446,54): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(484,57): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(485,49): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(490,73): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(491,50): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(521,57): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(522,49): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(527,73): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\parse.cs(528,50): error CS1503: Argument 1: cannot convert from 'System.ReadOnlySpan<char>' to 'string' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(139,59): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(143,31): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(145,34): error CS1729: 'BigInteger' does not contain a constructor that takes 3 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(160,59): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(164,31): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(166,34): error CS1729: 'BigInteger' does not contain a constructor that takes 3 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(181,59): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(185,31): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\ToByteArray.cs(187,34): error CS1729: 'BigInteger' does not contain a constructor that takes 3 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(30,59): error CS1061: 'BigInteger' does not contain a definition for 'GetByteCount' and no accessible extension method 'GetByteCount' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(31,59): error CS1061: 'BigInteger' does not contain a definition for 'TryWriteBytes' and no accessible extension method 'TryWriteBytes' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(35,31): error CS1501: No overload for method 'ToByteArray' takes 2 arguments [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(38,28): error CS1061: 'BigInteger' does not contain a definition for 'GetByteCount' and no accessible extension method 'GetByteCount' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(48,33): error CS1061: 'BigInteger' does not contain a definition for 'TryWriteBytes' and no accessible extension method 'TryWriteBytes' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\TryWriteBytes.cs(52,32): error CS1061: 'BigInteger' does not contain a definition for 'TryWriteBytes' and no accessible extension method 'TryWriteBytes' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
    0 Warning(s)
    72 Error(s)

Time Elapsed 00:00:03.98

My Final attempt is going back to loading the solution directly. Trying to debug a test case (e.g. op_leftshift.cs) basically gives me the same errors as above with one additional hint

Severity	Code	Description	Project	File	Line	Suppression State
Error	NU1201	Project System.Runtime is not compatible with netcoreapp5.0 (.NETCoreApp,Version=v5.0). Project System.Runtime supports: net50 (.NETFramework,Version=v5.0)	System.Runtime.Numerics (ref\System.Runtime.Numerics)	D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\ref\System.Runtime.Numerics.csproj	1	

image

My questions in summary

  1. What is the proper way of installing the runtime after building?
  2. How to solve the failure of building/running the tests as suggested by the mentioned workflow?

Any tips/hints/solutions are appreciated.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-Infrastructure untriaged New issue has not been triaged by the area owner labels Apr 15, 2020
@ghost
Copy link

ghost commented Apr 15, 2020

Tagging subscribers to this area: @ViktorHofer
Notify danmosemsft if you want to be subscribed.

@ViktorHofer
Copy link
Member

Please install a matching sdk, ie the latest nightly from https://github.com/dotnet/installer.

@ixje
Copy link
Author

ixje commented Apr 16, 2020

@ViktorHofer thank you for the suggestion. Unfortunately, running the test from a solution still seems to fail, with the same error

Severity	Code	Description	Project	File	Line	Suppression State
Error	NU1201	Project System.Runtime is not compatible with netcoreapp5.0 (.NETCoreApp,Version=v5.0). Project System.Runtime supports: net50 (.NETFramework,Version=v5.0)	System.Runtime.Numerics (ref\System.Runtime.Numerics)	D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\ref\System.Runtime.Numerics.csproj	1	

What I did
I removed all dotnet installs, removed visual studio and started from scratch. Installed VS 2019 Community using the .vsconfig of this repo. I followed your link and ended up getting an installer from here for SDK 5.0.100-preview.2.

I then followed the Libraries workflow Quickstart again. Specifically the final step (building the tests) of this workflow previously failed, but now succeeds so there's some progress.

New System config

C:\Users\erik>dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   5.0.100-preview.2.20176.6
 Commit:    d752c3e07b

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\5.0.100-preview.2.20176.6\

Host (useful for support):
  Version: 5.0.0-preview.3.20169.1
  Commit:  bc28cbef85

.NET Core SDKs installed:
  3.1.201 [C:\Program Files\dotnet\sdk]
  5.0.100-preview.2.20176.6 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.0-preview.2.20167.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.0-preview.3.20170.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.0-preview.2.20160.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.0-preview.3.20169.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.0-preview.2.20160.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.0-preview.4.20180.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

C:\Users\erik>dotnet --version
5.0.100-preview.2.20176.6

image

And the global.json contents as part of my checkout (with modified versions) looks like this;

{
  "sdk": {
    "version": "5.0.100-preview.2.20176.6",
    "allowPrerelease": true,
    "rollForward": "major"
  },
  "tools": {
    "dotnet": "5.0.100-preview.2.20176.6"
  },
  "native-tools": {
    "cmake": "3.14.2",
    "python3": "3.7.1"
  },
  "msbuild-sdks": {
    "Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk": "5.0.0-beta.20201.2",
    "Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20201.2",
    "Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk": "5.0.0-beta.20201.2",
    "Microsoft.DotNet.Helix.Sdk": "5.0.0-beta.20201.2",
    "FIX-85B6-MERGE-9C38-CONFLICT": "1.0.0",
    "Microsoft.NET.Sdk.IL": "5.0.0-preview.4.20202.18",
    "Microsoft.Build.NoTargets": "1.0.53",
    "Microsoft.Build.Traversal": "2.0.34"
  }
}

Any idea why the SDK is not picked up? assuming I downloaded the right installer. I feel like I'm very close so any help is again much appreciated.

@ViktorHofer
Copy link
Member

Hello @ixje, sorry for the late response.

Two observations:

  1. Please download the latest dotnet SDK from here: https://github.com/dotnet/installer#installers-and-binaries. This should be a 5.0-preview4 release.

  2. Are you on latest master? Because the global.json in master contains a preview4 min version: https://github.com/dotnet/runtime/blob/master/global.json#L8.

@ixje
Copy link
Author

ixje commented Apr 17, 2020

@ViktorHofer no worries, I'm happy to get a follow up at all 👍

  1. I corrected my selection mistake, uninstalled preview 2 and now got preview 4.
  2. Yes I am on latest master (updated again)
D:\dotnet_code\runtime>git log -1
commit 9be23bada7304d013dbdaf216027e9097e8a95c4 (HEAD -> master, origin/master, origin/HEAD)
Author: mrj001 <62225294+mrj001@users.noreply.github.com>
Date:   Fri Apr 17 08:45:54 2020 -0600

    updated output folder from 'aforementioned' to the folder where the single library output is found. (#34340)

Unfortunately the same old error still exists

Severity	Code	Description	Project	File	Line	Suppression State
Error	NU1201	Project System.Runtime is not compatible with netcoreapp5.0 (.NETCoreApp,Version=v5.0). Project System.Runtime supports: net50 (.NETFramework,Version=v5.0)	System.Runtime.Numerics (ref\System.Runtime.Numerics)	D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\ref\System.Runtime.Numerics.csproj	1	

Some observations/sanity checking questions

  • I cloned the repo under D:\dotnet_code\runtime. After a successful build there is now .dotnet dir here D:\dotnet_code\runtime\.dotnet. Is there a way to point Visual Studio at this specific version? Because this version is not included in the output of my global dotnet --info

  • calling dotnet --info from path outside of the cloned repo differs from when executing it on the path of the repo. e.g.

outside

C:\Users\erik>dotnet --version
5.0.100-preview.4.20217.5

C:\Users\erik>dotnet --info
.NET SDK (reflecting any global.json):
 Version:   5.0.100-preview.4.20217.5
 Commit:    616fa8a09e

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\5.0.100-preview.4.20217.5\

Host (useful for support):
  Version: 5.0.0-preview.4.20217.2
  Commit:  e405ca02b4

.NET SDKs installed:
  3.1.201 [C:\Program Files\dotnet\sdk]
  5.0.100-preview.4.20217.5 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.0-preview.3.20170.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.0-preview.4.20216.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.0-preview.2.20160.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.0-preview.3.20169.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.0-preview.4.20217.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.0-preview.2.20160.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.0-preview.4.20180.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.0-preview.4.20216.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

inside

D:\dotnet_code\runtime\.dotnet>dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   5.0.100-preview.4.20202.8
 Commit:    074b436c3d

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   D:\dotnet_code\runtime\.dotnet\sdk\5.0.100-preview.4.20202.8\

Host (useful for support):
  Version: 5.0.0-preview.3.20169.1
  Commit:  bc28cbef85

.NET Core SDKs installed:
  5.0.100-preview.4.20202.8 [D:\dotnet_code\runtime\.dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 5.0.0-preview.3.20170.2 [D:\dotnet_code\runtime\.dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.0-preview.3.20169.1 [D:\dotnet_code\runtime\.dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 5.0.0-preview.4.20180.8 [D:\dotnet_code\runtime\.dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
  • Should I at all bother with editing the global.json from the default as how it is cloned from the repo or should it just work?

  • I'm actually one step back to the tests now failing to build :(

D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests>pushd ..\src & dotnet build & popd & dotnet build /t:test

Welcome to .NET 5.0!
---------------------
SDK Version: 5.0.100-preview.4.20217.5

Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. The data is anonymous. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Microsoft (R) Build Engine version 16.7.0-preview-20215-01+aa655667e for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  Restored D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\src\System.Runtime.Numerics.csproj (in 158 ms).
C:\Users\erik\.nuget\packages\microsoft.dotnet.apicompat\5.0.0-beta.20201.2\build\Microsoft.DotNet.ApiCompat.targets(49,5): error : ResolvedMatchingContract item must be specified to run API compat. [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\src\System.Runtime.Numerics.csproj]

Build FAILED.

C:\Users\erik\.nuget\packages\microsoft.dotnet.apicompat\5.0.0-beta.20201.2\build\Microsoft.DotNet.ApiCompat.targets(49,5): error : ResolvedMatchingContract item must be specified to run API compat. [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\src\System.Runtime.Numerics.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:06.63
Microsoft (R) Build Engine version 16.7.0-preview-20215-01+aa655667e for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  Restored D:\dotnet_code\runtime\src\libraries\Common\tests\TestUtilities\TestUtilities.csproj (in 255 ms).
  Restored D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj (in 255 ms).
  TestUtilities -> D:\dotnet_code\runtime\artifacts\bin\TestUtilities\netcoreapp5.0-Debug\TestUtilities.dll
BigInteger\BigIntegerToStringTests.cs(1470,32): error CS1061: 'BigInteger' does not contain a definition for 'TryFormat' and no accessible extension method 'TryFormat' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
BigInteger\BigIntegerToStringTests.cs(1477,37): error CS1061: 'BigInteger' does not contain a definition for 'TryFormat' and no accessible extension method 'TryFormat' accepting a first argument of type 'BigInteger' could be found (are you missing a using directive or an assembly reference?) [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]
ComplexTests.cs(1915,33): error CS0117: 'Complex' does not contain a definition for 'IsNaN' [D:\dotnet_code\runtime\src\libraries\System.Runtime.Numerics\tests\System.Runtime.Numerics.Tests.csproj]

... omitted the other 70 something errors

@ViktorHofer
Copy link
Member

ViktorHofer commented Apr 17, 2020

Sorry if I missed it, but what's your VS version? You need at least VS 16.6 preview2 which contains the net5.0 tfm change. Submitted a PR to make this clear: #35114.

@ixje
Copy link
Author

ixje commented Apr 17, 2020

I had Community 2019 16.5.4, I now have Community 2019 16.6.0 preview 3. Same old story still
image

@ViktorHofer
Copy link
Member

This looks like you aren't opening VS with the -vs switch?

@ixje
Copy link
Author

ixje commented Apr 17, 2020

I was using that switch, but...now after also uninstalling Community 2019 16.5. and only keeping 16.6.0 preview 3 it seems to run (despite the top project still showing an issue with a dependency).
image

Thanks for sticking with me 🥇 ! I can now do what I wanted to do.

As for closing; arguably the install instructions as is are still insufficient given that I had to manually set flags to get it building to start with. I'm indifferent to leaving it open or closing it. Please do as you see fit.

@ViktorHofer
Copy link
Member

@ixje thanks for fighting through this :) As you just unraveled the right workflow, would you mind submitting a PR and helping us improve the described workflow?

@ixje
Copy link
Author

ixje commented Apr 18, 2020

@ViktorHofer Yes sure.

  • when I opened this issue I had adjust one of the first commands of the Library building workflow (being)
build -subset clr+libs -runtimeConfiguration Release

to add the following flags: -os Windows_NT -arch x64. I just did another fresh clone and this time it does work fine. So no need for adjusting there anymore.

@ViktorHofer
Copy link
Member

@ixje sorry for not getting back to you earlier. What's the current status on this, are you still blocked?

@ViktorHofer ViktorHofer added area-Infrastructure-libraries and removed area-Infrastructure untriaged New issue has not been triaged by the area owner labels Jul 15, 2020
@ghost
Copy link

ghost commented Jul 15, 2020

Tagging subscribers to this area: @safern, @ViktorHofer
Notify danmosemsft if you want to be subscribed.

@ViktorHofer ViktorHofer added this to the Future milestone Jul 15, 2020
@ixje
Copy link
Author

ixje commented Jul 15, 2020

@ViktorHofer no problem, I'm no longer blocked. Thanks for checking back in.

@ixje ixje closed this as completed Jul 15, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants