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.

Migrating a pure dotnet-core project does not create a solution

See original GitHub issue

Steps to reproduce

dotnet migrate on a project that only contains project.json projects (example)

Expected behavior

The projects are migrated to csproj and a solution is created OR the tool chain allows multiple projects to be specified as before.

Actual behavior

The projects are migrated, but a solution is not created. This means there is no easy way to restore and build, since dotnet restore only allows you to specify one project at a time and dotnet build seems to want a solution now instead of searching for projects. Perhaps I missed a communication?

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-rc4-004771)

Product Information:
 Version:            1.0.0-rc4-004771
 Commit SHA-1 hash:  4228198f0e

Runtime Environment:
 OS Name:     arch
 OS Version:  
 OS Platform: Linux
 RID:         ubuntu.14.04-x64
 Base Path:   /opt/dotnet/sdk/1.0.0-rc4-004771

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
dasMullicommented, Feb 15, 2017

Luckily, you no longer need to hack one together manually 😄 🎉

MacBook-Pro:foobar martin$ dotnet new solution
Content generation time: 20.3027 ms
The template "Solution File" created successfully.
MacBook-Pro:foobar martin$ dotnet sln add **/*.csproj
Project `app1/app1.csproj` added to the solution.
Project `app2/app2.csproj` added to the solution.
1reaction
dasMullicommented, Feb 15, 2017

The executable thing is a standing issue with .net… there are issues both on the cli and corefx for it.

Globbing should be done by the shell here so it probably depends on the shell version and settings (bash 3.2.57(1) on Mac OS in my case). So you could also do it via find . -type f -name '*.csproj' -exec dotnet sln add {} \;

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrate from ASP.NET Core 3.1 to 5.0
Learn how to migrate an ASP.NET Core 6 project to ASP.NET Core 7.0. Learn how to migrate an ASP.NET Core 3.1 project to...
Read more >
Migrating the asp.net core 3.1 to .net 6 error
I am migrating one of the projects from .net core 3.1 to .net 6. One of the project is not building and throwing...
Read more >
Upgrading a Project with .NET Upgrade Assistant [6 of 18 ...
Creating a New Project with the Upgrade Assistant Visual Studio Extension ... NET Core Migration Wrap-Up - https://youtu.be/rPEZ3_-CjDM 17.
Read more >
The absolutely horrendous things you need to do to migrate to ...
NET 4.8 projects because you need to literally create a new .NET Core project and move the code files “manually” into it. What...
Read more >
Migrating from .NET Framework to .NET Core: Tips and Tricks
Migrating solutions with over 60 projects, some of them shared with other solutions, may be tricky… If you choose to do a direct...
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