-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unable to locate Dependency NETStandard.Library >= 1.0.0-rc2-23616 #4601
Comments
I think this may be due to the recent upgrade in dotnet/cli#497 and the fact that this rc2 package doesn't exist in the default package source. @hunter-xue if you do @blackdwarf @krwq |
"dotnet restore -s https://myget.org/f/dotnet-core" is working for me, but "dotnet run" still get error below: |
@hunter-xue which version of OS X? El Capitan? |
Hi there, I note this issue isn't isolated to OSX, I have had the same problem on Windows with the current published MSI from https://dotnet.github.io/getting-started/. Its worth noting that I have installed several versions of the dotnet CLI over the past few weeks, so its possible the default endpoint had been configured from some previous version, or the Anyway, on Windows the Anyway, thanks all, the platform is shaping up nicely :) |
Thanks for the workarround. It's really hard to get used to the fact that one should look up his issue in github when its dotnet related. I'm so glad though... 😃 |
This problem is caused by Fix for this issue is being tracked here: dotnet/cli#615 |
@blackdwarf My MAC OS X version is: EI Capitan 10.11.2 |
@hunter-xue, could you check if everything is working with the latest bits? |
@krwq Yes, everything is the last bits. In fact, dotnet never worked on my MAC OS X. |
I am seeing the same issue with I am able to open VS 2015 and let the restore happen from there. Even after the restore processes in VS I am unable to run the command line restore. The error that I see without the
|
@TJSoftware could you provide more details? How did you install the CLI tools? Was it MSI or local install? |
@blackdwarf Sorry, I started a post elsewhere with that info and then I found this and I forgot to replicate all that info here. SummaryI followed the steps on dotnet getting started by downloading the exe and installing. After running WorkaroundOpening Visual Studio 2015 ran the restore automatically. At that point I could run the command line Tech Specs.NET Version Manager v1.0.0-rc2-15546 |
@TJSoftware There's no first class support for |
@davidfowl Should I still be able to run the |
@TJSoftware, I can't seem to be able to repro.
Here is what I do:
dotnet new should generate 3 files. Program.cs is a regular hello world. Project.json content should look like following: {
"version": "1.0.0-*",
"compilationOptions": {
"emitEntryPoint": true
},
"dependencies": {
"NETStandard.Library": "1.0.0-rc2-23616"
},
"frameworks": {
"dnxcore50": { }
}
} Nuget.config content should look like following: <?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="dotnet-core" value="https://www.myget.org/F/dotnet-core/api/v3/index.json" />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration> Could you share if anything is different? |
@krwq Thank you for attempting to replicate this. I downloaded the exe from the installers in the link you provided. First I did a repair and I still saw the issue. I then removed and reinstalled and I still see the issue. The exe that I downloaded and the link that you provided both have the revision number Based on your post my issue may be related to the environment variable.
Thank you for confirming the state of what |
I noticed when I checked the environment variable from the command prompt that it was not returning the correct value. I used the |
@anurse Have you seen this error before? |
I created a new win 10 VM with nothing else on it. I downloaded the msi from https://github.com/dotnet/cli. I tested On a side note, is it a requirement to have VS installed to run the Thank you all for your help. |
@TJSoftware the requirement for VS could be a point-in-time issue. @brthor @Sridhar-MS could this be related to native compilation and its requirements? |
@blackdwarf I think we need to do some investigation of our dependencies on a vanilla box. We do have a dependency on the c++ redistributable for most commands, but VS 2015 should only be required if actually doing native compilation. |
@brthor I recreated the VM to get the error I saw with just installing the msi from https://github.com/dotnet/cli and nothing else. |
@TJSoftware Can you try installing the c++ redistributable? https://www.microsoft.com/en-us/download/details.aspx?id=48145 I think this is the dependency which is missing. @schellap Would there be any way to remove this dependency by static linking corehost? |
@brthor The link you gave me fixed the missing dll error. |
Looks like this is already being tracked: |
Thanks all for your help. I tested all the |
Great to hear everything is working 😄 |
I'll take care of that in my next PR for "CoreHost Servicing" |
Fixed with dotnet/cli#617 . |
Still having a problem. With the latest from http://dotnet.github.io/getting-started/ when running dotnet restore I get an exception: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Program' or one of its dependencies. The system cannot find the file specified. |
@ewolfman: There seems to be an issue with the space in "Program Files". After fooling around with the -v option, I found that instead of "dotnet restore", it works by using corerun and quoting the path to the NuGet dll: |
@midizyf your solution works well. Thanks. |
…0200608.1 (#4601) Microsoft.Build.Localization , Microsoft.Build From Version 16.7.0-preview-20305-05 -> To Version 16.7.0-preview-20308-01 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
On MAC OS X, I use "dotnet new" to create a new project, but get error when execute "dotnet restore".
The text was updated successfully, but these errors were encountered: