Git Product home page Git Product logo

Comments (10)

Thraka avatar Thraka commented on May 18, 2024

Not sure exactly how you're doing it. Was it these directions (step 4 important note) that you followed?

EDIT: Also, what type of project are you creating in Visual Studio?

from sadconsole.

sbowman avatar sbowman commented on May 18, 2024

Was working from that page. Deleted my project and started fresh, just to make sure I didn't skip any steps.

  • Created a Visual C#, Windows Classic Desktop, Empty Project (.NET Framework)
  • Selected "Manage NuGet Packages...", "Browse", and installed SadConsole 6.0.1
  • Then searched for "MonoGame" and selected MonoGame.Framework.DesktopGL 3.6.0.1625
  • Clicked on your download link, downloaded SDL2.dll, and copied it to the same directory as the fonts, program-example.cs, etc.
  • Right clicked on the project, then select Add > Reference
  • Clicked "Browse" then "Browse" button and selected the SDL2.dll file
  • Clicked "Add"
  • Got this dialog:

image

Earlier today I also tried the 64-bit DLL from the SDL2 project, but that had the same results.

Edit: event tried rebooting my laptop

from sadconsole.

sbowman avatar sbowman commented on May 18, 2024

I also noticed VS 2017 defaults to .NET Framework 4.5.2. Is this not the correct .NET Framework version?

from sadconsole.

sbowman avatar sbowman commented on May 18, 2024

Installed MonoGame 3.6 using the installer, then created a new MonoGame project using DesktopGL. Everything worked fine running the basic MonoGame template (it automatically included the SDL2.dll in its project template). Tried using the SDL2.dll from that in my SadConsole project, but got the same error message.

from sadconsole.

Thraka avatar Thraka commented on May 18, 2024

OH WAIT... man I think my steps are wrong. You add it to your project as a FILE, not a reference. then you set it to COPY TO OUTPUT. argg! :) I wish MonoGame would have just included it in the nuget package.

from sadconsole.

Thraka avatar Thraka commented on May 18, 2024

Sorry about that. doh!

from sadconsole.

Thraka avatar Thraka commented on May 18, 2024

I just updated the wiki article.

from sadconsole.

Thraka avatar Thraka commented on May 18, 2024

Oh and about 4.5.2, it does't really matter, the difference for 4.6 really only matters if you're creating a universal app and thus can use .NET Native. Otherwise the differences between 4.5 and 4.6 aren't important (in my opinion 😄)

from sadconsole.

sbowman avatar sbowman commented on May 18, 2024

Thanks for all this. Wasn't able to get to it until tonight, but I wanted to let you know (a) it worked, and (b) how appreciative I am.

from sadconsole.

Thraka avatar Thraka commented on May 18, 2024

Thanks for helping me find the error in the important startup article!!

from sadconsole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.