Up DevForce Resource Center

Samples

Last modified on April 05, 2017 16:01

Our library of code samples provides you with easy-to-follow solutions to common challenges.


Common prerequisites

Many samples use the NorthwindIB database.  This is IdeaBlade's version of the well-known Northwind (and later NorthwindEF) database.  You can download it here.

Common issues

Enable NuGet Package Restore

You must enable NuGet Package Restore to build DevForce samples.  You can do so by navigating to Tools | Options | Package Manager to open the settings window.  

packagerestore0.JPG

The downloadable samples all rely on the NuGet Package Restore feature to install the necessary DevForce dependencies.

You can see that package restore is enabled for a sample by the presence of the .nuget folder in the solution:

packagerestore1.JPG

If you open the Package Manager Console you'll also see that NuGet is ready to restore packages in the solution:

packagerestore2.JPG

You can restore packages in one of two ways:

  1.  Build the solution, or
  2.  Press the Restore button as seen above.
First use:  if you have not previously installed a DevForce 2012 NuGet package or the jumpstart installer, after restoring the packages you will need to close and re-open the solution, and then open the Package Manager Console.  When the console opens it will run package initialization scripts (init.ps1); DevForce installs Visual Studio extensions and the DevForce license via an init script, and required DevForce features will not be installed if the script is not run.

Alternately, you can download and install the DevForce 2012 "jumpstart" installer from the IdeaBlade download portal.  

Error: An exception occurred during a WebClient request

You will see this error in samples which dynamically download NuGet.exe and also have multiple projects.  The error is due to a NuGet problem with concurrent download attempts.

To work around the problem:  build the solution again.  Once the executable has been downloaded the error will not recur.


Tags:
Created by DevForce on February 15, 2011 12:25

This wiki is licensed under a Creative Commons 2.0 license. XWiki Enterprise 3.2 - Documentation. Copyright © 2020 IdeaBlade