小编Ale*_*era的帖子

Azure DevOps 中的名称和显示名称有什么区别

我在 azure devops 中找到了以下任务定义:

\n\n
- task: DotNetCoreCLI@2\n  name: 'CleanProjectsBeforeBuild'\n  displayName: Clean Projects Before Build\n  inputs:\n    command: 'custom'\n    projects: $(System.DefaultWorkingDirectory)\n    custom: 'clean'\n    arguments: '--configuration  $(BuildConfiguration)'\n
Run Code Online (Sandbox Code Playgroud)\n\n

我的问题是 \xc2\xbf 'name' 属性和 'displayName' 属性有什么区别?

\n

azure-devops azure-pipelines

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

与服务器成功建立连接,但在登录前握手期间发生错误。(provider:TCP Provider,error:35)

我在 .Net Core 中内置了一个后台服务,它执行 SQL Server 数据库过程,如下所示:

public int ExecuteProcedure(string connectionString, string sql, Dictionary<string, object> parameters = null)
{
        var response = -99;
        using (SqlConnection connection = new SqlConnection(connectionString))
        {
            connection.Open();
            // Create a SqlCommand, and identify it as a stored procedure.
            using (SqlCommand sqlCommand = new SqlCommand(sql, connection))
            {
                sqlCommand.CommandType = CommandType.StoredProcedure;
                if(parameters != null)
                    SetParameters(sqlCommand, parameters);
                response = sqlCommand.ExecuteNonQuery();
            }
            connection.Close();
        }

        return response;
}
Run Code Online (Sandbox Code Playgroud)

当我在本地计算机上运行 bakcgroundservice 时,它​​运行没有问题,但是当我使用 docker 和 kubernetes 时,出现以下错误:

与服务器成功建立连接,但在登录前握手期间发生错误。(提供者:TCP 提供者,错误:35 - 捕获内部异常) …

sql-server kubernetes asp.net-core

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