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

后端 未结 4 921
迷失自我
迷失自我 2021-01-02 19:36

I have build a UWP application using Sqlite. On my local machine I had to install the following SQLite for Universal Windows Platform Visual Studio Extension to get it to bu

相关标签:
4条回答
  • 2021-01-02 20:10

    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.

    0 讨论(0)
  • 2021-01-02 20:14

    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.

    0 讨论(0)
  • 2021-01-02 20:18

    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.

    0 讨论(0)
  • 2021-01-02 20:25
    • Download SQLite for Universal Windows Platform SDK from here
    • Install it by double clicking.

    This solved same issue with my UWP project.

    0 讨论(0)
提交回复
热议问题