-
I referenced a dll in VS, it seems fine when i was coding, but I got an error said "system can't find the file" when I tried to run the game. And then I draged that dll into Stride, it became a .sdraw file and I still can't reference it yet. Is nuget the only way to reference code? |
Beta Was this translation helpful? Give feedback.
Answered by
EsatMan
Jun 26, 2024
Replies: 1 comment 1 reply
-
This is likely a .NET setting instead of being something in Stride specific. In VS there should be a properties section of the file, can you make sure the DLL is being added to the bin on build? something like the below may work:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for reply, I found the solution after a little test. I only referenced the dll in XXX.Game project but not XXX.Windows project, and when I copied the definitions to the .csproj of XXX.Windows, the game runs normally. It's a bit confusing that I had to deal dependencies manually in every project but it will do the job.