Make the Silverlight XAML files play nice with your Visual Studio web app
Today I was building a web application with an embedded gallery when I hit a snag that wasted an hour of my time. The fix turned out to be simple so I decided to write it up to save you the same grief. The issue only affects developers adding a gallery to an existing website using Visual Studio. To make deployment easier, I had grabbed the compiled version of GSP and added all the files in the gs directory to a gs directory in my web application. When I compiled the project, I was met with this error: “Project file must include the .NET Framework assembly 'PresentationCore, PresentationFramework' in the reference list.” I dutifully added project references to PresentationCore.dll and PresentationFramework.dll and tried again. This time I got 84 errors, all of which had one of these two messages: “The tag 'Canvas' does not exist in XML namespace 'http://schemas.microsoft.com/client/2007'.” “Each [...]