Up Migrating from DevForce 2010
DevForce Resource Center » Getting started » DevForce » Migrating from DevForce 2010 » Side-by-side DevForce 2010 installation

Side-by-side DevForce 2010 installation

Last modified on November 08, 2017 13:30

As of DevForce 2010 version 6.1.9, and DevForce 2012 version 7.0.2, you may have both products installed on the same computer.  

DevForce 2012 is now known simply as "DevForce".


General

DevForce 2010 may be installed to either (or both) Visual Studio 2010 or Visual Studio 2012.  In either case, DevForce 2010 is specifically designed for .NET 4.0 development.  If you use DevForce 2010 with VS 2012, the DevForce project templates, and the EDM extension, can be used only when a project targets .NET Framework 4.

Project templates

In Visual Studio 2012, when you create a new project, you'll see both DevForce 2010 and DevForce 2012 nodes in the "New Project" dialog.

DevForce 2010 templates will be visible when you choose .NET Framework 4.  

DevForce 2012 templates will be visible when you choose .NET Framework 4.5.

DevForce EDM Extension

When you create a new EDMX-based model, or open an existing one, you'll see messages in the DevForce output pane which indicate whether the DevForce 2010 or 2012 EDM extension is in use.

For example, when opening a .NET 4 model:

df2010edmx.JPG

.. and when opening a .NET 4.5 model:

df2012edmx.JPG

The DevForce 2010 extension will be used for .NET 4.0 projects, while the DevForce 2012 extension will be used with .NET 4.5 projects.

Code First

The DevForce 2010 Code First NuGet package should be used with DevForce 2010.  This package requires that DevForce 2010 is already installed, and can be installed to Silverlight 4, Silverlight 5, and .NET 4.0 projects.  

A separate package, DevForce 2012 Code First, is used with DevForce 2012.  This package can be installed to Silverlight 5 and .NET 4.5 projects.

cfpackages.JPG   

Troubleshooting

  • Add Reference dialog
    DevForce 2010 assemblies are placed in the Global Assembly Cache (GAC).  These assemblies are also what you will see when you open the Reference Manager dialog to add assembly references:

addref.JPG

When you're working in a DevForce 2012 project you'll need to be aware of this:  do not add assembly references to DevForce 2010 assemblies, as you can't "mix and match" the DevForce versions.  When working in DevForce 2012, use the NuGet packages to obtain the necessary DevForce dependencies.

  • Web projects

After adding the DevForce Server NuGet package to a web application project, check the IdeaBlade.EntityModel.Web assembly reference.   When DevForce 2010 is installed, this assembly will be in the GAC and the package will not attempt to replace the existing assembly reference.  You should remove the assembly reference, and add a reference to the assembly in the packages folder:  ..\packages\IdeaBlade.DevForce.Server.7.x.y\tools\lib\net45.



 

Created by DevForce on November 03, 2012 17:05

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