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

Author Topic: Help Setting Up SFML.NET with Visual Studio 2013 C#  (Read 4202 times)

0 Members and 1 Guest are viewing this topic.

PhysicsManUK

  • Newbie
  • *
  • Posts: 9
    • View Profile
Help Setting Up SFML.NET with Visual Studio 2013 C#
« on: March 05, 2014, 11:02:47 pm »
Hi, at the moment I am looking at making the transition from C++ to C# for my particle simulation programs as I will be able to use the .NET Framework using Windows Forms Applications and such. So currently I am just trying to get SFML working in VS 2013 in C#.

I have created an empty project (SFMLTest) just to see how I can use SFML in VC# and I am following the advice given in this thread:

http://en.sfml-dev.org/forums/index.php?topic=7674.0

Thus far I have added the relevant resources; sfmlnet-audio.dll, sfmlnet-graphics.dll and sfmlnet-window.dll from SFML’s lib folder. However when I try to use "Add Existing Item" from project directory in Solution Explorer and add the CSFML dlls, the extlibs folder has no matching items so I can't progress from there.

Any help is very much appreciated, thanks.

P.S: I assume the procedure for allowing your C# project to utilise SFML is the same when you create a Windows Forms Application or a WPF project?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Help Setting Up SFML.NET with Visual Studio 2013 C#
« Reply #1 on: March 06, 2014, 02:29:06 am »
This will probably make you do a facepalm, but by default "Add Existing Item" has a filter set to only C# related files. You need to select in the drop down list (directly above the "Add" button) "Executable Files" in order to view the CSFML dlls.

And yes the same applies to a WinForms application and even to the setup when using a WPF project. Just bear in mind using SFML within a WPF window is very tricky to do right (yes I have done it  ::)). I would recommend that you just stick to plain old WinForms.  ;)

On a side note, if you are familiar with Thor I have written a C# port of it (see my signature) in my NetEXT library. It has several different modules that may help get you going  :)
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

PhysicsManUK

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Help Setting Up SFML.NET with Visual Studio 2013 C#
« Reply #2 on: March 06, 2014, 01:33:16 pm »
Oh dear, how embarrassing, I should've noticed that.

Anyway, thank you for the help, much appreciated  :)

 

anything