我已在活动包中添加了以下活动:
namespace TeamFoundation.Build.ActivityPack
{
using System;
using System.Activities;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.Build.Client;
[BuildActivity(HostEnvironmentOption.Agent)]
public sealed class CheckSlothInitialized : CodeActivity
{
[RequiredArgument]
public InArgument<string> DbUser { get; set; }
[RequiredArgument]
public InArgument<string> DbPassword { get; set; }
[RequiredArgument]
public InArgument<string> DbServer { get; set; }
[RequiredArgument]
public InArgument<string> DbName { get; set; }
protected override void Execute(CodeActivityContext context)
{
string connString = String.Format(
"data source={0};Integrated Security=false;Initial Catalog={1};User ID={2};Password={3}",
DbServer, DbName, DbUser, DbPassword);
}
}
}
之后我编译它我在工具箱中找不到它。我将在工具箱中选择项目并选择我的活动的dll,但即便如此,我也无法在System.Activities组件列表中找到它。
答案 0 :(得分:1)
请遵循这些检查点。