Your project does not reference “.NETFramework,Version=v4.7.2” framework. Add a reference to “.NETFramework,Version=v4.7.2” in the “TargetFrameworks” property of your project file and then re-run NuGet restore.

Recently, I found an error when I try to building the application that I worked for. So I started to add some post to collect the error I found and solved to save my day later on.

For this error, to solve the problem is clean/remove
project.assets.json in [obj] folder and try to rebuild the application again.

Original Link: https://developercommunity.visualstudio.com/content/problem/317628/your-project-does-not-reference-netframeworkversio.html

(Visited 671 times, 1 visits today)

1 Comment

  1. Werner van Niekerk May 16, 2019 at 11:48 am

    Thanks! This saved me a lot of time today

    Reply

Leave A Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.