Upgrading from CSLA .NET 2.0 (VS 2005) to the latest stable release (VS 2013)

Upgrading from CSLA .NET 2.0 (VS 2005) to the latest stable release (VS 2013)

Old forum URL: forums.lhotka.net/forums/t/12211.aspx


tarekahf posted on Sunday, November 10, 2013

I have a solution with several projects developed using VS 2005 and CSLA .NET 2.0.

We are now planning to upgrade to VS 2013 and use latest stable release of CSLA .NET 4.x.

Questions:

1. Is this as simple as convert the solution and source code from VS 2005 to VS 2013, remove the old reference to CSLA .NET 2.0 DLL and add the latest CSLA .NET DLL reference?

2. Will be there any breaking changes if I replace "csla.dll" reference with the latest release?

3. Could you point me to any document which has details/instructions related to this upgrade?

Appreciate your help.

Tarek.

JonnyBee replied on Sunday, November 10, 2013

Hi, 

If you are thinking of moving to the latest version of CSLA .NET (4.5x) then you have a long and winding road ahead of you.

On the other hand - you should be able to migrate the solution from VS 2005 to VS 2013 and continue to target .NET 2.0 (or up to .NET 3.5) and still use the old reference assemblies. 

As for breaking changes you must study the Change log from the version you are currently using to the one you want to target. The change log is available on the download pages: http://www.lhotka.net/cslanet/download.aspx

 

Awais replied on Wednesday, February 05, 2014

Hi-

in Reference to the post made by tarekahf, I am trying to migrate the same project to Visual Studio 2013, and It gives me following errors & warnings and the CSLAIDB.Library failed to load. Appreciate your help to be able to open this class library project using Visual Studio 2013.

 

Solution CSLAIDB.Library\CSLAIDB.Library.vbproj 1 0 0

CSLAIDB.Library CSLAIDB.Library\CSLAIDB.Library.vbproj 0 4 178

 

Solution

Message

CSLAIDB.Library\CSLAIDB.Library.vbproj: The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. D:\VS2013\Projects\webapp\CSLA.NET\CSLAIDB\CSLAIDB.Library\CSLAIDB.Library.vbproj

CSLAIDB.Library

Message

CSLAIDB.Library\CSLAIDB.Library.vbproj: Visual Studio needs to make non-functional changes to this project in order to enable the project to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without impacting project behavior.

CSLAIDB.Library\CSLAIDB.Library.vbproj: Visual Studio needs to make non-functional changes to this project in order to enable the project to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without impacting project behavior.

CSLAIDB.Library\CSLAIDB.Library.vbproj: Your project is targeting .NET Framework 2.0 or 3.0. If your project uses assemblies requiring a newer .NET Framework, your project will fail to build. You can change the .NET Framework version by clicking Properties on the project menu and then selecting a new version in the '.NET Framework' dropdown box. (In Visual Basic, this is located on the Compile tab by clicking the 'Advanced Compiler Options...' button.)

CSLAIDB.Library\CSLAIDB.Library.vbproj: Visual Studio has made non-functional changes to this project in order to enable the project to open in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without impacting project behavior.

tarekahf replied on Wednesday, February 05, 2014

Hi Awais,

On my machine, I just modified the Project File at this line as follows:

  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v12.0\WebApplications\Microsoft.WebApplication.targets" />

and the project loaded successfully, and the entire solution was compiled without any error.
I hope it will run without any error in the production server.
Tarek

Awais replied on Thursday, February 06, 2014

Thanks Tarek, that worked !

 

tarekahf replied on Friday, February 07, 2014

Awais, please create another virtual website on your laptop for the same project after its was compiled under VS 2013.

Tarek

Copyright (c) Marimer LLC