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

Author Topic: I do not understand how to get SFML.NET working in VS2019 on win10?  (Read 1221 times)

0 Members and 1 Guest are viewing this topic.

jynks

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
I can not work out how to install SFML.net...

The download page dose not say anything about how to use the files.. the link just goes to...

https://www.nuget.org/packages/SFML.Net/

but everytime you click on a link in dependencies it takes you to another page.. there is some kind of URL you can copy.. but I have no idea what it is or how to use it.

I have found a few tutorials.. but I cna not make heads or tales fomr them, as I cnano get past step 1... downlaod SFML
Like... " Alternatively you can also get pre-compiled binaries for SFML and CSFML."... so where do you get them?

https://github.com/SFML/SFML/wiki/Tutorial%3A-SFML.Net-on-Windows
https://github.com/SFML/SFML.Net/wiki/.NET-Core-2

Thanks!



eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: I do not understand how to get SFML.NET working in VS2019 on win10?
« Reply #1 on: April 24, 2020, 01:17:14 pm »
NuGet is a central part of the .NET ecosystem. If you're not familiar with it or how to use it, I highly recommend you spend some time learning the basics. In short, it's a package manager for .NET libraries (and similar).

https://docs.microsoft.com/en-us/nuget/what-is-nuget

As for using the SFML NuGet packages.
It's best to start a new .NET Core project. (SFML.NET is still compatible with .NET framework, but it's a bit more annoying to handle, as it can't detect the CSFML dependencies correctly automatically.)
Then you open the NuGet package manager, search for SFML.Net and install it to your project.

That's it, you're ready to go. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

jynks

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: I do not understand how to get SFML.NET working in VS2019 on win10?
« Reply #2 on: April 25, 2020, 04:52:38 am »
It's best to start a new .NET Core project

like make a console project?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
Re: I do not understand how to get SFML.NET working in VS2019 on win10?
« Reply #3 on: April 25, 2020, 11:17:53 am »
Yes :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything