网站的解决方案,打开后未显示虚拟路径(http://localhost)

木易十三 2010-12-01 09:54:53
一个网站的解决方案,在VS中打开后(直接点击.sln文件,而不是从iis中打开),解决方案资源管理器中显示的主目录应该是虚拟路径(http://localhost),但是现在没有这个虚拟路径了,而是显示物理路径(e:\xxxxx),请问是怎么回事?怎么解决?

强调一下不能从iis中打开(因为我们用vss,如果从iis中打开的话总是出错,并且关闭项目时总是要求保存成本地的解决方案,一保存就脱离vss了),这个问题先不管它

附图一:当前的显示:


附图二:需要改变成:
...全文
489 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
velly 2011-02-28
  • 打赏
  • 举报
回复

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "http://localhost:666/", "http://localhost:666", "{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}"
ProjectSection(WebsiteProperties) = preProject
SccProjectName = ""$/vss_scenter", BAAAAAAA"
SccAuxPath = ""
SccLocalPath = "."
SccProvider = "MSSCCI:Microsoft Visual SourceSafe"
ProjectReferences = ""
Debug.AspNetCompiler.VirtualPath = "/localhost:666"
Debug.AspNetCompiler.PhysicalPath = "F:\DotNet2.0\Project\HNOHR\"
Debug.AspNetCompiler.TargetPath = "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\localhost\PrecompiledWeb\localhost:666\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/localhost:666"
Release.AspNetCompiler.PhysicalPath = "F:\DotNet2.0\Project\HNOHR\"
Release.AspNetCompiler.TargetPath = "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\localhost\PrecompiledWeb\localhost:666\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
SlnRelativePath = "..\vss_server\"
EndProjectSection
EndProject
Global
GlobalSection(SourceCodeControl) = preSolution
SccNumberOfProjects = 1
SccWebProject0 = true
SccProjectUniqueName0 = http://localhost:666
SccProjectName0 = \u0022$/vss_scenter\u0022,\u0020BAAAAAAA
SccLocalPath0 = D:\\vss_server
SccProvider0 = MSSCCI:Microsoft\u0020Visual\u0020SourceSafe
SccProjectEnlistmentChoice0 = 2
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|.NET = Debug|.NET
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
DebugTest|.NET = DebugTest|.NET
DebugTest|Any CPU = DebugTest|Any CPU
DebugTest|Mixed Platforms = DebugTest|Mixed Platforms
Release|.NET = Release|.NET
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|.NET.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|.NET.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|Any CPU.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|Mixed Platforms.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|.NET.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|.NET.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|Any CPU.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|Mixed Platforms.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|Mixed Platforms.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|.NET.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|.NET.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|Any CPU.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|Mixed Platforms.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|Mixed Platforms.Build.0 = Debug|.NET
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
木易十三 2010-12-02
  • 打赏
  • 举报
回复
代码排版不好,重新贴


Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "E:\sscenter\", "..\sscenter", "{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}"
ProjectSection(WebsiteProperties) = preProject
SccProjectName = ""$/vss_scenter", BAAAAAAA"
SccAuxPath = ""
SccLocalPath = "."
SccProvider = "MSSCCI:Microsoft Visual SourceSafe"
ProjectReferences = ""
Debug.AspNetCompiler.VirtualPath = "/localhost:666"
Debug.AspNetCompiler.PhysicalPath = "E:\sscenter\"
Debug.AspNetCompiler.TargetPath = "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\localhost\PrecompiledWeb\localhost:666\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/localhost:666"
Release.AspNetCompiler.PhysicalPath = "E:\sscenter\"
Release.AspNetCompiler.TargetPath = "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\localhost\PrecompiledWeb\localhost:666\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
VWDPort = "51237"
EndProjectSection
EndProject
Global
GlobalSection(SourceCodeControl) = preSolution
SccNumberOfProjects = 1
SccWebProject0 = true
SccProjectUniqueName0 = .
SccProjectName0 = \u0022$/vss_scenter\u0022,\u0020BAAAAAAA
SccLocalPath0 = .
SccProvider0 = MSSCCI:Microsoft\u0020Visual\u0020SourceSafe
SccProjectEnlistmentChoice0 = 2
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|.NET = Debug|.NET
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
DebugTest|.NET = DebugTest|.NET
DebugTest|Any CPU = DebugTest|Any CPU
DebugTest|Mixed Platforms = DebugTest|Mixed Platforms
Release|.NET = Release|.NET
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|.NET.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|.NET.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|Any CPU.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|Mixed Platforms.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|.NET.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|.NET.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|Any CPU.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|Mixed Platforms.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|Mixed Platforms.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|.NET.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|.NET.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|Any CPU.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|Mixed Platforms.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|Mixed Platforms.Build.0 = Debug|.NET
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
木易十三 2010-12-02
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 jialine0426 的回复:]
如果是网站解决方案的话,应该显示的是物理路径,呵呵
用IE打开站点的话,会显示url http://localhost:xxxx
你那个http://localhost是默认80端口,IIS占用了,把IIS用到80端口全停掉吧.或者在网站项目属性,指定端口改成非80端口
[/Quote]
端口已经设成666了,如果显示的是物理路径,调试的时候会自动生成别的端口号,结果就是找不到网页,如果(在浏览器)手工把端口改成666来调试也可以,但每次都要改,太麻烦
事实上以前是可以显示虚拟路径(http://localhost:666/),但不知为何最近不行了,也不记得改过什么

那两幅图显不出来,重新贴过
附图一:

附图二: 这是从别人的机子上截的,我把他们的.sln文件复制过来也不行


顺便把解决方案文档贴出来:

[Quote]

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "E:\sscenter\", "..\sscenter", "{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}"
ProjectSection(WebsiteProperties) = preProject
SccProjectName = ""$/vss_scenter", BAAAAAAA"
SccAuxPath = ""
SccLocalPath = "."
SccProvider = "MSSCCI:Microsoft Visual SourceSafe"
ProjectReferences = ""
Debug.AspNetCompiler.VirtualPath = "/localhost:666"
Debug.AspNetCompiler.PhysicalPath = "E:\sscenter\"
Debug.AspNetCompiler.TargetPath = "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\localhost\PrecompiledWeb\localhost:666\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/localhost:666"
Release.AspNetCompiler.PhysicalPath = "E:\sscenter\"
Release.AspNetCompiler.TargetPath = "C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\localhost\PrecompiledWeb\localhost:666\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
VWDPort = "51237"
EndProjectSection
EndProject
Global
GlobalSection(SourceCodeControl) = preSolution
SccNumberOfProjects = 1
SccWebProject0 = true
SccProjectUniqueName0 = .
SccProjectName0 = \u0022$/vss_scenter\u0022,\u0020BAAAAAAA
SccLocalPath0 = .
SccProvider0 = MSSCCI:Microsoft\u0020Visual\u0020SourceSafe
SccProjectEnlistmentChoice0 = 2
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|.NET = Debug|.NET
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
DebugTest|.NET = DebugTest|.NET
DebugTest|Any CPU = DebugTest|Any CPU
DebugTest|Mixed Platforms = DebugTest|Mixed Platforms
Release|.NET = Release|.NET
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|.NET.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|.NET.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|Any CPU.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Debug|Mixed Platforms.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|.NET.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|.NET.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|Any CPU.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|Mixed Platforms.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.DebugTest|Mixed Platforms.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|.NET.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|.NET.Build.0 = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|Any CPU.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|Mixed Platforms.ActiveCfg = Debug|.NET
{3A1F65BF-AC93-4DBC-A8A1-8ADEAB82F309}.Release|Mixed Platforms.Build.0 = Debug|.NET
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

[/Quote]
s208ping 2010-12-01
  • 打赏
  • 举报
回复
vss又不在你机器上,怎么会显示localhost呢??
jialine0426 2010-12-01
  • 打赏
  • 举报
回复
如果是网站解决方案的话,应该显示的是物理路径,呵呵
用IE打开站点的话,会显示url http://localhost:xxxx
你那个http://localhost是默认80端口,IIS占用了,把IIS用到80端口全停掉吧.或者在网站项目属性,指定端口改成非80端口
本课程总体分为两大部分:理论篇与架构篇AssetBundle架构篇:     1: 讲解Unity原生AssetBundle不适用工程化实战开发的原因与解决方案。     2: 详述AssetBundle框架设计原理图,以及核心设计理念。     3: Untiy编辑器界面全自动化创建AssetBundle与打包理念与代码实现。     4: 关于单一AssetBundle包的综合加载与管理以及相应测试实现。     5: AssetBundle整体管理。          本模块包含*.Manifest清单文件读取、AB包之间复杂依赖关系管理、整体场景化自动打包与加载管理流程、项目辅助全局定义与路径管理等 一、热更新系列(技术含量:中高级):A:《lua热更新技术中级篇》https://edu.csdn.net/course/detail/27087B:《热更新框架设计之Xlua基础视频课程》https://edu.csdn.net/course/detail/27110C:《热更新框架设计之热更流程与热补丁技术》https://edu.csdn.net/course/detail/27118D:《热更新框架设计之客户端热更框架(上)》https://edu.csdn.net/course/detail/27132E:《热更新框架设计之客户端热更框架(中)》https://edu.csdn.net/course/detail/27135F:《热更新框架设计之客户端热更框架(下)》https://edu.csdn.net/course/detail/27136二:框架设计系列(技术含量:中级): A:《游戏UI界面框架设计系列视频课程》https://edu.csdn.net/course/detail/27142B:《Unity客户端框架设计PureMVC篇视频课程(上)》https://edu.csdn.net/course/detail/27172C:《Unity客户端框架设计PureMVC篇视频课程(下)》https://edu.csdn.net/course/detail/27173D:《AssetBundle框架设计_框架篇视频课程》https://edu.csdn.net/course/detail/27169三、Unity脚本从入门到精通(技术含量:初级)A:《C# For Unity系列之入门篇》https://edu.csdn.net/course/detail/4560B:《C# For Unity系列之基础篇》https://edu.csdn.net/course/detail/4595C: 《C# For Unity系列之中级篇》https://edu.csdn.net/course/detail/24422D:《C# For Unity系列之进阶篇》https://edu.csdn.net/course/detail/24465四、虚拟现实(VR)与增强现实(AR):(技术含量:初级)A:《虚拟现实之汽车仿真模拟系统 》https://edu.csdn.net/course/detail/26618五、Unity基础课程系列(技术含量:初级) A:《台球游戏与FlappyBirds—Unity快速入门系列视频课程(第1部)》 https://edu.csdn.net/course/detail/24643B:《太空射击与移动端发布技术-Unity快速入门系列视频课程(第2部)》https://edu.csdn.net/course/detail/24645 C:《Unity ECS(二) 小试牛刀》https://edu.csdn.net/course/detail/27096六、Unity ARPG课程(技术含量:初中级):A:《MMOARPG地下守护神_单机版实战视频课程(上部)》https://edu.csdn.net/course/detail/24965B:《MMOARPG地下守护神_单机版实战视频课程(中部)》https://edu.csdn.net/course/detail/24968C:《MMOARPG地下守护神_单机版实战视频课程(下部)》https://edu.csdn.net/course/detail/24979

62,072

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧