Migrating an sln with a xproj with different name results in the wrong csproj path in the sln
See original GitHub issueSteps to reproduce
migrate and build https://github.com/aspnet/AzureIntegration
Expected behavior
build succeeded
Actual behavior
The project file "D:\aspnetsrc\AzureIntegration\test\Microsoft.AspNetCore.AzureAppServicesIntegration.Tests\Microsoft.AspNetCore.AzureAppServicesIntegration.Test.csproj" was not found. [D:\aspnetsrc\AzureIntegration\AzureIntegration.sln]
The name of csproj after migration does not have ‘s’ in ‘Tests’ - name should be coming from xproj name or some attribute inside - it is coming from folder name instead
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-rc4)
Product Information:
Version: 1.0.0-rc4
Commit SHA-1 hash: cf8fd7dd34
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: D:\cli\artifacts\win10-x64\stage2\sdk\1.0.0-preview5-004506
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
After migrating a *xproj to *csproj, the referenced project ...
Running dotnet migrate on the folder containing the sln file will not update it and will not migrate only the projects in the...
Read more >Visual Studio 2019 continues to look for a csproj in wrong ...
It looks for a file inside another project folder. enter image description here. I've checked my .sln and .csproj files but it doesn't...
Read more >[SOLVED] Unity not generating .sln file from Assets > Open ...
Solved: You have to go to Edit > Preferences > External Tools and navigate to the VS exe, then Assets > Open C#...
Read more >Creating and editing solution files with the .NET CLI
In this post, I show how to manage sln files with the .NET command line interface (CLI). See how to create sln files,...
Read more >Renovate your .NET solution
First of all, the ProjectReference node has been simplified and we only need a csproj path to reference other project.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DustinCampbell I agree. This means that the bug here is that migration is not putting the right csproj file name/path in the sln when it modifies it.
Ok, closing this as a dup then.