私は VisualSVN クライアントとサーバーを使用しています。Web プロジェクトが期待どおりに動作するための要件の 1 つは、.sln を他のファイルと同じディレクトリ (ルート) に置くことです。
余分な親パス ../ およびその他の相対パスをすべて削除して保存するのと同じくらい簡単だと思いました。ただし、開こうとすると、Visual Studio がロックされます。
このタイプのソリューション ファイルを作成する標準的な方法や、有効であることを確認するためのソリューション ファイル ツールはありますか? それとも、非常に明白な何かが欠けているだけですか?
/
/MyWebsite.org.sln
/Images
/App_Data
/default.aspx
/default.aspx.cs
どうやらトリックは、少なくとも私が探していたものは、..\MyWebsite.org または Web サイト ファイルを含むフォルダーを使用する必要があることです。
[編集] 私が学んだことと、この特定のプロジェクトの最終的な .sln ファイル:
これは、Web サイトを開いて Web フォルダーのルートに .sln を配置できる最終的なソリューション ファイルです。
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