下午利用vs2010创建控制台应用程序的时候,引用dll,但是一旦编译总是提示不能通过,缺少程序引用。
然后找到如下url,修改项目属性的目标框架:当前项目的“目标框架”是“.Net Framework 4 Client Profile“,
修改为“.Net Framework 4”,然后编译通过。
详细参考:
http://www.cnblogs.com/StoneGarden/archive/2011/08/19/2145749.html