日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) >

Windows服务无法引用.dll的错误

發(fā)布時(shí)間:2025/3/15 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Windows服务无法引用.dll的错误 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

項(xiàng)目中需要使用.NET開發(fā)Windows服務(wù)來(lái)檢測(cè)MSMQ,但一直無(wú)法引用.dll(特別是.dll引用了其它的.dll),最后google找到了答案:

  • Every window service project, by default targets to .netClient version (which is not full version of .net and does not include the System.Web etc. This is atleast true with VS 2010) and the solution is to go to the project properties of Windows service and update the target frame work to .netFramework 4, instead of .net framework 4 client profile that should make your windows service to recognize your model project

轉(zhuǎn)載于:https://www.cnblogs.com/bearhb/archive/2012/12/19/2825027.html

創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)

總結(jié)

以上是生活随笔為你收集整理的Windows服务无法引用.dll的错误的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。