我正在使用 VisualSVN 客户端和服务器,Web 项目按预期工作的要求之一是将 .sln 与其他文件放在同一目录(根目录)中。
我认为这就像删除所有额外的父路径 ../ 和其他相对路径并保存它一样简单。但是,当我尝试打开它时,它只会锁定 Visual Studio。
是否有创建此类解决方案文件的标准方法或解决方案文件工具来帮助确保其有效?还是我只是错过了一些非常明显的东西?
/
/MyWebsite.org.sln
/Images
/App_Data
/default.aspx
/default.aspx.cs
显然,至少我正在寻找的诀窍是您必须使用 ..\MyWebsite.org 或任何包含网站文件的文件夹。
[编辑] 我学到的东西和我为这个特定项目的最终 .sln 文件:
这是允许我打开网站并将 .sln 放在 web 文件夹的根目录中的最终解决方案文件。
Project("{E24C65DC-7377-472B-9ABA-BCSG3B73C61A}") = "MyWebsite.org", "\", "{F8F4E96F-40BF-4374-B8BA-968D0SGG4A9E}"
ProjectSection(WebsiteProperties) = preProject
TargetFramework = "3.5"
Debug.AspNetCompiler.VirtualPath = "/MyWebsite.org"
Debug.AspNetCompiler.PhysicalPath = "..\MyWebsite.org\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\MyWebsite.org\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/MyWebsite.org"
Release.AspNetCompiler.PhysicalPath = "..\MyWebsite.org\"
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\MyWebsite.org\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
VWDPort = "1603"
VWDDynamicPort = "false"
VWDVirtualPath = "/"
EndProjectSection
EndProject