Skip to content

Build fails due to missing NETCoreSdkVersion #25649

@alrz

Description

@alrz

Version Used: VS 2017 15.7 Preview 1

Steps to Reproduce: on dev15.7.x branch

  1. Install dotnet-sdk-2.1.300-preview2-008324-win-x64.exe
  2. Run restore.cmd
  3. Run build.cmd

Actual Behavior:

Build fails with the following error for 161 projects, (notice the empty string in "found instead")

D:\dotnet\roslyn\build\Targets\Imports.targets(436,5): error : 
The 2.1.300-preview2-008324 SDK is required to build this repo but found  instead. 
The correct SDK can be install here ...

D:\dotnet\roslyn>dotnet --info

.NET Core SDK (reflecting any global.json):
 Version:   2.1.300-preview2-008324
 Commit:    ca0695c2e1

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.16299
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.1.300-preview2-008324\

Host (useful for support):
  Version: 2.1.0-preview2-26309-01
  Commit:  750b1a68da

.NET Core SDKs installed:
  2.1.300-preview2-008324 [C:\Program Files\dotnet\sdk]
  2.2.0-preview1-007622 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.0-preview2-30248 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.0-preview2-30248 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.0-preview1-25929-02 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.0-preview2-26309-01 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions