Razor files are shown twice in solution view, as [Content] and as [AdditionalFiles]
Hi,
I am using latest Rider (2025.2.1) on MacOS (Tahoe 26). In my solution view .razor files are shown twice (see image).

They are not referenced in .csproj at all. The file view works as expected. Is there any way of removing or hiding the second entry? It clutters the solution view and the code highlighting does not work if I open any marked as [AdditionalFiles]
Please sign in to leave a comment.
Hello,
Thanks for contacting Rider support.
I can't reproduce the issue on my side. Could you try the following to revert Rider to the initial state and verify if the issue persists?
Clear Caches:
• Navigate to File → Invalidate Caches.
• Select Invalidate and Restart, then verify if the issue is resolved.
Delete `.idea` folder
`.idea` folder in solution folder contains project configurations specific to Rider. Please delete this folder to reset configurations, then restart Rider. A new default `.idea` folder will be generated. If you'd like to keep a backup, rename `.idea` folder to something else(e.g., `.idea_backup`).
Disable All Downloaded Plugins:
• Go to Rider Settings → Plugins.
• Disable all downloaded plugins
• Restart Rider
If the issue continues, could you check if the issue also happens on default Blazor app?
Thanks,
Tom
Hi Tom,
this seems to have resolved the issue. Thank you for your time!
Best,
Anže
I have the same issues. It happened after I moved the files into a parent folder (I accidentally created a subfolder for the solution).
I tried all the steps, clearing the cache, deleting the .rider folder and disabling the Plugins, despite all of that, all folders and files are shown twice, as part of the solution and as external files which is pretty confusing.
If I click on a file that is marked as external and open it, the correct file that is part of the solution is highlighted and marked as active.
Skalli The correct folder name is “.idea”. Could you please confirm that you were deleting this folder? If yes, does this occur on a new Blazor app? If not, is it possible to help create a minimal reproducer?
You can upload the files to the Upload Service and share the Upload ID.
Hello Tom,
just to be clear, yes I deleted the “.idea” directory. That was a mistake in my post, sorry about the confusion.
I've uploaded an example where the problem occurs for me. Upload id: 2026_02_03_JNJskvKB2nwG4mDsSV2NSP (file: Example.zip)
It's nit a Blazor App, but a console application. In this case I created a new console application from the template. I checked to create the solution and the project in the same directory. Then, after opening the solution I checked “Show All Files”
The screenshot shows the issue, the contents of the project also appear below the solution directory. I'd expect to show only files there that are not part of the solution or maybe nothing at all.
Hello Skalli , thanks for the additional information. I've confirmed that this behavior is by design: With “Show all files” on, Rider shows both the actual file system items and additional MSBuild‑added items, which leads to duplication in the tree.
You may switch to “File System” view to check all the files:
Currently, we have no plan to change this design. But if this bothers you, please leave your comment in this issue: RIDER-68849 Duplicating files in blazor net6 projects with Show All Files enabled. We may revisit this topic in the future.
Thanks,
Tom