如何使本地主机端口静态? [英] How do I make the localhost Port static?

查看:113
本文介绍了如何使本地主机端口静态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在评估LightSwitch,以构建用于SL应用程序的管理模块.我们正在使用SL 4,WCF RIA服务,PRISM,而我的目标是使用PRISM将LightSwitch应用集成到我们现有的SL应用中.

I'm evaluating LightSwitch to build our Administration Module for a SL App.  We are using SL 4, WCF RIA Services, PRISM and my goal is intergrate the LightSwitch App into our existing SL App using PRISM.

我需要使端口静态,因此在Cassini中进行开发时,LightSwitch XAP将在运行时下载.我不想部署到本地IIS.我宁愿将所有我的网站都保留在Cassini中,并为其分配静态端口. 我打开了ServerGenerated.csproj文件并设置了AutoAssignPort = False,但这没有用.

I need to make the port static so when developing in Cassini, the LightSwitch XAP will get downloaded at runtime.  I don't want to have to deploy to locall IIS. I would rather keep all my Web Sites in Cassini with Static Ports assigned.  I opened the ServerGenerated.csproj File and set the AutoAssignPort=False, but that did not work.

 

谢谢

Devaron

 

推荐答案

我不确定卡西尼号能否正常工作.但是,如果这样做的话,我可能会在每个周期仅将其本地部署到IIS7.将卡西尼(cassini)网站指向IIS站点的目录.因此,cassini VDIR将指向IIS部署的物理路径. 我认为您在这项要求上步履维艰.相反,我将对所有内容使用IIS,并找到一种使之工作的方法.
I am not sure cassini will work. But if it does, I might just deploy locally to IIS7 at each cycle.  Have a cassini web site point to the dir of the IIS site.  So cassini VDIR will point to physical path of IIS deployment.  In the end, I think your running uphill on that requirement.  I would instead using IIS for everything and figure a way to make that work.


这篇关于如何使本地主机端口静态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆