SFML community forums

Bindings - other languages => DotNet => Topic started by: Paul on March 02, 2020, 04:44:07 pm

Title: New project from scratch (VS 2019)
Post by: Paul on March 02, 2020, 04:44:07 pm
I don't like automated repo packages like NuGet much, it can be old etc.

Then I did this:
1) Download SFML NET and CSFML packages from https://www.sfml-dev.org/
- remove "-2" from CSFML*-2.dll filenames

2) New project in VS 2019 - Console App (.NET Core)

3) Add CSFML dll's to project
- right click on "Project name" in Solution Explorer
- add/Existing files - select CSFML*.dll files and openal32.dll
- select these dll's and in Solution Explorer + right click on "Properties"
- select "Copy if newer" in "Copy to output directory"

4) Use SFML NET source files
- right click on "Solution" in Solution Explorer
- add/Existing Project../ and add all System/Window/.. *.csproj SFML NET 2.5 directory
- right click on "Project" in Solution Explorer/Add/Reference../Projects/ select all SFML.* projects

It works but there is still NuGet SFML Net package thanks to added projects in solution. In output it generate "runtimes" folder with libraries. Is there any way how to get rid NuGet package of it?

Edit:

Because step 4. creates various strange things, is better add reference to SFML dll's instead. Not sure if there is any difference between lib builds (debug and realease), whereas it is just an interface.
Title: Re: New project from scratch (VS 2019)
Post by: 8Observer8 on June 16, 2020, 03:27:17 pm
Check my instruction: https://en.sfml-dev.org/forums/index.php?topic=21248.msg173526#msg173526