Known issues for bundled yFiles for Silverlight demo projects

Troubleshooting

Summary

This article lists some common problems when trying to execute the Visual Studio demo projects that come bundled with yFiles for Silverlight.

Description

Building a complete solution fails sporadically with "The type or namespace name 'XXX' does not exist in the namespace 'XXX.XXX' .g.i.cs"

This is most likely caused by a bug in Visual Studio when symbolic namespaces are used (see MSDN connect bug report). Please try the following workarounds:

  • Mark the corresponding XAML file as modified, e.g. change the file modification date or perform and immediately undo a change on the file.
  • Repeatedly try to rebuild the solution - the rebuild usually succeeds after some tries.
  • In windows explorer, manually remove the obj subdirectory in the affected project directories.
  • Build each project individually.

Solution Folders are not supported in Visual Studio Express Editions prior to Visual Studio Express 2012

Opening a solution with Visual Studio Express displays a message stating that some properties could not be read

These are limitations of the Visual Studio Express Editions prior to Visual Studio Express 2012. They should not further affect yFiles for Silverlight functionality or the programming samples.

Visual Studio designer fails to open XAML files with an System.InvalidOperationException stating that some measure override returns PositiveInfinity

This is a design-time (only) issue which affects projects that use the OptionHandler from the Demo.yFiles.Option support project directly, e.g. Demo.yFiles.ImageExport. If you require designer support, you'll need to remove the OptionHandler related code from the XAML. Alternatively, you may be able to modify the Demo.yFiles.Option project itself to fix this error.

Visual Studio designer shows a license error when opening the main XAML in Demo.yFiles.Graph.Viewer

This is also a design time only problem (the license file cannot be found for some reason). This seems to affect only this specific sample, licensing works correctly at runtime.

Categories this article belongs to:
yFiles for Silverlight > Other
Applies to:
yFiles for Silverlight: 2.0, 2.1, 2.2, 2.3
Keywords:
Demo - Solution - Visual Studio - MSBuild - Visual Studio Express