简体   繁体   English

WCF Ria服务程序集问题

[英]WCF Ria Services assemblies problem

I have problem with WCF Ria Services libraries. 我对WCF Ria Services库有问题。 I want my project to use assemblies of RIA Services locally in my Lib folder where all external referenced assemblies are. 我希望我的项目在所有外部引用程序集所在的Lib文件夹中本地使用RIA Services程序集。 I don't want to be dependent on installation of the services. 我不想依赖于服务的安装。 And in my opinion it is better for later updates of the services. 我认为最好在以后更新服务。

I've found assemblies that my app is referenced to, put them in my lib folder, then deleted references from my csproj, and changed it to the assembly in my lib folder. 我找到了我的应用程序所引用的程序集,将它们放在我的lib文件夹中,然后从csproj中删除了引用,并将其更改为我的lib文件夹中的程序集。 The problem is that in properties window of the changed reference it did't change the location to file. 问题在于,在更改后的引用的属性窗口中,它没有更改文件的位置。 I tried to change it several times but after change it shows 我尝试过几次更改,但更改后显示

"C:\\Program Files (x86)\\Microsoft SDKs\\RIA Services\\v1.0\\Libraries\\Silverlight\\System.ServiceModel.DomainServices.Client.dll", “ C:\\ Program Files(x86)\\ Microsoft SDKs \\ RIA Services \\ v1.0 \\ Libraries \\ Silverlight \\ System.ServiceModel.DomainServices.Client.dll”,

but I changed the path to 但是我改变了路径

"D:\\Work\\MyProj\\Libs\\System.ServiceModel.DomainServices.Client.dll" “ D:\\ Work \\ MyProj \\ Libs \\ System.ServiceModel.DomainServices.Client.dll”

Why this is happening? 为什么会这样呢?

If you open up your .csproj file so that you can see the XML (unload the project and click on edit). 如果打开.csproj文件,以便可以看到XML(卸载项目并单击“编辑”)。

For the references to the WCF RIA dlls check that you have a to where you have placed the dlls. 对于WCF RIA dll的引用,请检查您是否已放置dll。

When you have ensured that the paths to the dlls are where you want reload the project. 当您确保dll的路径是您要重新加载项目的位置时。 In the references highlight one of the dlls and look at the location in its properties, it should agree. 在参考中突出显示一个dll,并查看其属性中的位置,应该同意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM