小编Oğu*_*pçu的帖子

Teamcity VCS Build Trigger无法正常工作

我使用TeamCity 7.1,我已经配置了我的构建配置并添加了一个VCS构建触发器,用于在签入完成时触发构建.(VCS触发器配置是默认的,我没有更改它)

在我将代码推送到git后,teamcity意识到了这一点(正如你所看到的那样=> http://prntscr.com/17j33d),但没有触发构建.

我想在源上检测到更改时触发构建.

teamcity teamcity-7.1

8
推荐指数
1
解决办法
7740
查看次数


Autofixture Fixture.Build().With()On Same Property Name

当我使用"with"方法设置属性时,它会在同名的嵌套对象上保留null所有属性.

(我使用autofixture的最新版本为3.0.8)

public class Something {
    public string Id { get; set; }
    public IList<Something> Things { get; set; }
}

var obj = Fixture.Build<Something>().With(q => q.Id, "something").CreateAnonymous()
Run Code Online (Sandbox Code Playgroud)

在这种情况下,obj.Id =="something"等于true,但obj.Things [0] .Id == null equalsto true.

我认为有一个错误或错误; 有人可以帮忙吗?

c# unit-testing autofixture

3
推荐指数
1
解决办法
9463
查看次数

在Linux环境中使用xbuild构建.NET项目

我使用Nancy Asp.Net Web应用程序模板,使用Visual Studio 2013创建了非常简单的项目.

在我的开发机器中,它是由Visual Studio 2013成功构建的.

但是当我尝试使用xbuild在Linux Mono环境中构建相同的源时,它就失败了.

这是输出:

root@jannes:/home/hitly/hitly/src/Hitly.Service# xbuild
XBuild Engine Version 12.0
Mono, Version 3.2.8.0
Copyright (C) 2005-2013 Various Mono authors

Build started 3/31/2014 2:11:49 PM.
__________________________________________________
Project "/home/hitly/hitly/src/Hitly.Service/Hitly.Service.csproj" (default target(s)):
        Target RestorePackages:
                Executing: mono --runtime=v4.0.30319 ../.nuget/NuGet.exe install "" -source ""   -RequireConsent -solutionDir "../"
                The specified path is not of a legal form (empty). /home/hitly/hitly/src/.nuget/NuGet.targets: error : Command 'mono --runtime=v4.0.30319 ../.nuget/NuGet.exe install "" -source ""   -RequireConsent -solutionDir "../"' exited with code: 1.
        Task "Exec" execution …
Run Code Online (Sandbox Code Playgroud)

mono xbuild nuget nuget-package-restore

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