Developer forum

Forum » CMS - Standard features » version 8.4.1.19 (stable)

version 8.4.1.19 (stable)

Kevin O''Driscoll
Reply

We start a new project today ;-) using version 8.4.1.19 (stable). I see a few changes with additional .dlls. So I ran up a new install and created a VS Solution with 2 projects and all is good as a basic install running on .Net Framework 4 as normal. Now I wanted to add a class library to my solution because we will be handling some web services and some outboard data bases too. We need some DW .dll references which are referenced directly from the Application bin folder. So now my solution wont build, problem is my new library (running on Framework 4):

using Dynamicweb;

Error    31    The type or namespace name 'Dynamicweb' could not be found (are you missing a using directive or an assembly reference?)    C:\Projects\Medilink\MedilinkWeb.Library\Data\SqlData.cs    1    7    MedilinkWeb.Library


Warning    15    The primary reference "Dynamicweb" could not be resolved because it was built against the ".NETFramework,Version=v4.5.1" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".    MedilinkWeb.Library


Warning    16    The primary reference "Dynamicweb" could not be resolved because it has an indirect dependency on the assembly "Dynamicweb.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" which was built against the ".NETFramework,Version=v4.5.1" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.0".    MedilinkWeb.Library

So I physically copy all (about 14 dlls) to my library bin folder and include in project - still the same.

So I change the Library Target framework to 4.5.1 in the Library - and all is good. I delete all the .dlls from the library bin folder - all is good (dlls seem to be re-created?)

So what has changed in this version re Framework target 4.5.1? What is your best advice? running the solution with some projects in 4 and others in 4.5.1 - Should I be worried? (Upgrades etc)

 

 


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Kevin

Since 8.3 Dynamicweb has been compiled with 4.5.1 and you should do the same, see release notes. Make sure you install that .NET version on you machine and the server.

When the code is compiled, it is all compiled to .net clr version 4, so wether it is compiled with the v4 or v4.5.1 gives the same clr. But, you still need the 4.5.1 installed because it contains changes required.

All projects in your solution should target 4.5.1

Nicolai

Votes for this answer: 1
 
Kevin O''Driscoll
Reply

Thanks very much Nicoli, makes sense.

 

You must be logged in to post in the forum