小编int*_*ork的帖子

Tfs构建失败

我在TFS构建控制器中配置了项目但是我在队列新构建后面临构建失败.在日志中我发现在检查了所有文件时缺少引用错误.

我如何调试和创建精美的tfs构建zip.

建立失败.

   "C:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp.sln" (default target) (1) ->
   "C:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj" (default target) (2) ->
   (ResolveAssemblyReferences target) -> 
     C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "EntityFramework". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\Builds\1\SourceCode\MvcApp\Sources\MainLine\Mvc App\MvcApp\MvcApp\MvcApp.csproj]
     C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Newtonsoft.Json". Check to make sure the assembly exists on disk. If …
Run Code Online (Sandbox Code Playgroud)

c# tfs tfsbuild

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

泛型运算符'+'不能应用于'T'和'T'类型的操作数

可能重复:
.NET泛型中重载运算符约束的解决方案在泛型中
实现算术运算?

我写了Generics类,但我遇到了标题中描述的问题.

class Program
    {
        static void Main(string[] args)
        {
            int a = 1;
            int b = 2;
            int c = 3;

            dynamic obj = new Gen<int>();
            obj.TestLine1(ref a, ref b);
            obj = new Gen<string>();
            obj.TestLine2(ref a, ref b, ref c);
            System.Console.WriteLine(a + " " + b);
            Console.ReadLine();
        }
    }

public class Gen<T>
    {
        public void TestLine1(ref T a, ref T b)
        {
            T temp;
            temp = a;
            a = b;
            b = temp;
        }
        public void TestLine2(ref …
Run Code Online (Sandbox Code Playgroud)

c# generics

-1
推荐指数
1
解决办法
6941
查看次数

标签 统计

c# ×2

generics ×1

tfs ×1

tfsbuild ×1