2012-10-30 13 views
0

我是新來的TFS試圖建立的基礎上TFS 2012TFS 2012如何建立與外部的dll參考的解決方案

我的目錄結構是

Web 
    _Common 
     thirdparty 
      Telerik 
      RadControls 
       2011.3.1305.40 
        Bin40 (All Dll's) 
     Utilities.NET4.0 
      Utilities(VB Project folder) 
      All Files & Folders 
      Utilities.vbproj 

    FOO(Folder Name which is also application Name) 
     1(Custom Versions 1 per client Bases) 
      FOO -All Files & Folders 
      FOO.sln 
     2(Custom Versions 2 per client Bases) 
      FOO 
      FOO.sln 
     3(Custom Versions 3 per client Bases) 
      FOO -All Files & Folders 
      FOO.sln 

下面是我的解決方案文件定製版本1

Microsoft Visual Studio Solution File, Format Version 11.00 
# Visual Studio 2010 
Project("{E24C65DC-7377-472B-9ABA-F184B08FC61A}") = "FOO", "http://localhost/FOO/1/FOO", "{1B4DD106-50B1-44E1-AB1F-E9F175E995F8}" 
    ProjectSection(WebsiteProperties) = preProject 
     UseIISExpress = "false" 
     TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" 
     ProjectReferences = "{A6EE09B0-8E91-4D7F-A513-4A45A8EF93A8}|Agility.Web.Utilities.dll;" 
     Debug.AspNetCompiler.VirtualPath = "/FOO/1/FOO" 
     Debug.AspNetCompiler.PhysicalPath = "FOO\1\FOO\" 
     Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\FOO\1\FOO\" 
     Debug.AspNetCompiler.Updateable = "true" 
     Debug.AspNetCompiler.ForceOverwrite = "true" 
     Debug.AspNetCompiler.FixedNames = "false" 
     Debug.AspNetCompiler.Debug = "True" 
     Release.AspNetCompiler.VirtualPath = "/FOO/1/FOO" 
     Release.AspNetCompiler.PhysicalPath = "FOO\1\FOO\" 
     Release.AspNetCompiler.TargetPath = "PrecompiledWeb\FOO\1\FOO\" 
     Release.AspNetCompiler.Updateable = "true" 
     Release.AspNetCompiler.ForceOverwrite = "true" 
     Release.AspNetCompiler.FixedNames = "false" 
     Release.AspNetCompiler.Debug = "False" 
     SlnRelativePath = "FOO\1\" 
    EndProjectSection 
EndProject 
Project("{F184B08F-C81C-45F6-A57F-F184B08FF28F}") = "Utilities", "..\..\_Common\Utilities-.NET4.0\Utilities\Utilities.vbproj", "{A6EE09B0-8E91-4D7F-A513-4A45A8EF93A8}" 
EndProject 
Global 
    GlobalSection(SolutionConfigurationPlatforms) = preSolution 
     Debug|Any CPU = Debug|Any CPU 
     Release|Any CPU = Release|Any CPU 
    EndGlobalSection 
    GlobalSection(ProjectConfigurationPlatforms) = postSolution 
     {1B4DD106-50B1-44E1-AB1F-E9F175E995F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 
     {1B4DD106-50B1-44E1-AB1F-E9F175E995F8}.Debug|Any CPU.Build.0 = Debug|Any CPU 
     {1B4DD106-50B1-44E1-AB1F-E9F175E995F8}.Release|Any CPU.ActiveCfg = Debug|Any CPU 
     {1B4DD106-50B1-44E1-AB1F-E9F175E995F8}.Release|Any CPU.Build.0 = Debug|Any CPU 
     {A6EE09B0-8E91-4D7F-A513-4A45A8EF93A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 
     {A6EE09B0-8E91-4D7F-A513-4A45A8EF93A8}.Debug|Any CPU.Build.0 = Debug|Any CPU 
     {A6EE09B0-8E91-4D7F-A513-4A45A8EF93A8}.Release|Any CPU.ActiveCfg = Release|Any CPU 
     {A6EE09B0-8E91-4D7F-A513-4A45A8EF93A8}.Release|Any CPU.Build.0 = Release|Any CPU 
    EndGlobalSection 
    GlobalSection(SolutionProperties) = preSolution 
     HideSolutionNode = FALSE 
    EndGlobalSection 
EndGlobal 

注意事項:

    本地機器
    • FOO = WebApplication的
    • 公用事業上
    • IIS安裝=虛擬文件夾

如何實現這一點:FOO Bin40

下具有參考DLL的

我曾嘗試實現這一點,但我不能讓它使用默認模板運行。

感謝您的幫助。

解決方案:

我更新了構建定義。

在工作區映射到我的工作文件夾

$/Web/Main/_Common: $(SourceDir)\_Common 
$/Web/Main/_Common/thirdparty/Telerik/RadControls/2011.3.1305.40/Bin40:$(SourceDir)\FOO\1\FOO\Bin 
$/Web/Main/FOO/6: $(SourceDir)\FOO\6 

回答

1

確保文件引用在項目中使用文件的相對路徑。

此外,請確保您的構建的工作區映射正在從您的示例中下載整個Web根目錄。

如果這不起作用,我們需要看到你得到的錯誤以及你如何引用相關的DLL。

+0

我已經更新了該解決方案的帖子,但是我不確定這是否是引用第二部分的正確方法,即telerik dll的 – vishalvatsal

+0

您是否可以在工作區映射中只有一個條目:$/Web/MAIN - > $(SourceDir) –

相關問題