2012-11-11 68 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

相關問題