2012-11-11 70 views
-2

我已阅读以下网页:http://msdn.microsoft.com/en-us/library/ee817675.aspx,我感兴趣的部分:“使用文件引用,只有必要时才”Visual Studio中添加引用 - UAC路径

的部分似乎表明,你可以添加一个引用服务器上的DLL。在我的开发PC上有Oracle.DataAccess版本11,在现场服务器上有版本10。部署应用程序是一件痛苦的事情。

网页上说项目文件应该包含'References'节点,但是当我右键单击项目文件并使用TextPad打开时,只有一个ItemGroup(http://msdn.microsoft.com/ en-us/library/646dk05y%28v = vs.90%29.aspx)节点。因此,我有两个问题:

1) Where can I find the References node as stated on the webpage? 
2) Is it possible to reference an assembly using the UAC path instead of a local path? 

回答

0

引用的项目被放置在从的ItemGroup MSBuild的开始2.0第一连杆是过时它从Visual Studion .NET倍.NET 1.0/1.1。

<ItemGroup> 
    <!-- ... --> 
    <Reference Include="System" /> 
    <Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> 
     <Private>True</Private> 
     <HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath> 
    </Reference> 
    <!-- ... --> 
</ItemGroup> 

对于第二个问题,我认为如果你的意思是UNC路径。

+0

谢谢。我将在今天晚些时候对此进行测试。 – w0051977

相关问题