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.

Unable to find F# project in solution to restore

See original GitHub issue

Steps to reproduce

{11:51}~/test ➭ dotnet new sln -n fsharpsolution
Content generation time: 60.1264 ms
The template "Solution File" created successfully.
{11:51}~/test ➭ dotnet new console -lang F# -n proj1
Content generation time: 111.1087 ms
The template "Console Application" created successfully.
{11:51}~/test ➭ dotnet sln add proj1/proj1.fsproj
Project `proj1/proj1.fsproj` added to the solution.
{11:51}~/test ➭ dotnet restore
/opt/dotnet/sdk/1.0.4/NuGet.targets(97,5): warning : Unable to find a project to restore! [/home/cnikkel@fvscloud.com/test/fsharpsolution.sln]
{11:52}~/test ➭ cat /etc/redhat-release && dotnet --version
CentOS Linux release 7.2.1511 (Core)
1.0.4

NOTE: Also tested using linux subsystem on windows 10 with Ubuntu 14.04.5 LTS and dotnet version 1.0.4 and got same results

Expected behavior

All F# projects in solution should be able to restore and build.

Actual behavior

No F# projects are found in solution to restore.

Environment data

dotnet --info output:

[cnikkel@syslog test]$ dotnet --info
.NET Command Line Tools (1.0.4)

Product Information:
 Version:            1.0.4
 Commit SHA-1 hash:  af1e6684fd

Runtime Environment:
 OS Name:     centos
 OS Version:  7
 OS Platform: Linux
 RID:         centos.7-x64
 Base Path:   /opt/dotnet/sdk/1.0.4
```AND```
{11:57}~/test ➭ dotnet --info
.NET Command Line Tools (1.0.4)

Product Information:
 Version:            1.0.4
 Commit SHA-1 hash:  af1e6684fd

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  14.04
 OS Platform: Linux
 RID:         ubuntu.14.04-x64
 Base Path:   /usr/share/dotnet/sdk/1.0.4

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ChrisNikkelcommented, Oct 4, 2017

2.0.0 works great for me. I don’t see any value in keeping this issue open.

1reaction
enricosadacommented, Jun 21, 2017

While i can repro in 1.0.4, this is fixed in 2.0.0-preview2 (tested also in https://github.com/dotnet/cli/pull/6977 ) As a note, the sln will use \ directory separator, but restore will work

@livarcocc the 1.0.x branch is getting an update? if so, i can try backport the fix (if i can find it).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error NU1105 Unable to find project information - The ...
Clean your solution(s); Close Visual Studio and delete the .vs folder(s); Add the reference to the .csproj file; Rebuild the referenced .csproj ...
Read more >
Error message around "Unable to find project information ...
overall, this error means that NuGet did not have restore metadata details about this project which is why it can't restore this project....
Read more >
NuGet Error NU1105
In this article ... Unable to read project information for 'ProjectFile'. The project file may be invalid or missing targets required for restore....
Read more >
Unable to find project information for local project - YouTrack
The workaround is to create a solution and manually add my project and the external project to the solution, this drift in behavior...
Read more >
Migrating to VS2017 project causes restore error NU1105
error NU1105: Unable to find project information for 'd:\a\1\s\LINK\Link.Ui\Link.Ui.csproj'. The project file may be invalid or missing targets ...
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