SFML community forums

Help => General => Topic started by: jynks on April 24, 2020, 12:10:05 pm

Title: I do not understand how to get SFML.NET working in VS2019 on win10?
Post by: jynks on April 24, 2020, 12:10:05 pm
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!


Title: Re: I do not understand how to get SFML.NET working in VS2019 on win10?
Post by: eXpl0it3r 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. ;)
Title: Re: I do not understand how to get SFML.NET working in VS2019 on win10?
Post by: jynks on April 25, 2020, 04:52:38 am
It's best to start a new .NET Core project

like make a console project?
Title: Re: I do not understand how to get SFML.NET working in VS2019 on win10?
Post by: eXpl0it3r on April 25, 2020, 11:17:53 am
Yes :)