Please help solve the problem.

Warning 1 Cannot resolve the main link "D: \ diploma1 \ Transport task \ Transport task \ MyLibrary \ bin \ Debug \ MyLibrary.dll" because it was built for the platform ".NETFramework, Version = v4.5". This is a later version compared to the current target platform ".NETFramework, Version = v3.5". lab1

What is it about?

  • Probably a library and main program with different versions of Visual Studio compiled? - VladD
  • Maybe this is due to the fact that I work VisualStudio 2012, and I have MSSQL 2008 - RAIHAN

2 answers 2

This means that you created a project in C # that uses the .NET-Framework version 3.5, and the library was compiled using .NET 4.5 and, accordingly, can try to use functions inherent in this version of the framework.

Due to the fact that you are working in VisualStudio 2012, and your MSSQL doesn't play any role in 2008. Do not mix different things in a bunch.

Either compile the library under 3.5 or switch your project in the project properties to version 4.5.

    The only thing that can be seen is the platform conflict. What do you write, at what studio, what kind of do you have?

    try reading here

    • Maybe this is due to the fact that I work VisualStudio 2012, and I have MSSQL 2008 - RAIHAN