Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# Entity Framework with ASP.NET MVC Project Setup Adding the Class Library Project

Damien Bactawar
Damien Bactawar
8,549 Points

".NETFramework,Version=v4.7.2" framework. This is a higher version than ".NETFramework,Version=v4.6.1"

I got a warning when trying to run app -

The primary reference "C:...\ComicBookShared.dll" could not be resolved because it was built against the ".NETFramework,Version=v4.7.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.6.1". ComicBookLibraryManager.

1 Answer

Damien Bactawar
Damien Bactawar
8,549 Points

FIXED - Okay I found a solution. I created a new console app and copied the class files. I made sure the app config file was configured properly, installed EF for both projects, etc. The app runs fine.