Why do I get this error ? error is: the file Asset\images\pin.png is not partof the project or its "Build Action" property is not set to "Resource"?
you right click on the pin.png and click properties you will get a property build action. Check selecting Resource.