Dec 3, 2012 at 1:27 AM
Edited Dec 3, 2012 at 1:06 PM
This is a very basic question as I am new to this and sure i am missing something simple.
Here are my steps at new project.
I add reference to the spriter.farseerhelper and farseerphysicsenginewp7
i create a couple sprites in xaml mainpage.
i'll add a button and the applyforce method from one of the sprites.
At this point i need add a reference to xna framework as to pass the Vector2 datatype required for applyforce. If i run it works great, however if I then go into Blend make any changes, and then reload back in studio it no longer works
with the error Cannot create an instance of "PhysicsSprite". Most of the xaml has is squiggled with that error.
If i remove ref. to xna and the comment the code in code behind it rebuilds with now errors.
ideas? This is just a single mainpage example but I cannot seem to get around it.
the error associated with the xaml error is
at Microsoft.Xna.Framework.Vector2.get_Zero() at Spritehand.FarseerHelper.PhysicsSprite..ctor() in C:\dev\physicshelperxaml\Spritehand.PhysicsHelper.Metro\PhysicsSprite.cs:line 844
Common Language Runtime detected an invalid program.