I'm building an UWP Windows 10 in XAML and C#. I have several extensions installed into VS2017 that are referenced from the "references" section. Because the VS2017 host agent doesn't have the extensions I had to copy to a local folder and distribute the extensions with the source code. I put this code in the CSProj in order to get access to the extensions by the folder.
<PropertyGroup>
<SDKReferenceDirectoryRoot>..\SDKs\Microsoft SDKs;
</SDKReferenceDirectoryRoot>
</PropertyGroup>
In order to simulate the process, I compile using powershell my App using MSBuild 15. When fetching the SDKs in the powershell compilation it runes 6 steps, 3 to enumerate and 3 to add the SDKs to the project:
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".
In the other hand, in the hosted agent in VSTS it only ENUMERATES the sdks but never gets to add them to the project:
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\".
And because it's not added, I've got compilation errors. What might be happening?
Regards.
Yes, I think so, I submit a user voice here: SQLite for Universal Windows Platform on Hosted VS2017 agent, you can vote and follow up it.
The workaround is that you can setup a build agent on your machine and use it for your builds.
Deploy an agent on Windows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With