问题标签 [vnext]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
sql-server - 如何通过 vNEXT 构建任务正确删除 SQL Server 数据库
我们有一个用于测试机器的 PowerShell 清理脚本:
通常它可以工作,但有时它无法删除数据库,因为似乎有一些打开的连接并且构建任务无法删除正在使用的数据库。
这似乎也发生在“某个时候”或“随机”。
有什么建议可以增强脚本吗?
(使用最新的 TFS 2017 on prem 和 SQL Server 2014)
artifactory - 使用具有共享 UNC 路径的 JFrog Artifactory Deployer
我们将 JFrog Artifactory 与 TFS 2017 一起使用,我希望在我的构建中使用 JFrog Artifactory Deployer 任务。希望从共享的 UNC 部分上传工件。虽然从本地文件系统上传工件时它工作正常,但它不适用于 UNC 路径。我尝试使用映射驱动器,但这也不起作用。有谁知道这个的解决方案?
收到以下错误
运行 'C:\agent_work\16\a\jfrog.exe' rt 上传 '\myshared\drops\BuildName\BuildVersion\**\*.zip' 'ext-repo' --url= https://aritfactory/artifactory --user=******** --password=******** --props='build.number=2996783;build.name=ArtifactoryUpload' 2017-05-22T15:23:06.5911571 Z 2017-05-22T15:23:06.5911571Z 2017-05-22T15:23:06.8240199Z ping 工件... 2017-05-22T15:23:07.0369535Z 完成 ping 工件。2017-05-22T15:23:07.0369535Z 路径不存在:\myshared\drops\buildName\BuildVersion 2017-05-22T15:23:07.0838234Z
[错误]Microsoft.PowerShell.Commands.WriteErrorException:部署到 Artifactory 失败 2017-05-22T15:23:07.0994475Z ##[错误]PowerShell
脚本完成但有 1 个错误。2017-05-22T15:23:07.0994475Z
[部分]整理:JFrogArtifactoryDeployer
powershell - Get single file out of TFS2015 version control using Powershell fails as null valued expression?
Setting up a vNext Release in TFS 2015 and we are using powershell to get external web.config files. I've adapted this script from our old XAML builds:
It fails on:
$tfsItems = $tfs.vcs.GetItems($TfsConfigurationPath).Items
with the error:
For Parameters I'm handing it the URL of our TFS server as:
I then give it the full path to the configs folder inside the branch I'm targeting and for now I'm running it locally to put the file onto my desktop. The path to the files isn't null so I'm not at all sure why it's saying it's null. Where am i going wrong here?
powershell - 在 Windows 10 服务器上通过 PS-Remoting 在 vNext 构建中运行 WebTest 得到“System.Data.Entity.Core.ProviderIncompatibleException”
在 TFS vNext 构建中,我通过 PS-Remoting 将多个 webtests 部署到一个 Windows 10 测试代理并运行所有 webtests。它不稳定,因为有时我会收到“System.Data.Entity.Core.ProviderIncompatibleException”错误(s.below)
服务器上已经安装了 Visual Studio 2015。sam 条件下的相同测试在 Windows 7 测试代理上运行良好。
原因是什么,我该如何解决?非常感谢!
automated-tests - 检查交互过程时,VSTS vNext 构建“部署 TestAgent”任务永远不会完成
我正在使用 TFS 团队服务将测试代理部署到本地 Windows 2012 服务器 VM,以便在那里运行 CodedUI 测试。当我取消选中交互式过程时,它被很好地部署了,但是当检查交互式时,任务就会挂起并且永远不会完成。我对构建代理和测试代理使用具有管理员权限的相同凭据(这意味着我在部署测试代理步骤中的团队服务 UI 中使用了相同的身份,并且构建代理在另一台具有相同身份的 PC 上配置)。任务卡在“机器 'xxxxx.xxxxx.com:5986' 上的任务 'ConfigureTestAgent' 需要时间。请稍候”。我做了很多搜索并没有找到解决方案,请如果有人可以提供帮助。
powershell - 强制 kms 与 powershell 同步挂起
我的 script.ps1 中有一个命令,该命令由 tfs 2015 中的下一个构建步骤运行。然后我导航到办公室的位置,运行命令强制 KMS 推送,如下所示:
它被执行,但它只是挂起,没有任何反应。如果我手动执行命令,它可以正常工作。仅当我通过 powershell 执行此操作时才会发生这种情况 - 手动运行命令按预期工作。
tfs - Wix ICE 错误从 01 到 07
我必须将我们的构建系统从旧的“XML 系统”更新到新的 vNext。现在我遇到了问题,在构建过程中,我从 ligther.exe 收到错误消息:
[error]light.exe(0,0):错误 LGHT0217:执行 ICE 操作“ICE01”时出错。...
高达 ICE07。最后:
[error]light.exe(0,0):错误 LGHT0216:出现错误代码 0x643 的意外 Win32 异常:操作 - 安装过程中出现“ICE09”致命错误
当我使用“旧”XML 版本进行相同的构建时,它可以毫无问题地工作,有什么想法吗?
非常感谢。克里兹
build - TFS 2015 for Visual Studio 2017 中的 VSTest 配置
我在 TFS 2015 vNext 构建定义中配置 VSTest 任务以与 Visual Studio 2017 一起运行时遇到问题。
在 VSTest 版本下拉列表中选择“最新”不适用于 VS2017。我在论坛中发现了一些帖子,描述了提供 VSTest 的特定位置,这可能会起作用。不幸的是,我没有这个选项:
有人知道如何让它工作吗?
问候, WHBonney
msbuild - VNext 构建系统:如果代码未更改,则不触发构建
In XAML build system in VS2012, there is an check box option "Build even if nothing has changed since the previous build", when Schedule option is selected.
这在 VNext 构建中是缺失的,问题是即使白天没有提交任何代码,也会触发夜间构建。就我而言,构建完整的测试套件需要两个小时。
有没有简单的解决方法或插件来实现这一点?
谢谢
asp.net-core - 无法从 Microsoft.Extensions.Configuration.IConfigurationBuilder' 转换为 'Microsoft.Extensions.Configuration.IConfiguration'
在使用 ASP.NET Core 时,在 Program.cs 中添加配置时遇到了一个不寻常的问题(对于那些熟悉 ASP.NET CORE 的人可能会发现这个基本问题)。当我试图添加 .UseConfiguration(config) 它给了我一个错误说 -
无法从 Microsoft.Extensions.Configuration.IConfigurationBuilder' 转换为 'Microsoft.Extensions.Configuration.IConfiguration'
以下是我的代码: