The primary reference could not be resolved because it was built against a higher version of the .NET framework than the currently targeted framework

前端 未结 2 523
感情败类
感情败类 2021-02-12 13:11

I am trying to build a project that references a 3rd party SlingshotClient.dll. The project builds fine on other developers workstations. However, I am getting the error below.

2条回答
  •  抹茶落季
    2021-02-12 13:35

    As a workaround, you can add the following to your .csproj file within the element.

    
    true
    
    

    Be aware that while this does make the compilation errors go away, those errors are there for a reason and ignoring them blatantly can absolutely cause issues when the binary you are referencing tries to perform code that does not work on your lower version of .NET.

    Reference

提交回复
热议问题