VS2015 C# interactive: error CS7069: Reference to type 'Object' claims it is defined in 'System.Runtime', but it could not be found

前端 未结 1 1139
刺人心
刺人心 2021-01-18 03:05

I just updated to VS2015 Update 2, and started playing around with the C# interactive window. I wanted to use a static method in a static class in one of my .NET 4.0 targete

1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-18 03:32

    What ultimately fixed it for me was entering this right in the C# Interactive window.:

    #r "System.Runtime"

    If there's anyone that can provide a thorough background explanation as to why this worked, I'd love to give you the accepted answer. I just got lucky.

    0 讨论(0)
提交回复
热议问题