我们希望通过Team Foundation Server为客户提供报告错误以及查看现有错误和工作项的权限.
为此,我们需要一个客户友好的网络前端.它应该易于使用并具有良好的UI.我知道Web Access,但认为它太过面向开发人员而无法让我们的客户使用.
有没有好的开源或商业产品呢?重要的是,我们将能够根据我们的需求定制产品.
我正在进行一项操作,我从组件接收一些字节,进行一些处理,然后将其发送到下一个组件.我需要能够计算我在任何给定时间看到的所有数据的哈希值 - 并且因为数据大小; 我无法将其全部保存在本地缓冲区中.
在这些情况下,您如何计算(MD5)哈希值?
我想我应该能够保持哈希的中间结果,并在我去的时候添加更多数据.但是,任何内置框架类都支持这个吗?
当我对MSSQL进行查询时,我可以发出这些语句来获取有关时间的统计信息以及随查询返回的IO.
SET STATISTICS IO ON;
SET STATISTICS TIME ON;
Run Code Online (Sandbox Code Playgroud)
它们是查询性能的良好第一眼指示器.MySql中是否存在类似的内容,如何启用它?
我正在尝试设置TFS Build,并且无法让我的测试作为构建的一部分运行.我在构建日志中收到以下奇怪的错误消息:
D:\TeamBuild\main-production\Company-Test DEV\Sources\root\main-production\customer-projects\Company\sc6-v2\Company-DEV.vsmdi
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
MSBUILD : warning MSB6006: "MSTest.exe" exited with code 1.
The previous error was converted to a warning because the task was called with ContinueOnError=true.
Build continuing because "ContinueOnError" on the task "TestToolsTask" is set to "true".
Run Code Online (Sandbox Code Playgroud)
基本上,它抱怨我的.vsmdi路径太长了.但它不是,它只有大约150个字符,当说限制为260个字符.
我怎样才能解决这个问题 ?
这是TFSBuild.proj文件:
<?xml version="1.0" encoding="utf-8"?>
<!-- DO …Run Code Online (Sandbox Code Playgroud) 在反映接口类型时,我只获取特定类型的成员,而不是继承成员.
在这个过于简化的例子中,程序只打印"Name",而不是"ItemNumber","Name",正如我所料:
using System;
public interface IBasicItem
{
string ItemNumber { get; set; }
}
public interface IItem : IBasicItem
{
string Name { get; set; }
}
class Program
{
static void Main(string[] args)
{
var type = typeof (IItem);
foreach (var prop in type.GetProperties())
Console.WriteLine(prop.Name);
}
}
Run Code Online (Sandbox Code Playgroud)
这背后的理由是什么?当我从基接口继承时,我说我的接口的任何实现,也必须实现继承的成员.换句话说,IItem 是一个 IBasicItem.那么为什么继承的成员不会出现反射?
我需要将外部进程的输出捕获到变量(字符串)中,因此我可以对其进行一些处理.
只要进程写入stdout ,这里的答案就可以很好地工作.但是,如果进程失败,则会写入stderr.我也想捕捉这个字符串,我无法弄清楚如何做到这一点.
例:
$cmdOutput = (svn info) | out-string
Run Code Online (Sandbox Code Playgroud)
这是有效的,除非SVN有错误.如果发生错误,SVN会写入stderr,并且$cmdOutput为空.
如何捕获PowerShell中变量中写入stderr的文本?
我正在尝试使用Visual Studio 2010扩展,我需要处理IMouseProcessor公开的事件.
据我所知,我应该创建一个IMouseProcessorProvider并导出使用MEF,以便Visual Studio可以自动获取它.
我创建了这个类:
[Export(typeof(IMouseProcessorProvider))]
[ContentType("code")]
internal sealed class MouseProcessorFactory : IMouseProcessorProvider
{
public IMouseProcessor GetAssociatedProcessor(IWpfTextView wpfTextView)
{
return new MouseProcessor();
}
}
Run Code Online (Sandbox Code Playgroud)
当我运行Visual Studio的实验实例时,我的扩展在扩展管理器中可见.但我的自定义鼠标处理器提供商从未被调用过.我错过了什么/我做错了什么?
我正在做一个需要读取一些文件并进行一些处理的命令行应用程序.
命令行上可以有许多文件参数,每个参数都可以采用以下格式之一:
应支持网络共享.
获取与命令行参数匹配的所有文件的集合的最简单方法是什么?
应支持的命令行示例:
tool.exe myfile.dat
tool.exe myfile.*
tool.exe ..\..\*.*
tool.exe C:\Temp\test.*
tool.exe \\server\share\*.dat
Run Code Online (Sandbox Code Playgroud)
框架中没有内置任何内容来执行此操作吗?
我一直在阅读SharePoint 2010的工作,我注意到我从书籍到教学视频遇到的许多代码示例都是以我从未在C#中存在的方式构建SharePoint对象(并且认为是VB独有的):
SPWeb web = properties.Feature.Parent as SPWeb;
我习惯于以这种方式进行(在VB之外)进行投射,(SPWeb)properties.Feature.Parent并且只是好奇,如果有任何特殊原因,我遇到的SharePoint上的大多数部分都使用VB-esque强制转换符号.
我有一个实现NSCoding的Objective-C类.我需要以NSDictionary的形式返回此类的实例的表示,其中键是属性名称,值是属性值.
如何在Objective-C中进行此转换?
c# ×5
.net ×2
tfs ×2
bug-tracking ×1
build ×1
cocoa ×1
command-line ×1
hash ×1
ios ×1
iphone ×1
md5 ×1
mef ×1
msbuild ×1
mysql ×1
objective-c ×1
powershell ×1
reflection ×1
sharepoint ×1
sql ×1
sql-server ×1
testing ×1
vsx ×1
web-frontend ×1