Dot-Net

Asp.Net 應用程序是否有任何類型的文件依賴跟踪器?

  • May 22, 2009

我有一個 Asp.Net 2.0 (VB.Net) 應用程序,我正在嘗試將 Control (ASCX) 導出到另一個項目。我需要知道控制項需要哪些其他文件才能工作。

有沒有辦法——使用 VS.Net 2005 或外部應用程序——遞歸地跟踪解決方案中頁面或控制項的依賴關係?

例如,對於這個 file: ~/Controls/SomeControl.ascx,我想獲取它依賴於執行的以下文件列表:

~/Controls/SomeControl.ascx
 ~/Controls/SomeControl.ascx.vb
   ~/App_Code/SomeClass.vb
     ~/App_Code/AnotherClass.vb
     ~/App_WebReferences/com/example/SomeWebService/SomeWebService.disco
     ~/App_WebReferences/com/example/SomeWebService/SomeWebService.discomap
     ~/App_WebReferences/com/example/SomeWebService/SomeWebService.wsdl
   ~/App_Code/AnotherClass.vb

我使用了Assembly Binding Log Viewer (Fuslogvw.exe)或者 ProcMon …

我的一位同事推薦了這個名為 Dependency Auditor 的應用程序。我沒有使用它,也不一定保證它。

MZ Tools 6.0 與 Visual Studio 集成並具有“獲取呼叫者”類型的功能。 http://www.mztools.com/v6/mztools6.aspx

引用自:https://stackoverflow.com/questions/183459