Your project is not referencing the ".NETFramework,Version=4.5" framework


          在VS2017之前工程文件切換版本一般情況是沒有什么錯誤的,但是今天在VS2017上進行了一次切換直接報錯了:

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

        仔細確認了下,也僅是更改了這塊設置,其它地方沒動啊

 

 

           后來度娘了下,直接刪除工程文件下的obj文件就可以了。以下是原文:

 

          

 

 

 

 

   

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM