Here is what will happen if you grab 2.1.0 - preview1-006329 instead of 2.0.0 : #6827

Closed
julielerman opened this Issue Jun 10, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@julielerman

julielerman commented Jun 10, 2017

This evolved into a document ref for others who make the mistake I did, rather than an issue. So I've closed it.

Steps to reproduce

Download install nightly build SDK (current is v 2.1.0 - preview1-006329)
dotnet --info

Expected behavior

expect dotnet info to say something about v 2.1.0 - preview1 -006329

Actual behavior

CLI Tools says: 2.0.0-preview2-006127)
Microsoft .NET Core Shared Framework Host
Version : 2.0.0-preview2-25319-02
Build : 7983b575ebcbdc3a825eea4b141ff7fb69d25f9d

##next steps
dotnet new library
verify that global nuget.config has
<add key="nightly" value="https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json" />
dotnet restore

Expected behavior

restore netstandard packages

Actual behavior

Error message: error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.

##next step
add a local nuget.config file in the folder with the new project
(restore still results in sdk not found).
go to add/remove programs
uninstall earlier .net core 2.0 are not installed
download and run installer again. Prompted to repair. Let that happen.
Start again wtih dotnet --info, still reports 2.0.0. preview2 versions, not 2.1.0

Clean system (VM windows 10)
Installed the same preview1 bits via installer
dotnet --version sill is 006127 so I guess that's expected.
make sure nuget.config had same "nightly" package source as above
dotnet restore succeeds but with this warning:

C:\Program Files\dotnet\sdk\2.0.0-preview2-006127\NuGet.targets(98,5): warning : Dependency specified was Microsoft.NETCore.App (>= 2.0.0-preview2-25319-02) but ended up with Microsoft.NETCore.App 2.0.0-preview2-25324-01. [C:\Users\julie\Documents\netcore20tests\newconsole\newconsole.csproj]

dotnet build succeeds
dotnet run tells me I have to install a lower version of dotnet

t was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.0.0-preview2-25324-01' was not fo
und.
  - Check application dependencies and target a framework version installed at:
      \
  - Alternatively, install the framework version '2.0.0-preview2-25324-01'.

HAPPY PATH ________________

Couldn't find that but did find the 2.0.0 branch at https://github.com/dotnet/cli/tree/release/2.0.0
That gives v 2.0.0-preview2-006391
I uninstalled the newer 2.1.0
dotnet --info showssdk v 2.0.0-preview2-006391 and .net core shared framework host 2.0.0-preview2-25407-01.
I was able to create a new console app and a new netstandard library and have the console app call into the library.
So my real problem was that I had gotten 2.1.0 from the main dotnet cli github page!
This did not solve things on my dev machine. So I think for now I'll do what I would normally do (rather than the lazy thing I did today) and use a clean machine for .net core 2.0 exploration.

Environment data

dotnet --info output:
FOR MY MACHINE____________________________________
.NET Command Line Tools (2.0.0-preview2-006127)

Product Information:
Version: 2.0.0-preview2-006127
Commit SHA-1 hash: 946ea79

Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0-preview2-006127\

Microsoft .NET Core Shared Framework Host

Version : 2.0.0-preview2-25319-02
Build : 7983b575ebcbdc3a825eea4b141ff7fb69d25f9d


FOR the VM:_____________________________________
.NET Command Line Tools (2.0.0-preview2-006127)

Product Information:
Version: 2.0.0-preview2-006127
Commit SHA-1 hash: 946ea79

Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0-preview2-006127\

Microsoft .NET Core Shared Framework Host

Version : 2.0.0-preview2-25319-02
Build : 7983b575ebcbdc3a825eea4b141ff7fb69d25f9d

@julielerman julielerman changed the title from Can't dotnet restore with nightly build 2.1.0 - preview1-006329 to Here is what will happen if you grab 2.1.0 - preview1-006329 instead of 2.0.0 : Jun 10, 2017

@matkoch matkoch referenced this issue in nuke-build/nuke Sep 6, 2017

Closed

setup.ps1 is broken #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment