我正在XAML和C#中構建UWP Windows 10。 我有幾個擴展安裝到VS2017從「參考」部分引用。 由於VS2017主機代理沒有擴展名,所以我不得不復制到本地文件夾並使用源代碼分發擴展。 我把這段代碼放在CSProj中,以便通過文件夾訪問擴展。參考不包括在VSTS中
<PropertyGroup>
<SDKReferenceDirectoryRoot>..\SDKs\Microsoft SDKs;
</SDKReferenceDirectoryRoot>
</PropertyGroup>
爲了模擬過程中,我使用編譯使用的MSBuild 15時,取它符文6個步驟,3枚舉和3的軟件開發工具包添加到項目PowerShell的編譯的軟件開發工具包的PowerShell我的應用程序:
ExpandSDKReferences: Enumerating SDK Reference "Microsoft.VCLibs,
ersion=14.0" from "C:\Users\myusername\Source\Repos\VSTS\BI Read
Windows\SDKs\Microsoft SDKs\Windows
Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\".
Enumerating SDK Reference "PDFTron.PDFNetUWPApps, Version=6.5.4.47152" from
"C:\Users\myusername\Source\Repos\VSTS\BI Read Windows\SDKs\Microsoft
SDKs\UAP\v0.8.0.0\ExtensionSDKs\PDFTron.PDFNetUWPApps\6.5.4.47152\".
Adding reference "References\CommonConfiguration\x86\pdftron.winmd".
Adding file "Redist\CommonConfiguration\x86\pdftron.dll" from redist folder
with target path "pdftron.dll".
Enumerating SDK Reference "SQLCipher.UAP.2015, Version=3.4.0" from
"C:\Users\myusername\Source\Repos\VSTS\BI Read Windows\SDKs\Microsoft
SDKs\UAP\v0.8.0.0\ExtensionSDKs\SQLCipher.UAP.2015\3.4.0\".
Adding file "Redist\Debug\x86\sqlite3.dll" from redist folder with target
path "sqlite3.dll".
在另一方面,在VSTS託管代理只列舉了軟件開發工具包,但從來沒有得到將它們添加到項目中:
ExpandSDKReferences:
Enumerating SDK Reference "Microsoft.VCLibs, Version=14.0" from
"C:\a\1\s\SDKs\Microsoft SDKs\Windows
Kits\10\ExtensionSDKs\Microsoft.VCLibs\14.0\".
Enumerating SDK Reference "PDFTron.PDFNetUWPApps, Version=6.5.4.47152" from
"C:\a\1\s\SDKs\Microsoft
SDKs\UAP\v0.8.0.0\ExtensionSDKs\PDFTron.PDFNetUWPApps\6.5.4.47152\".
Enumerating SDK Reference "SQLCipher.UAP.2015, Version=3.4.0" from
"C:\a\1\s\SDKs\Microsoft
SDKs\UAP\v0.8.0.0\ExtensionSDKs\SQLCipher.UAP.2015\3.4.0\".
而且因爲它不是廣告德德,我有編譯錯誤。可能發生了什麼?
問候。
什麼是擴展名引用的路徑?指定SDKReferenceDirectoryRoot不適用於我,您是否可以在OneDrive上共享簡單的項目? –
我只是遵循這個示例https://cmatskas.com/tfs-continuous-integration-for-windows-8-1-store-apps-with-sdk-dependencies/ http://stackoverflow.com/questions/ 37070617/could-not-find-sdk-sqlite-uwp-2015-when-building-uwp-application-using-hosted-tf https://github.com/Microsoft/vsts-agent/issues/461理論上根據它的GitHub線程工作。它可以正確地找到SDK。但是我看不到的是「添加參考」步驟。我會稍後嘗試做一個項目。 – toroveneno
您可以在沒有手動安裝該擴展的機器上構建項目嗎? (我得到的錯誤找不到程序集sqlite3.dll,但它實際上存在) –