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

Author Topic: Embedding SFML into C#?  (Read 2871 times)

0 Members and 1 Guest are viewing this topic.

vipar

  • Newbie
  • *
  • Posts: 23
    • View Profile
Embedding SFML into C#?
« on: May 24, 2013, 08:26:32 pm »
In C++ you can embed the Static Libraries into the application so you don't have to include them separately every time you make a new project in the output folder.

Is it possible to do the same in C#?

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Embedding SFML into C#?
« Reply #1 on: May 24, 2013, 09:46:20 pm »
Not with just plain visual studio, but there is programs out there (google ".net static linking") that can wrap all managed dlls into one exe. However I am not sure if they are capable of embedding the unmanaged libraries of CSFML.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

vipar

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Embedding SFML into C#?
« Reply #2 on: May 24, 2013, 09:47:08 pm »
Hmm alright.

Would be so handy though =.=

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Embedding SFML into C#?
« Reply #3 on: May 24, 2013, 09:58:49 pm »
What's the problem with distributing a few more files with your application?
Laurent Gomila - SFML developer

vipar

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Embedding SFML into C#?
« Reply #4 on: May 24, 2013, 10:04:51 pm »
Oh I was just interested to know really.

The less the user needs to do the better :3

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Embedding SFML into C#?
« Reply #5 on: May 24, 2013, 10:45:48 pm »
Users don't have to do anything, it's just that your application will contain N + 6 files instead of N. I don't see how this is less "handy" or "more work for users" ;)
Laurent Gomila - SFML developer

vipar

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Embedding SFML into C#?
« Reply #6 on: May 24, 2013, 10:46:30 pm »
Because I am silly.

 

anything