关于tfs:VSTS中不包含参考

References not included in VSTS

我正在XAML和C#中构建UWP Windows 10。
我在VS2017中安装了几个扩展,这些扩展是从"引用"部分引用的。
由于VS2017主机代理没有扩展名,因此我不得不将其复制到本地文件夹中,并将扩展名与源代码一起分发。
我将此代码放在CSProj中,以便通过该文件夹访问扩展。

1
2
3
4
 <PropertyGroup>
      <SDKReferenceDirectoryRoot>..\\SDKs\\Microsoft SDKs;
      </SDKReferenceDirectoryRoot>
 </PropertyGroup>

为了模拟该过程,我使用Powershell通过MSBuild 15编译了我的App。在powershell编译中获取SDK时,它需要执行6个步骤,3个枚举和3个将SDK添加到项目中:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ExpandSDKReferences:  Enumerating SDK Reference"Microsoft.VCLibs,
ersion=14.0" from"C:\\Users\\myusername\\Source\
epos\\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\
epos\\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\
epos\\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中的托管代理中,它仅枚举sdks,但从未将它们添加到项目中:

1
2
3
4
5
6
7
8
9
10
 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".

由于未添加,因此出现编译错误。可能会发生什么?

致谢。


是的,我想是的,我在此处提交用户声音:托管VS2017代理上适用于通用Windows平台的SQLite,您可以投票并对其进行跟进。

解决方法是您可以在计算机上设置构建代理并将其用于构建。

在Windows上部署代理