Build error while transitioning between branches: Your project is not referencing the “.NETFramework,Version=v4.7.2” framework

前端 未结 8 1197
暗喜
暗喜 2021-02-01 12:40

We\'re using Git and we have a solution which is targeting the full net framework. A couple of days ago, I\'ve started migrating the solution to .net core. Unfortunately, someth

8条回答
  •  一整个雨季
    2021-02-01 13:27

    MaxJ's answer came close for my situation, but I had to delete bin and obj folders for every project in the solution when doing so in the single project that wouldn't build didn't fix the build.

    For convenience, the PS I used for the above which should only be run at the root of a folder that you don't mind deleting these folders in (in Front End node modules might be a bad place for example):

    gci -Include bin,obj -Recurse | Remove-Item -Force -Recurse
    

提交回复
热议问题