小编Est*_*SFT的帖子

VS 2013 CodeLens

当我从Visual Studio Team Services(scrum 3模板)打开一个项目时,我只获得了CodeLens引用计数.这是VS中的一个错误吗?为什么我没有CodeLens与完整的TFS版本评论,编辑,等?

仅供参考:我在Visual Studio工具>选项> CodeLens中启用了所有选项.

我也试过以下但没有成功:

  • 在Visual Studio Team Services中创建一个新项目.
  • 禁用并重新启用CodeLens.

visual-studio-2013 codelens azure-devops

6
推荐指数
1
解决办法
5012
查看次数

使用GitHub的Visual Studio Team Services

我正在为我的内部(闭源)项目设置CI工作流程.我目前正在使用GitHub进行git /问题跟踪.我的应用程序是桌面应用程序(没有云/服务器部署).因此工作流程应该是

  • 承诺在github上掌握
  • 通过github webhooks通知CI
  • 运行MSBuild
  • 运行测试
  • 构建版本

我喜欢托管CI系统的想法,但我无法弄清楚Visual Studio Team Services是否需要完全承诺,或者我可以将它用于CI并通过普通的github挂钩从Github通知它.我对将问题跟踪和git托管迁移到VS Team Services不太感兴趣.

我的具体问题.收到github webhooks时,是否有Visual Studio Team Services中的钩子机制用于从远程git repo中提取

git msbuild continuous-integration github azure-devops

6
推荐指数
1
解决办法
4711
查看次数

nuget未在Visual Studio Team Services下下载软件包(visualstudio.com)(自动软件包还原)

我真的很疯狂与nuget并在Visual Studio Team Services(visualstudio.com)下构建解决方案.任何帮助都感激不尽.

我有一个包含36个项目的解决方案.许多项目使用相同的5或6个nuget包.我已仔细按照迁移MSBuild集成解决方案的说明使用自动包恢复,因此在我的解决方案文件夹下有一个.nuget文件夹,其中包含唯一的NuGet.Config文件,不再包含Nuget.exe或Nuget.targets文件.所有项目都删除了Nuget.targets行.

我正在使用Visual Studio 2013 Professional(v12 Update 2),并且本地构建的解决方案没有错误或警告.即使在清理并删除packages文件夹之后,它也会下载并构建正常.packages文件夹未在Visual Studio Team Services中签入.

检查构建日志表明:

  1. nuget在Build的开始没有启动,以便检查,下载和解压任何未解析的软件包(它是在从MSBuild-Integrated迁移到自动软件包恢复之前这样做的 - 尽管如此,它无法解决参考)
  2. 我遗留了113个错误,主要是项目无法解析引用.
  3. 与本地构建(和MSBuild集成)不同,Visual Studio Team Services现在甚至不在其构建日志中提及 nuget!

事情开始失败的日志示例(虽然这显然是因为nuget没有介入):

Project "C:\a\src\TFS\RSPlatform\Main\Source\RSPlatform Team Project.sln" (1) is building "C:\a\src\TFS\RSPlatform\Main\Source\Support\A2Refresh\A2Refresh.csproj" (8) on node 1 (default targets).
PrepareForBuild:
  Creating directory "obj\Release\".
ResolveAssemblyReferences:
  Primary reference "Bytescout.Spreadsheet".
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Bytescout.Spreadsheet". Check to make sure the assembly exists on disk. If this reference is required by your …
Run Code Online (Sandbox Code Playgroud)

visual-studio-2013 nuget-package-restore azure-devops

6
推荐指数
1
解决办法
2001
查看次数

Git卡在deltafying对象上

我的源代码(带图片)大小约为500MB.
但我无法将其推送到任何git存储库:我的git推送尝试被卡在VS中的"deltafying对象"中.
我看了我的网络:~3kb/s.out:100kb/s.但仍然没有推动.

以下是visual studio的截图:

在此输入图像描述

我尝试在visual studio中推送它Visual Studio Team Services(用git)不起作用.我尝试使用sourcetree(v1.9.6.1)将其检查为bitbucket.没工作.我试过git console,没用.

我的Visual Studio Enterprise 2015还有"Git-2.9.3.2-64bit",我的机器上也安装了这个git版本.

更新:更多信息:我再次尝试使用source-tree,这是控制台输出;

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream LeanStartup master:master  
POST git-receive-pack (163209032 bytes)  
fatal: The remote end hung up unexpectedly  
fatal: The remote end hung up unexpectedly  
error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054  
Pushing to https://*****@bitbucket.org/*****/leanstartup.git  
Everything up-to-date  
Completed with errors, see above.  
Run Code Online (Sandbox Code Playgroud)

更新2:我尝试了另一个解决方案(只更改了1-2个提交和推送的东西).我在Visual Studio和Source Tree中的git运行良好.
所以也许我需要怀疑一个解决方案"leanstartup"?
我试图删除文件:" .gitattributes"" .gitignore" .git和解压缩文件夹上的文件夹:" "重新分配git源代码控制. …

git push visual-studio atlassian-sourcetree azure-devops

6
推荐指数
1
解决办法
5147
查看次数

如何调试Visual Studio Team Services单元测试

在我的团队中,Visual Studio Team Services(以前称为Visual Studio Online/Team Foundation Service)配置为在每次签入时自动构建解决方案并运行解决方案的所有单元测试.

有一个测试在我的本地Visual Studio中成功但在团队服务中没有成功:如何获得有关失败的测试的更多信息?是否可以在Team Services中手动运行测试?

unit-testing azure-devops

5
推荐指数
1
解决办法
1570
查看次数

从Visual Studio Online导出数据

有没有办法导出TFS/VS Online?

我们需要将数据导入我们的onpremise环境.

我们正在运行带有TFS的Windows Server 2012 R2

tfs tfs2010 tfs2012 azure-devops

5
推荐指数
1
解决办法
3871
查看次数

Visual Studio Team Services - 如何更改语言?

我使用Visual Studio Team Services.我转到 - 我的个人资料 - 区域设置 - 选择其他语言.但浏览器中的语言有英文版.如何在Visual Team Services中更改语言?

tfs visual-studio-2013 azure-devops

5
推荐指数
1
解决办法
5146
查看次数

为每个版本环境转换Azure网站部署的web.config

在Visual Studio Team Services(Visual Studio Online)中,我有三个发布环境,每个环境都有一个Azure Website Deploy步骤.

我可以通过指定拾取Web.Uat.config的"BuildConfiguration"变量(例如Uat)来转换构建步骤的web.config.

但是我有多个使用此构建配置的发布环境,它们都需要转换Web配置(例如Dev,Test,Uat,Live).

是否可以在Azure网站部署步骤之前指定要用于每个发布环境的Web配置转换?

注意:我意识到可以在Azure门户网站的"所有设置"下为网站指定简单的appsettings和connectionstrings,但我需要做的不仅仅是转换这些简单的设置,并且已经为我的解决方案中的每个环境配置了Web配置转换

azure-deployment azure-devops

5
推荐指数
1
解决办法
2111
查看次数

SQL Server 2016源代码管理

任何人都知道在哪里可以找到SQL Server 2016工具下的"源代码管理"选项?我希望将Visual Studio Team Services(TFS Online)与SQL Server 2016集成.

如您所见,这是SQL Server 2012,这是SQL Server 2016.

有任何想法吗?

sql sql-server sql-server-2012 azure-devops

5
推荐指数
1
解决办法
3731
查看次数

使用HttpClient发布JSON数据

我正在尝试以编程方式在Visual Studio Team Services(以前的Visual Studio Online)中创建服务挂钩订阅.在Team Services中创建项目时,将自动创建服务挂钩.以下是我的'workitem created'web钩子的代码:

using (HttpClient client = new HttpClient())
                {
                    client.DefaultRequestHeaders.Accept.Add(
                        new MediaTypeWithQualityHeaderValue("application/json"));

                    client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic",
                       Convert.ToBase64String(
                           System.Text.ASCIIEncoding.ASCII.GetBytes(
                               string.Format("{0}:{1}", username, password))));

                    var request = new 
                    {
                        publisherId = "tfs",
                        eventType= " workitem.created",
                        resourceVersion= "1.0",
                        consumerId= "webHooks",
                        consumerActionId= "httpRequest",
                        publisherInputs= new {      
                            projectId= "test123",
                        }, 
                        consumerInputs= new {
                            url = "https://mydomain/api/ServiceHook/SaveWorkItem"
                        }
                    };


                    var response = client.PostAsync("https://mydomain/DefaultCollection/_apis/hooks/subscriptions",
                        new StringContent(JsonConvert.SerializeObject(request).ToString(),
                            Encoding.UTF8, "application/json"))
                            .Result;

                    if (response.IsSuccessStatusCode)
                    {
                        dynamic content = JsonConvert.DeserializeObject(
                            response.Content.ReadAsStringAsync()
                            .Result);


                        // Access variables from …
Run Code Online (Sandbox Code Playgroud)

c# json httpclient azure-devops

5
推荐指数
1
解决办法
2万
查看次数