小编loc*_*obr的帖子

Visual Studio 2013解决方案构建不在构建顺序中

我在使用C#解决方案构建"Fresh"时遇到了问题.如果我清理解决方案并再次构建它将无法构建(我可以做几次并且它将构建).它有一个关于azure项目在它依赖的worker和web项目之前构建的错误.还有关于解决方案中的大多数项目是如何寻找的

WAT070 : The referenced assembly {...}/Worker.dll was not found. 
Please make sure to build the role project that produces this assembly before building this Windows Azure Cloud Service Project.
{...}\VisualStudio\v12.0\Windows Azure Tools\2.2\Microsoft.WindowsAzure.targets 1252    5   AzureProjectName
Run Code Online (Sandbox Code Playgroud)

现在,如果我按照项目依赖项中列出的顺序构建项目 - >构建顺序一切正常.此外,在Azure项目之前列出了Web和工作角色.

c# msbuild azure visual-studio visual-studio-2013

26
推荐指数
3
解决办法
3万
查看次数

为什么C#编译器满足于双IEnumerable <T>和foreach T?

我知道这段代码不起作用(并且没有问题以一种可行的方式编写它).我想知道编译器如何构建没有任何错误.如果你在哪里运行它会导致运行时错误?(假设数据不为空)

using System;
using System.Collections.Generic;

public class Class1
{
    public void Main()
    {
        IEnumerable<IEnumerable<Foo>> data = null;

        foreach(Foo foo in data){
            foo.Bar();
        }
    }

}

public class Foo {
    public void Bar() { }
}
Run Code Online (Sandbox Code Playgroud)

.net c# ienumerable foreach

17
推荐指数
1
解决办法
530
查看次数

Apache Spark 1.3 数据框 SaveAsTable 数据库(默认)

我正在尝试使用saveAsTable将数据帧保存为表,并且它可以工作,但我想将表保存到不是默认数据库,有谁知道是否有办法设置要使用的数据库?我尝试使用 hiveContext.sql("use db_name") 这似乎没有做到这一点。有一个saveAsTable接受一些选项。有没有一种方法可以让我使用选项来做到这一点?

scala apache-spark

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