Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML.net 2.5 dll's? Where do I get them? (solved)  (Read 9122 times)

0 Members and 1 Guest are viewing this topic.

Eldalote

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
SFML.net 2.5 dll's? Where do I get them? (solved)
« on: March 23, 2019, 02:20:21 pm »
Hi,

I'm fairly new to SFML (and programming), tried the base C++ a bit, liked it very much, and wanted to try the C# version.
The problem I'm running in to, is that I can't seem to find the DLL's I need.

I added the NuGet package, and wrote my program, but on execution I get an Error that they can't find the dll's.
From google I find several answers telling me to copy the dll's from the lib folder of the files I downloaded... But I didn't download any files! For 2.4 and older versions there is a file with dll's I can download, but for 2.5 there is only the NuGet package, and the source code that I can find.
Am I missing something obvious?
Thanks for your help in advance!
« Last Edit: March 25, 2019, 11:37:52 am by Eldalote »

Gleade

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: SFML.net 2.5 dll's? Where do I get them?
« Reply #1 on: March 25, 2019, 04:37:21 am »
You need to download the C binaries for SFML 2.4 and place them in the same folder as the .NET libraries (where your *.exe is located in the bin directory).
« Last Edit: March 26, 2019, 07:19:53 am by Gleade »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: SFML.net 2.5 dll's? Where do I get them?
« Reply #2 on: March 25, 2019, 06:45:12 am »
No, you don't. With the latest NuGet package, we have created a CSFML package that the SFML.NET package depends on.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Eldalote

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: SFML.net 2.5 dll's? Where do I get them?
« Reply #3 on: March 25, 2019, 08:16:00 am »
No, you don't. With the latest NuGet package, we have created a CSFML package that the SFML.NET package depends on.

So.. I don't need to copy any DLL's? Is there another reason I'm getting an DLL not found error then?
I dont really follow...



Eddit:  Added example of what I'm talking about.
« Last Edit: March 25, 2019, 08:33:13 am by Eldalote »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: SFML.net 2.5 dll's? Where do I get them?
« Reply #4 on: March 25, 2019, 09:54:04 am »
Works fine for me. How does your dependency graph look like?



Have you run a NuGet restore?

Also, what compiler settings did you pick?

Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Eldalote

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: SFML.net 2.5 dll's? Where do I get them?
« Reply #5 on: March 25, 2019, 11:15:46 am »
So, apparently I've missed some tutorial on setting a new project up or something. Am I blind, or isn't there one?

Sor me the side looks just like the attachment. No dependencies menu.

I just did:  File->New project -> Console app(.net framework) in visual studio. Then added the SFML.net package with NuGet.
This looked like it worked, because I could just start using the SFML parts, and it compiles fine. Just errors on runtime.

I'm sorry if this is just a complete newby question, and there is some tutorial explaining how to do this that I somehow missed, I'm just very new at this. (I have a background as an Electrical engineer, with mostly embedded C programming, and as a hobby I'm trying to get into desktop programming, and I wanted to make a simple game)
« Last Edit: March 25, 2019, 11:17:27 am by Eldalote »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: SFML.net 2.5 dll's? Where do I get them?
« Reply #6 on: March 25, 2019, 11:18:53 am »
Ah, maybe that's the issue then. With SFML.Net 2.5 we switch from .Net Framework to .Net Standard, as such you'll need to create a .Net Core Console application - if you haven't you'll need to install the .Net Core SDK.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Eldalote

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: SFML.net 2.5 dll's? Where do I get them?
« Reply #7 on: March 25, 2019, 11:36:46 am »
Thank you very much!
It was that simple!

Gleade

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: SFML.net 2.5 dll's? Where do I get them?
« Reply #8 on: March 26, 2019, 07:18:49 am »
No, you don't. With the latest NuGet package, we have created a CSFML package that the SFML.NET package depends on.

Side note: I thought Eldalote was reffering to SFML .NET 2.4. Might have had something to do with his modification to his original post.

So, apparently I've missed some tutorial on setting a new project up or something. Am I blind, or isn't there one?

There isn't much outside of the github repo.
« Last Edit: March 26, 2019, 07:22:21 am by Gleade »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: SFML.net 2.5 dll's? Where do I get them? (solved)
« Reply #9 on: March 26, 2019, 08:32:03 am »
Thank you very much!
It was that simple!
Great to hear that, that was the issue.

Side note: I thought Eldalote was reffering to SFML .NET 2.4. Might have had something to do with his modification to his original post.
No worries :)

There isn't much outside of the github repo.
I agree that some more documentation would be nice. The SFML.Net repo has a community Wiki or one could potentially add something to the website.
So if anyone has some spare time and feels like contributing, we'd happy to receive it! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/