小编jes*_*ing的帖子

什么是Visual Studio的Font Cache文件夹?

我今天开始玩一个名为WinDirStat的应用程序,我注意到这个文件夹:

C:\Users\<Username>\AppData\Local\Microsoft\Visual Studio\Font Cache\
Run Code Online (Sandbox Code Playgroud)

...我的计算机上最多需要10GB,包含字体文件.有没有人知道这个文件夹是什么,以及删除它是否安全?

10GB太多了,文件夹名称中包含"缓存"让我想删除它.​​..

wpf fonts visual-studio-2013

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

TF26006:Team Foundation找不到0

我们正在运行TFS构建的一些问题(2012年更新3).对于团队项目,所有构建都以错误结束: 异常消息:TF26006:Team Foundation找不到0.(类型DeniedOrNotExistException)

Symthoms是:

  • 对于其他团队项目,构建运行良好.特定团队项目中的所有构建都存在问题.
  • 构建生成丢弃工件到文件夹但不更新测试服务器(这是使用powershell命令的xcopy操作,在构建后触发).

到目前为止,我们已尝试重新启动控制器和代理.它没有成功.还有什么我们可以尝试的吗?

Edit: Full expection stack trace is here:
Exception Message: TF26006: Team Foundation could not find 0. (type DeniedOrNotExistException)
Exception Stack Trace: 
Server stack trace: 
   at Microsoft.TeamFoundation.WorkItemTracking.Client.ProjectCollection..ctor(WorkItemStore store)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.get_Projects()
   at Microsoft.TeamFoundation.WorkItemTracking.Client.FieldDefinitionCollection..ctor(WorkItemStore store, Boolean filtered)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.get_FieldDefinitions()
   at Microsoft.TeamFoundation.WorkItemTracking.Client.ClientWiqlAdapterHelper.FindField(String name, String prefix, Object tableTag)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.Wiql.NodeFieldName.Bind(IExternal external, NodeTableName tableContext, NodeFieldName fieldContext)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.Wiql.Node.BindChildren(IExternal external, NodeTableName tableContext, NodeFieldName fieldContext)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.Wiql.NodeFieldList.Bind(IExternal external, NodeTableName tableContext, NodeFieldName fieldContext)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.Wiql.NodeSelect.Bind(IExternal external, NodeTableName tableContext, NodeFieldName fieldContext)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.Query.Initialize(WorkItemStore …
Run Code Online (Sandbox Code Playgroud)

tfsbuild tfs2012

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

是否有vnext构建日志的日志查看器?

在TFS 2015中查看vnext构建时,我经常会看到:

日志太大,无法在浏览器中显示.您可以下载构建日志并离线查看.

例如
TFS Build Log太大的错误

下载时,这些只是文本文件,虽然记事本可以打开它们,但如果它们在屏幕上突出显示警告和错误,则不会获得漂亮的颜色.

是否有应用程序可以更容易地查看这些内容?

logfile tfs-2015 azure-pipelines

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

Visual Studio Online - “指定的解决方案配置“调试|任何 cpu”无效”

我需要在 Visual Studio Online 下构建 VS 解决方案。但是当我运行它时,我收到一个错误:

C:\a\50009cdf\Mobius-ASG\Prototyping\VCPROJ\SystemAl.sln.metaproj(0,0): Error MSB4126: The specified solution configuration "Debug|any cpu" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration.
Run Code Online (Sandbox Code Playgroud)

我尝试将“BuildPlatform”更改为“混合平台”,将“BuildConfiguration”更改为“发布”。但这没有帮助,我得到了同样的错误,但有新的值:

The specified solution configuration "Release|Mixed Platforms" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to …
Run Code Online (Sandbox Code Playgroud)

visual-studio azure-devops azure-pipelines

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

Visual Studio Team Services构建通知

有没有办法让visual studio构建通知工具与新的vNext构建系统一起使用?

目前,我所能看到的是可用于选择通知的旧的基于xaml工作流的构建.

我也想将它用于vNext脚本化构建系统.

azure-devops azure-pipelines

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

使用Azure SDK 2.8在VSO上托管构建失败

我们最近将Azure SDK更新为2.8.现在,在VSO托管构建上构建我们的解决方案时,我们会遇到构建错

未找到导入的项目"C:\ Program Files(x86)\ MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.8\Microsoft.WindowsAzure.targets".
确认<Import>声明中的路径是正确的,并且该文件存在于磁盘上.

我发现另一个问题与MSDN上发布的问题有类似问题,但没有任何答案.在托管构建中支持Azure SDK 2.8

任何人都知道如何解决这个问题?我们必须降级吗?

azure azure-sdk-.net azure-devops azure-pipelines

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

在 MsBuild 命令行参数中使用 $(SolutionName)

为了在新的 Build 2015 基于任务的构建中模拟 TFS 2013 的 XAML 构建中的“PerProject”选项,我希望能够将 SolutionName 传递给 msbuild 命令行参数,而不必每次都手动设置。

我想做这样的事情:

/p:OutputPath=$(Build.BinariesDirectory)\$(SolutionName)\
Run Code Online (Sandbox Code Playgroud)

我希望 MsBuild 推断 $(SolutionName) 参数。但是,当在命令行上传递此路径时,新的任务运行程序将$(Build.BinariesDirectory)用正确的目标路径替换 并保持$(SolutionName)不变。不幸的是,MsBuild 随后也保留了该属性:

Copying file from "obj\Debug\TFSBuild.exe" to "bin\debug\$(SolutionName)\TFSBuild.exe".
TFSBuild -> b\$(SolutionName)\TFSBuild.exe
Copying file from "obj\Debug\TFSBuild.pdb" to "b\$(SolutionName)\TFSBuild.pdb".
Run Code Online (Sandbox Code Playgroud)

我不记得将属性传递到命令行并让它进行后期扩展的方法...有什么提示吗?

对于那些想要模仿SingleFolder或 的人来说AsConfigured,这些很简单:

SingleFolder -> /p:OutputPath="$(Build.BinariesDirectory)"
Asconfigured -> don't pass OutputPath
PerProject   -> /p:OutputPath="$(Build.BinariesDirectory)\HARDCODESOLUTIONNAME"
Run Code Online (Sandbox Code Playgroud)

msbuild tfsbuild tfs-2015

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

Visual Studio Team Services构建队列未出现在列表中

我正在使用安装在本地计算机上的Build Agent进行测试,在Visual Studio Team Services中设置构建定义.

我按照这些说明创建构建代理,设置构建定义和排队构建.我在本地计算机上创建了代理,它出现在VSTS的代理池中.代理已启用并准备就绪.我还创建了一个调用我的构建脚本的构建定义.到目前为止,一切似乎都很好.

此时我已准备好对构建进行排队并运行它.对话框如下所示:

在此输入图像描述

标记为"队列"的下拉列表仅显示Hosted代理池.应该有一个叫第二个池,Default但它没有出现.我可以通过右键单击并检查HTML然后使用开发工具更改Hosted选项的值来"显示"它.Hosted的ID是2,我把它改成了,1因为我认为它是ID Default.一旦我这样做,我可以单击"确定",构建按预期运行 - 所有内容都由构建代理在我的本地计算机上签出.据推测,我对ID值的假设是正确的.

所以......一旦我在管道上捣乱一下,它正常工作的一切.但这绝对不是事情应该运作的方式.为什么Default队列没有显示在下拉列表中?我是否需要在某处翻转开关才能使其正常工作?我的帐户没有足够的访问权限吗?

其他一些细节:

  1. 我的帐户是"池管理员"
  2. 构建代理安装为Windows服务.我从命令提示符手动启动它.我无法将其安装为服务.
  3. 安装了构建代理的计算机正在运行Windows 10 x64 Pro.它是从Windows 8 x64 Pro升级而来的.
  4. 我无法使用托管代理,因为我正在构建Unity项目,并且托管代理不支持Unity.
  5. 我知道我可以使用Unity Cloud Build但我不想这样做.

UPDATE

我删除了以前的Build Agent,并在运行Windows 10 Enterprise x64的Windows Azure VM上安装了新的Build Agent.通过此更改,"托管"和"默认"队列将按预期显示.

tfsbuild azure-devops azure-pipelines

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

Visual Studio 2013中目标CPU和平台有什么区别?

在VS 2013中,在Project Properties中的Compile中,我看到两个看起来与同一事物有关的配置(右下方的printscreen).平台和目标CPU.

有什么不同?有没有? 在此输入图像描述

.net vb.net msbuild visual-studio visual-studio-2013

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

Visual Studio团队在线服务 - 运行sql脚本

我有一个我在网上使用visual studio团队服务设置的版本.我想在远程服务器上执行sql脚本作为一个步骤,但是看不到任何可用的东西.远程服务器上安装了代理.这样做的最佳做法是什么?只需添加一个在服务器上运行powershell/bat文件并让该文件执行sql脚本的步骤?

sql-server powershell build visual-studio azure-devops

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