Unable to build projects due to references in Bazzite
https://github.com/abowen/JetBrainsTest
Kept having issues with references with my work project, which had previously been working fine on NixOS
I've swapped to Bazzite and unable to build the same project. I'd expect the same errors on Fedora SilverBlue and Kinoite.
The issue occurs with (previously working) implied references. e.g. A references B, which references C.
A won't build because can't find C.
----------
Installed JetBrains toolbox with official installer, and installed 2025.1.4 and 2024.3.8 with Toolbox. Issues occurs in both.
There's a GitHub link at the top, but describing what I did
- Setup a new solution that contained a Console project
- Added Library project
- In Console project, add reference to Library project
- Add xUnit test library
- in xUnit test library, add reference to Console project (note: there's no explicit reference to Common)
When I build the unit test I get the following error:
Microsoft.Common.CurrentVersion.targets(1815, 5): [MSB3202] The project file "../../../../../../var/home/myUser/RiderProjects/JetBrainsTest/JetBrainsTest.Common/JetBrainsTest.Common.csproj" was not found.
or
CSC: Error CS0006 : Metadata file '/home/myUser/RiderProjects/JetBrainsTest/JetBrainsTest.Common/obj/Debug/net8.0/ref/JetBrainsTest.Common.dll' could not be found
I enable/disable “JetBrains Build” in the Rider build options but it still breaks
I go into my Terminal and run dotnet build and dotnet test and it works perfectly
dotnet --list-sdks returns dotnet8.0.118 [/usr/lib64/dotnet/sdk]
Please sign in to leave a comment.
Hello Andrew,
Thanks for contacting Rider support. Regarding this issue, could you try the following to help us isolate the issue:
Please let me know if the issue persists.
Thanks,
Tom
I'm encountering exactly the same problem also under Bazzite. I've got only one dotnet SDK installed and that is
9.0.304 [/var/home/bazzite/.dotnet/sdk]which got installed by Rider itself.Hello Oliver,
Could you confirm if you're using symbolic linked directory in the project? If yes, could you try to move the project to home directory and open it from there?
Let me know if this does not match your scenario. I will then investigate further.
Thanks,
Tom
Clean repo freshly cloned using Github CLI. No symbolic links. Freshly installed system.
Any update on this?
Hello Oliver,
Thanks for the additional details. In this case, I would suggest the following:
1. Go to Settings | Build, Execution, Deployment | Toolset and Build, then uncheck “Use ReShaper Build” as below:
This option disable the build optimizaiton in Rider, and shoud revert to the default behavior of msbuild.
2. If the issue continues, for better tracking, please report this issue on our bug tracker with following details:
a) The full log bundle. You can collect it via Help | Collect Logs and Diagnostic Data;
b) Complete console output that contains error message.
The ticket will be handled by a dedicated developer there. You can upvote it to indicate your interest and subscribe to further status updates.
Thanks,
Tom
Disabling
Use Resharper Buildhas zero effect. Andrew already tried that above. Quite disappointing. Bug Tracker tickets often take years to resolve.Hello Oliver,
I completely understand your frustration—no one likes waiting for fixes, especially when delays happen. While some issues indeed take a long time to resolve due to complexity or lack of resources, many are addressed much faster. Proper reporting ensures the issue gets the attention it deserves.
By logging the issue, you’ll help us track and prioritize it more effectively. I'm glad to bring this to the attention of our developer team and request them to prioritize it. Could you share the ticket link once it’s created? I’ll make sure it’s on their radar.
Regards,
Tom
OK, I know this is an old thread, but its a top search result for JetBrains Rider Bazzite, and I have found something useful.
I too was getting the error:
I came across this issue for Bazzite-dx: https://github.com/ublue-os/bazzite-dx/issues/127#issuecomment-3263772604
opening rider by using the console
rider ./path/to/mysolution.slncaused Rider to startup and load the solution, and it was able to just build as I expected. I don't know why it makes a difference, but it does.I wanted to share another workaround in this thread, since none of the suggested solutions worked on my system and I wasted a lot of time trying to find a fix.
- Open the list of your run configurations at the top (next to the Launch button), then click “Edit Configurations…” at the bottom.
- Scroll down to the “Before Launch” section.
- Remove the (single) entry that runs the build.
- Use the “+” button to add a new “Run External tool” entry.
- Enter the following information:
Name: Build
Program: dotnet
Arguments: build
- Click “OK” and save.
This setting must be changed for each project — so it’s just a workaround!
If the “dotnet” program cannot be found, simply enter the full path to the executable from the settings under “Build, Execution, Deployment” (e.g., /usr/share/local/dotnet/dotnet).
I just ran into this issue as well. I tried the workaround mentioned 2 comments above and was able to open my solution.
Thank you all for continuously sharing the workaround. This will definitely help others facing similar issues.
Since the issue disappears when launching Rider in the terminal, I suspect this might be related to environment variables loading - Rider typically loads environment variables configured in
~/.profileor~/.bash_profile(login shell), but not in interactive shell configuration files (like,~/.bashrc). If anyone can reproduce the issue, please try the following to further narrow down the issue:1. Run “dotnet --info” to confirm dotnet installation information.
2. Add PATH environment in
~/.profileor~/.bash_profileto include dotnet path. SettingDOTNET_ROOTthere may also help.If the issue persists, please report this issue on our bug tracker with the following details:
a) The full log bundle. You can collect it via Help | Collect Logs and Diagnostic Data;
b) Complete console output that contains error message.
c) Output of
dotnet --infoThis information will help us diagnose the root cause more effectively. Thanks for your cooperation!