Random assembly references fail (“Are you missing a using directive or an assembly reference?”)

后端 未结 7 890
时光说笑
时光说笑 2020-12-15 16:52

My application has a mixture of 3.5 and 4.0-targeted assemblies. I\'m working on a new Windows service targeting 4.0 and the project suddenly seems unable to see some of th

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 17:28

    I was adding projects to a Solution that utilized .net 4.5. The projects I had added were defaulting to 4.5.1. This rendered 4.5 libraries incompatible with the new projects. I went into the properties of my new projects and had them target 4.5 instead of the default 4.5.1. After I had done that, my solution was able to build.

提交回复
热议问题