解決VS2022 Your project does not reference... Add a reference to ... property of your project file and then re-run NuGet restore.
代碼換了臺電腦,一直提示”
Microsoft Visual Studio\MSBuild\Microsoft\NuGet\17.0\Microsoft.NuGet.targets(198,5): error : Your project does not reference ".NETFramework,Version=v4.8" framework. Add a reference to ".NETFramework,Version=v4.8" in the "TargetFrameworks" property of your project file and then re-run NuGet restore.
“,,,不知原因。
解決:刪除OBJ目錄,重新編譯,OK。
參考 : https://blog.csdn.net/jiushidt/article/details/128333808

浙公網安備 33010602011771號