Genbox / VelcroPhysics

High performance 2D collision detection system with realistic physics responses.
MIT License
666 stars 113 forks source link

Can't run HelloWorld project on VS 2017 #49

Closed HoDuyQuang closed 6 years ago

HoDuyQuang commented 6 years ago

missing2 When I open the solution, Game, Microsoft.Xna.Framework.Graphics, Microsoft.Xna.Framework.Input,... can not be resolve. Do I need install any missing library? I can't fix MonoGame.Framework reference missing in project. Please help me!

using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Inp
![missing](https://user-images.githubusercontent.com/17638038/33368832-52e03cb6-d525-11e7-9834-455b39b1dbad.PNG)
ut;
namespace VelcroPhysics.Samples.HelloWorld
{
    public class Game1 : Game
...
}

missing

Crumbler commented 6 years ago

Judging by the errors, you need to install xna framework. VelcroPhysics uses the Vector2 class from it.

Genbox commented 6 years ago

You need to install the latest version of MonoGame to use the MonoGame solution. VelcroPhysics does not depend on XNA/MonoGame. If you open the normal "VelcroPhysics.sln" solution file, you'll see that Vector2 and all the other classes that usually come from MonoGame are already there.

If you are going to use MonoGame for your application, you should use the MonoGame version since it links to the Vector2 etc. from the library, and you therefore don't have to copy between MonoGame's Vector2 and the one in VelcroPhysics.