2012-05-22 69 views
2

很多搜​​索後,我試圖找到:其中確實VS2010保存值網站屬性:vs2010在哪裏保存WebSite屬性值?

enter image description here

它不是在SLN,也不PROJ ...

香港專業教育學院聽到的,一旦它在C:\用戶\ royi \應用程序數據\本地\微軟\ WebsiteCache \ Websites.xml

但改變的測試後,我看不到反射的變化......(甚至重啓後 - 沖洗...)

那麼vs2010保存在哪裏呢?

p.s.我也試過FileMon ...但沒有任何東西....

+0

@oded啊..即時通訊某些....原因所有的t他是因爲我們在開發中轉向不同的分支......所以每次我們嘗試調試時 - 所有vs 2010迷你服務器都會出現(時鐘旁邊的黃色小圖標......您知道...... VS的iis)。 ..它需要大量的時間來重新配置...所以我必須保存這個文件...當自定義位置被刪除 - 我可以從保存的文件快速比較...但是在哪裏正在保存的文件? –

+0

屬性頁面設置保存到WebSiteCache/websites.xml – adatapost

+0

@AVD,正如我所說的。我測試了它......並且我很確定我也讀過它(si提到過) - 但經過測試....它不會改變.. –

回答

1

更新:

它保存在C:\用戶\ royi \應用程序數據\本地\微軟\ WebsiteCache \ Websites.xml

我在裏面的文件通過Total Commander中尋找,但Unicode的複選框應該已被選中...

這裏是數據的一個樣本:

<?xml version="1.0" encoding="utf-16"?> 
<DesignTimeData> 
    <Website RootUrl="C:\Projects\PersonalBranches\RoyiN\Ensure_Solution\Surveys_Mediator\" CacheFolder="Surveys_Mediator(2)" targetframeworkmoniker=".NETFramework,Version=v4.0" sccprovider="SAK" enablesilverlightdebugging="false" scclocalpath="SAK" customserverurl="http://localhost/Surveys_Mediator" addnewitemlang="Visual C#" sccauxpath="SAK" sccprojectname="SAK" vwdport="50006" enablevswebserver="false" _LastAccess="22/05/2012 17:10:20"/> 
    <Website RootUrl="C:\Projects\PersonalBranches\RoyiN\Ensure_Solution\Web_ERP_Finance\" CacheFolder="Web_ERP_Finance(2)" targetframeworkmoniker=".NETFramework,Version=v4.0" sccprovider="SAK" enablesilverlightdebugging="false" scclocalpath="SAK" customserverurl="http://localhost/Web_ERP_Finance/" addnewitemlang="Visual C#" sccauxpath="SAK" sccprojectname="SAK" vwdport="49995" enablevswebserver="false" _LastAccess="22/05/2012 17:10:16"/> 
    <Website RootUrl="C:\Projects\Ensure_Solution\GD_OnlineApplication\" CacheFolder="GD_OnlineApplication(1)" sccprovider="MSSCCI:Microsoft Visual SourceSafe" scclocalpath=".." customserverurl="http://localhost/GD_OnlineApplication" sccauxpath="" addnewitemlang="Visual C#" sccprojectname="&quot;$/Ensure_Solution&quot;, IARCAAAA" vwdport="59009" enablevswebserver="false" _LastAccess="08/11/2011 13:22:03"/> 
    <Website RootUrl="C:\Projects\Ensure_Solution\TrafficTesterWeb\" CacheFolder="TrafficTesterWeb(1)" sccprovider="MSSCCI:Microsoft Visual SourceSafe" scclocalpath=".." customserverurl="http://localhost/TrafficTesterWeb" sccauxpath="" addnewitemlang="Visual C#" sccprojectname="&quot;$/Ensure_Solution&quot;, IARCAAAA" vwdport="59021" enablevswebserver="false" _LastAccess="08/11/2011 13:22:05"/> 
0

在我的一個項目中,我發現它在.csproj中。如果您在那裏沒有看到它,請使用我使用的工具,Windows Grep 2.3並搜索您保存的值。這是一個非常方便的工具,用於查找VS搜索功能可能無法發現的文件中的特定字符串。

+0

csproj沒有被網站使用...... –

+0

它是在我的...無論哪種方式,Windows Grep都會找到它,而且你不需要許可證就可以試用它。只需下載,安裝並運行。將它指向解決方案的頂級目錄,它會在任何文件中找到文本。 – KennyZ