Why Does VS2010 “Lose” my reference on build?

后端 未结 2 1197
予麋鹿
予麋鹿 2021-02-18 22:16

I\'ve developed a class library that does stuff, and tested it with unit tests. The library and tests build and work fine. I then added in a Windows Service project to the solut

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-18 23:18

    Turns out, if you show the Warnings in the Build window, it tells you why :) Doh.

    Service projects default to "Framework 4 Client Profile" now, and that is a sub-set of Framework 4 which means no linking to anything else other than that. Changed the project type to Framework 4 and all is good.

提交回复
热议问题