Could not find SDK SQLite.UWP.2015 when building UWP application using Hosted TFS pool

此生再无相见时 提交于 2019-11-30 14:56:49

There isn't any way to install the extension on Hosted Build Agent.

Q: Does your build depend on software other than this software that is installed on hosted build resources?

A: No. Then you can use the hosted pool.

Here is the software installed on Hosted Build Agent: Software on the hosted build server.

The work around is deploy your own build agent. With this build agent, you can install the software you want to build your project.

Actually there is a simple solution that has worked perfectly for us:

Copy the Microsoft SDKs folder to your repo (or submodule).

Add this to the end of your csproj file:

<PropertyGroup>
  <SDKReferenceDirectoryRoot>$(MSBuildProjectDirectory)\..\..\..\..\Microsoft SDKs;$(SDKReferenceDirectoryRoot)</SDKReferenceDirectoryRoot>
</PropertyGroup>

From now on the build process will first check this directory for the required extensions and then fallback to the locally installed extensions. This works perfectly on VSTS hosted agents and doesn't require you to install all the extensions on every dev machine.

You can not install extra extension in a Hosted VSTS. I tried with TS support and there is no way to do it right now.

You can use difference CI service like Appveyor with give you some control over installing extension via powershell.

Or you can wait for Windows 10 Anniversary with include Sqlite.

  • Download SQLite for Universal Windows Platform SDK from here
  • Install it by double clicking.

This solved same issue with my UWP project.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!