Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
3e126969
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3e126969
编写于
10月 31, 2016
作者:
J
Jared Parsons
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removed support for a config file in BuildBoss
上级
c104c68d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
3 addition
and
85 deletion
+3
-85
build/config/BuildBossData.json
build/config/BuildBossData.json
+0
-7
src/Tools/BuildBoss/BuildBoss.csproj
src/Tools/BuildBoss/BuildBoss.csproj
+0
-1
src/Tools/BuildBoss/BuildBossConfig.cs
src/Tools/BuildBoss/BuildBossConfig.cs
+0
-18
src/Tools/BuildBoss/Program.cs
src/Tools/BuildBoss/Program.cs
+3
-59
未找到文件。
build/config/BuildBossData.json
已删除
100644 → 0
浏览文件 @
c104c68d
{
"targets"
:
[
"Roslyn.sln"
,
"src
\\
Samples
\\
Samples.sln"
]
}
src/Tools/BuildBoss/BuildBoss.csproj
浏览文件 @
3e126969
...
...
@@ -22,7 +22,6 @@
<Reference
Include=
"WindowsBase"
/>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"BuildBossConfig.cs"
/>
<Compile
Include=
"Program.cs"
/>
<Compile
Include=
"ProjectData.cs"
/>
<Compile
Include=
"ProjectUtil.cs"
/>
...
...
src/Tools/BuildBoss/BuildBossConfig.cs
已删除
100644 → 0
浏览文件 @
c104c68d
using
Newtonsoft.Json
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
BuildBoss
{
public
sealed
class
BuildBossConfig
{
/// <summary>
/// The solutions targetted by this scan
/// </summary>
[
JsonProperty
(
PropertyName
=
"targets"
)]
public
string
[]
Targets
{
get
;
set
;
}
}
}
src/Tools/BuildBoss/Program.cs
浏览文件 @
3e126969
...
...
@@ -11,28 +11,14 @@ namespace BuildBoss
{
internal
static
class
Program
{
internal
static
int
Main
(
string
[]
arg
s
)
internal
static
int
Main
(
string
[]
solutionFilePath
s
)
{
string
configFile
;
string
basePath
;
List
<
string
>
solutionFilePaths
;
if
(!
ParseCommandLine
(
args
,
out
configFile
,
out
basePath
,
out
solutionFilePaths
))
if
(
solutionFilePaths
.
Length
==
0
)
{
Usage
();
return
1
;
}
if
(
configFile
!=
null
)
{
var
config
=
JsonConvert
.
DeserializeObject
<
BuildBossConfig
>(
File
.
ReadAllText
(
configFile
));
foreach
(
var
target
in
config
.
Targets
)
{
solutionFilePaths
.
Add
(
Path
.
IsPathRooted
(
target
)
?
target
:
Path
.
Combine
(
basePath
,
target
));
}
}
var
allGood
=
true
;
foreach
(
var
solutionFilePath
in
solutionFilePaths
)
{
...
...
@@ -86,51 +72,9 @@ private static bool ProcessProject(string solutionPath, ProjectData projectData,
return
true
;
}
private
static
bool
ParseCommandLine
(
string
[]
args
,
out
string
configFile
,
out
string
basePath
,
out
List
<
string
>
solutionFilePaths
)
{
configFile
=
null
;
basePath
=
AppContext
.
BaseDirectory
;
solutionFilePaths
=
new
List
<
string
>();
var
i
=
0
;
while
(
i
<
args
.
Length
)
{
var
current
=
args
[
i
];
switch
(
current
.
ToLower
())
{
case
"-config"
:
if
(
i
+
1
>=
args
.
Length
)
{
Console
.
WriteLine
(
"config requires an argument"
);
return
false
;
}
configFile
=
args
[
i
+
1
];
i
+=
2
;
break
;
case
"-basepath"
:
if
(
i
+
1
>=
args
.
Length
)
{
Console
.
WriteLine
(
"basePath requise and argument"
);
return
false
;
}
basePath
=
args
[
i
+
1
];
i
+=
2
;
break
;
default
:
solutionFilePaths
.
Add
(
current
);
i
++;
break
;
}
}
return
true
;
}
private
static
void
Usage
()
{
Console
.
WriteLine
(
$"BuildBoss
[-config <config file path] [-basePath <base path>]
<solution paths>"
);
Console
.
WriteLine
(
$"BuildBoss <solution paths>"
);
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录