question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet build fails on os x with nuget errors, restore works

See original GitHub issue

Steps to reproduce

With my project, I run dontet restore, and it restores fine. On dotnet build, I get an error for every package.

Expected behavior

The code compiles (or at least attempts to)

Actual behavior

A line for every dependency along the lines of /project.json(15,50): error NU1001: Microsoft.AspNetCore.Hosting >= 1.0.0-* could not be resolved.

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview1-002702)

Product Information: Version: 1.0.0-preview1-002702 Commit Sha: 6cde21225e

Runtime Environment: OS Name: Mac OS X OS Version: 10.11 OS Platform: Darwin RID: osx.10.11-x64

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
yishaigalatzercommented, Oct 8, 2016

I believe this change is breaking the preview scenarios by design. Prior to it package ids are case sensitive on a case sensitive file system, and they are truly case insensitive. So now everything is normalized to lower case. You should clean the caches and all packages and start again. However you need a matching cli that can do it correctly (not sure about this detail Joel will know more)


From: David Ebbo notifications@github.com Sent: Oct 8, 2016 10:30 AM To: dotnet/cli Cc: Yishai Galatzer; Mention Subject: Re: [dotnet/cli] dotnet build fails on os x with nuget errors, restore works (#3702)

It’s a casing regression in nuget 3.5. See details in projectkudu/kudu#2173 (comment)https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fprojectkudu%2Fkudu%2Fissues%2F2173%23issuecomment-252437048&data=01|01|yigalatz%40microsoft.com|29e0e59fb7ed4c1521c708d3efa0cbb0|72f988bf86f141af91ab2d7cd011db47|1&sdata=uLeHfgBQ0ZLqYMClk1PjmbHTnS%2FNWuBqT2L%2FmoB8KcI%3D&reserved=0. Though I don’t know if it’s the same issue that @Feasoronhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FFeasoron&data=01%7C01%7Cyigalatz%40microsoft.com%7C29e0e59fb7ed4c1521c708d3efa0cbb0%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=dWxSx6LrgGR5QNQ8Dy2GwkSvyHPCEUKK%2BwxxxpRq1QQ%3D&reserved=0 has.

You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fcli%2Fissues%2F3702%23issuecomment-252437521&data=01%7C01%7Cyigalatz%40microsoft.com%7C29e0e59fb7ed4c1521c708d3efa0cbb0%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=pAbPy1%2B877fcprLDhK2fhoJJfhLhvilb6BKYyuf8LKQ%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABLmt7RvS0iAyjhdT9Vw3HFtdBxgdH2cks5qx9MzgaJpZM4I_Gn-&data=01%7C01%7Cyigalatz%40microsoft.com%7C29e0e59fb7ed4c1521c708d3efa0cbb0%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=f88eiireaS%2F4tE%2FVOzms81uz0zrP%2Fog6x5eQBWgjWDg%3D&reserved=0.

1reaction
davidebbocommented, Oct 8, 2016

It’s a casing regression in nuget 3.5. See details in https://github.com/projectkudu/kudu/issues/2173#issuecomment-252437048. Though I don’t know if it’s the same issue that @Feasoron has.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting NuGet Package Restore in Visual Studio
This error occurs when you attempt to build a project that contains references to one or more NuGet packages, but those packages are...
Read more >
Visual Studio 2022 Mac Error: NuGet packages need to be ...
I have a .Net 6 project, I am getting the below error. Error: NuGet packages need to be restored before building. NuGet MSBuild...
Read more >
Nuget package restore no longer works with latest VS for Mac
My packages folder is empty, and yet when I do a Restore it gives no errors and completes after 2 seconds, and yet...
Read more >
Dotnet restore vs nuget restore. Share. In my code repo, there
Dotnet restore vs nuget restore. Share. In my code repo, there is nuget. config and PackageReference. The solution we found includes two parts:...
Read more >
Had anyone ever experienced NuGet restore network error ...
I'm running build from Docker Desktop for Mac on my device. The same build script runs perfectly on CI environment (GitHub Actions/ubuntu:latest) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found