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 restore is case sensitive of project file name on Windows.

See original GitHub issue

Steps to reproduce

  1. dotnet new
  2. Rename project.json to Project.json
  3. dotnet restore

Expected behavior

Restore successfully

Actual behavior

$ dotnet restore
log  : Restoring packages for D:\dev\repo\np\Project.json...
info : Committing restore...
log  : D:\dev\repo\np\Project.json
log  : Restore completed in 24604ms.

NuGet Config files used:
    C:\Users\troyd\AppData\Roaming\NuGet\NuGet.Config
Could not find a part of the path 'D:\dev\repo\np\Project.json\project.json'.

Environment data

dotnet --version output:

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
troydaicommented, Mar 15, 2016

I’ll assign this to myself for now.

0reactions
akoeplingercommented, Mar 22, 2016

short of having an API to get the File System type and a big giant table of “Is this FS case-sensitive”

@anurse not necessarily. You could imagine an API where you pass in a path and it returns whether the file system on that path is case sensitive or not 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet restore is case sensitive of project file name on ...
Steps to reproduce dotnet new Rename project.json to Project.json dotnet restore Expected behavior Restore successfully Actual behavior ...
Read more >
Common NuGet configurations
To change settings in a different file, use the -configFile switch. In this case files can use any filename. Keys are always case...
Read more >
Git is case-sensitive and your filesystem may not be
I've encountered this when renaming from within Visual Studio where changing the file name capitalization only (i.e. ClassDTO => ClassDto). It ...
Read more >
Dockerfile can't see local file or private nuget server
I found the problem but not solution. 'Dotnet Restore' command don't install one of my private package but install others from my private...
Read more >
Docker build caching for .NET applications done right with ...
In our case that means that if no file in the project has changed, dotnet publish 's output from the previous run will...
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