Error in reference in C #

0

I'm having this error, does anyone know what it is?

  

Warning 1 The primary reference "C: \ Users \ Denilson \ Documents \ Visual Studio 2013 \ Projects \ SystemEmpillers \ Stackers.DTO \ bin \ Debug \ Stackers.DTO.dll" could not be resolved because it was built against the ".NETFramework, Version = v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework, Version = v4.0". Forklifts.DAO

     

Warning 2 The referenced project 'Forklifts.DTO' is targeting a higher framework version (4.5) than this project's current target framework version (4.0). This may lead to build failures if types from assemblies outside this project's target framework are used by any project in the dependency chain. Forklifts.DAO

    
asked by anonymous 17.02.2015 / 01:42

2 answers

0
  • Right click on the project "Forklifts.DTO"
  • Properties
  • Choose the "Application" tab
  • Under "Target framework", choose ".NET Framework 4.0"
  • Alternatively, you can perform the same steps to change the "Forklifts.DAO" project framework to 4.5

        
    17.02.2015 / 10:27
    2

    You are probably referencing a DLL that uses Framework .Net 4.5 while in your project it uses a version of .Net smaller than 4.0.

      

    This is a higher version than the currently targeted framework ".NETFramework, Version = v4.0

        
    17.02.2015 / 01:55