-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathProgram.cs
More file actions
45 lines (43 loc) · 1.08 KB
/
Program.cs
File metadata and controls
45 lines (43 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using Microsoft.Build.Utilities;
using Microsoft.Build;
namespace WebFormsForCore.Build
{
public class Program
{
public static void Main(string[] args)
{
if (args.Length == 0) return;
switch (args[0])
{
case "fakestrongname":
var task = new FakeStrongNameTask();
task.LogToConsole = true;
task.Assemblies = args[1].Split(';')
.Select(file => new TaskItem(file))
.ToArray();
task.PublicKey = args[2];
task.PublicKeyToken = args[3];
task.Key = new TaskItem(args[4]);
task.Source = new TaskItem(args[4]);
task.Execute();
break;
case "createdesignerfiles":
var task2 = new CreateAspDesignerFiles();
task2.LogToConsole = true;
task2.SeparateProcess = false;
task2.Assembly = new TaskItem(args[1]);
task2.Directory = new TaskItem(args[2]);
task2.Files = args[3].Split(';')
.Select(file => new TaskItem(file))
.ToArray();
task2.Execute();
break;
}
}
}
}