Loading .slnf files

I have this project structure

└── src
   ├── MRX.Core
   │   ├── MRX.Core.slnf
   │   └── src
   │       ├── bin
   │       ├── IServiceCollectionExtensions.cs
   │       ├── ModelBinding
   │       ├── MrxConfigurationOptions.cs
   │       ├── MRX.Core.csproj
   │       └── obj
   └── MRX.slnx
 

Where MRX.sln is

<Solution>
 <Folder Name="/src/MRX.Core/">
   <Project Path="MRX.Core/src/MRX.Core.csproj" />
 </Folder>
</Solution>

and MRX.Core.slnf is

{
 "solution": {
   "path": "../MRX.slnx",
   "projects": [
     "MRX.Core/src/MRX.Core.csproj"
   ]
 }
}

 

When I open the .slnf file directly Rider does not load the specific project only. It opens a window with Explorer in “File system” mode, when I switch it to “Solution” it displays the whole .slnx with all other projects.

Is this expected behavior, am I doing something wrong or is opening only projects listed in .slnf files not supported?

0
3 comments

Hello Mattia,

Thank you for sharing your experience and the details enough for the issue to be reproduced! As far as I can judge, this isn't an expected behavior, but a bug that only reproduces with having .slnx as “path” for .slnf. 

I registered this bug on our tracker: RIDER-142880 Opening .slnf defaults explorer to "File System" when .slnx is being used.

Does it describe the same behavior you observe? Have a nice day!

0

Hello Dimitry,

Yes, your report on the tracker perfectly describes the exact same behavior I observed. 

0
Thanks for confirming. Please watch the issue for further updates. You can vote for the issue (the 'Like' button in the upper-right corner of the issue) to get subscribed for the updates. Have a nice day!
0

Please sign in to leave a comment.