.NET 单击一次部署 App.config
我正在使用 VS2008 SP1 ClickOnce 部署来部署应用程序。该应用程序引用一个 Web 服务,该服务将连接详细信息存储在 app.config 文件中。例如,存储以下内容:
<client>
<endpoint address="http://someservice.com/someservice" binding="customBinding" bindingConfiguration="ServiceSoapBinding" contract="AService.AService" name="AServicePort" behaviorConfiguration="endPointBehavior"/>
</client>
我需要能够验证已部署应用程序上此端点地址的值。我可以完全访问服务器上的每个已部署文件,但没有看到对任何 app.config 条目的引用。
app.config 设置存储在已发布数据中的何处?如何访问它们?
亲切的问候,
F。
I am using VS2008 SP1 ClickOnce Deployment to deploy an application. The application references a web service which stores connection details in the app.config file. For example, the following is stored:
<client>
<endpoint address="http://someservice.com/someservice" binding="customBinding" bindingConfiguration="ServiceSoapBinding" contract="AService.AService" name="AServicePort" behaviorConfiguration="endPointBehavior"/>
</client>
I need to be able to verify the value of this end point address on the deployed application. I have full access each of the deployed files on the server but I don't see a reference to any of the app.config entries.
Where are app.config settings stored in the published data and how can I access them?
Kind Regards,
F.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来源
它的名称是
app.exe.config.deploy< /code> 及其位于您在版本文件夹下的 Application Files 文件夹下部署的顶部文件夹中。
例如,如果您的应用程序部署到“
C:\App
”,那么它将位于“C:\App\Application Files\DirectoryPerVersion\ProjectName.exe.config.deploy”
Source
It's name is
app.exe.config.deploy
and its located in the top folder where you deploy under the Application Files folder under the version folder.For example if your app is deployed to "
C:\App
" then it will be located on "C:\App\Application Files\DirectoryPerVersion\ProjectName.exe.config.deploy
"