The reference assemblies for framework “.NETFramework,Version=v4.6.2” were not found

后端 未结 7 1458
情深已故
情深已故 2020-12-13 17:03

When trying to compile a solution, I get the following build error:

Error MSB3644 The reference assemblies for framework \".NETFramework,Version=v4.

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 17:09

    I was getting the exact same error when building except it was for ".NETFramework,Version=v4.7.1".

    I downloaded the Developer pack for 4.7.1 from here: https://www.microsoft.com/en-us/download/confirmation.aspx?id=56119

    The pack installed these programs on the target machine (my build server).

    • Microsoft .NET Framework 4.7.1 SDK
    • Microsoft .NET Framework 4.7.1 Targeting Pack
    • Microsoft .NET Framework 4.7.1 Targeting Pack (ENU)

    When I tried building again, I didn't get the error anymore and the build succeeded.

提交回复
热议问题