我在 Visual Studio Team Services(是 Visual Studio Online)构建中设置了构建定义。
我没有在“工作文件夹”中设置任何内容,因为我假设它默认为信息中指定的脚本所在的文件夹。
当构建运行时,它会在 Powershell 步骤抛出异常。
不知何故,工作文件夹不是脚本所在的文件夹。有什么建议可以解决它吗?
我有一个angular2客户端,它是一个Visual Studio vNext(ASP.Net 5)项目.我试图在Visual Studio Team Services中创建一个构建,我在构建步骤中遇到这样的错误:
找不到模块'angular2/core'
这通常是typescript编译器的问题.我在项目中有tsconfig.json,但我不确定Team Services是否正在使用它.
我在Visual Studio中本地构建没有问题.
知道我应该怎么处理这个吗?
我正在尝试在 Visual Studio 代码中使用 git 客户端。我在 Team Services 上有我的 git 存储库。在 Team Services 站点中,我创建了一个“个人访问令牌”。当我尝试从我的 VS Code 中拉出时,我得到了以下屏幕。
我可以在此对话框中使用我的访问令牌吗?我尝试了不同的用户名,但身份验证总是失败。
我在Team Services上有一个私有的NuGet提要,以前是Visual Studio Team Services.如果发出身份验证问题但重置了我的Team Services备用凭据,则清除我的全局配置中的内容并用于nuget sources add将凭据添加回凭据.
所以我认为现在这不是一个身份验证问题.错误已更改.
我的命令行:
NuGet.exe push BrandPortaCoreDistrib.1.2.4.0.nupkg -Source https://brand.pkgs.visualstudio.com/DefaultCollection/_packaging/Libraries/nuget/v3/index.json -Verbosity detailed
Run Code Online (Sandbox Code Playgroud)
但我在屏幕上看到了这个:
WARNING: No API Key was provided and no API Key could be found for 'https://brand.pkgs.visualstudio.com/DefaultCollection/_packaging/14e755d8-0994-4b9d-b607-a79928cc4597/nuget/v2/'. To save an API Key for a source use the 'setApiKey' command.
Pushing BrandPortaCoreDistrib.1.2.4.0.nupkg to 'https://brand.pkgs.visualstudio.com/DefaultCollection/_packaging/14e755d8-0994-4b9d-b607-a79928cc4597/nuget/v2/'...
PUT https://brand.pkgs.visualstudio.com/DefaultCollection/_packaging/14e755d8-0994-4b9d-b607-a79928cc4597/nuget/v2/
Unauthorized https://brand.pkgs.visualstudio.com/DefaultCollection/_packaging/14e755d8-0994-4b9d-b607-a79928cc4597/nuget/v2/ 1043ms
Using credentials from config. UserName: something@domain.com
PUT https://brand.pkgs.visualstudio.com/DefaultCollection/_packaging/14e755d8-0994-4b9d-b607-a79928cc4597/nuget/v2/
BadRequest https://brand.pkgs.visualstudio.com/DefaultCollection/_packaging/14e755d8-0994-4b9d-b607-a79928cc4597/nuget/v2/ 5054ms
System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: Response status code does not …Run Code Online (Sandbox Code Playgroud) 我目前无法删除本地Windows 10计算机上的TFVC工作区.这是我创建的私人工作区.该机器未加入域,我是该机器的管理员.我收到以下错误:
D:\Projects\Active\SPE-DEV>tf workspace /delete MYWORKSPACE
A deleted workspace cannot be recovered.
Workspace 'MYWORKSPACE' on server 'https://ourcompany.visualstudio.com/defaultcollection' has 0 pending change(s).
Are you sure you want to delete the workspace? (Yes/No) y
TF204017: The operation cannot be completed because the user (Greg Enslow) does not have one or more required permission
s (Administer) for workspace MYWORKSPACE;Greg Enslow.
Run Code Online (Sandbox Code Playgroud)
如果我尝试从Visual Studio UI中删除它,我会收到相同的消息.我可以手动删除工作区中的所有文件和文件夹,但TFS会重新创建一个带有隐藏$ tf文件夹的根文件夹.
今天早上我卸载了Visual Studio 2015 Enterprise(只有试用许可证)并安装了Visual Studio 2015 Professional(我公司有此许可证).我确定这是一个因素,但我的VS团队服务权限根本没有改变.