C
C#7mo ago
El Laggron

Rider cannot build imported project, but dotnet CLI can

Hello! I have written a standalone ASP.NET project that is meant to be imported to an existing solution and import code from there. For this, I use the Add > "Existing Project" button on Rider, then Add > Reference. But when I run the project, this happens
/home/laggron/Documents/prog-104-p-04-2028/assets/ShowdownServer/bin/Debug/net7.0/ShowdownServer
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'SmurfShowdown, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'SmurfShowdown, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

Process finished with exit code 134.
/home/laggron/Documents/prog-104-p-04-2028/assets/ShowdownServer/bin/Debug/net7.0/ShowdownServer
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'SmurfShowdown, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'SmurfShowdown, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

Process finished with exit code 134.
ShowdownServer is the imported project, and SmurfShowdown is the existing project that is referenced. The weird thing is that, if I use dotnet build instead of letting Rider do it, it works, I can even run it from Rider. Only building from Rider results in this error. Does anyone have an idea of what this could be due to?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server