How to force Visual Studio to reference local Enterprise Library DLL file instead of installed dir file

前端 未结 2 1921
我在风中等你
我在风中等你 2021-01-23 16:21

I\'ve got a asp.net project that references Enterprise Library DLL\'s. I can build and deploy my project but the deployment build fails because it can\'t find the DLL\'s. I pe

相关标签:
2条回答
  • 2021-01-23 17:05

    Okay, I had to dig into the .proj files. Under are tags. You can add within the Reference tags to direct the project to a specific DLL instance.

    <ItemGroup>
      <Reference Include="Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" >
        <HintPath>..\lib\Microsoft.Practices.EnterpriseLibrary.Common.dll</HintPath>
      </Reference>
      ...
    
    0 讨论(0)
  • 2021-01-23 17:15

    Highlight the reference in the Solution and change the "Copy Local" in the properties window to True, see if that helps.

    0 讨论(0)
提交回复
热议问题