Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
A
aspnetcore
管理
动态
成员
标记
计划
议题
议题看板
里程碑
Wiki
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
构建
流水线
作业
流水线计划
产物
部署
发布
Package registry
容器镜像库
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
模型实验
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
dotnet
aspnetcore
提交
1cf3be07
提交
1cf3be07
编辑于
8 years ago
作者:
Nate McMaster
浏览文件
操作
下载
补丁
差异文件
React to aspnet/korebuild#171
上级
6dfbab0b
No related branches found
No related tags found
无相关合并请求
变更
4
隐藏空白变更内容
行内
左右并排
显示
4 个更改的文件
ToolsVersion.txt
+0
-1
0 个添加, 1 个删除
ToolsVersion.txt
build.ps1
+2
-3
2 个添加, 3 个删除
build.ps1
build.sh
+2
-3
2 个添加, 3 个删除
build.sh
makefile.shade
+4
-31
4 个添加, 31 个删除
makefile.shade
有
8 个添加
和
38 个删除
ToolsVersion.txt
已删除
100644 → 0
+
0
−
1
浏览文件 @
6dfbab0b
feature/msbuild
\ No newline at end of file
此差异已折叠。
点击以展开。
build.ps1
+
2
−
3
浏览文件 @
1cf3be07
...
@@ -32,8 +32,7 @@ cd $PSScriptRoot
...
@@ -32,8 +32,7 @@ cd $PSScriptRoot
$repoFolder
=
$PSScriptRoot
$repoFolder
=
$PSScriptRoot
$
env
:
REPO_FOLDER
=
$repoFolder
$
env
:
REPO_FOLDER
=
$repoFolder
$korebuildVersion
=
$
(
Get-Content
-Raw
$PSScriptRoot
/ToolsVersion.txt
)
.
Trim
()
$koreBuildZip
=
"https://github.com/aspnet/KoreBuild/archive/dev.zip"
$koreBuildZip
=
"https://github.com/aspnet/KoreBuild/archive/
$korebuildVersion
.zip"
if
(
$
env
:
KOREBUILD_ZIP
)
if
(
$
env
:
KOREBUILD_ZIP
)
{
{
$koreBuildZip
=
$
env
:
KOREBUILD_ZIP
$koreBuildZip
=
$
env
:
KOREBUILD_ZIP
...
@@ -64,4 +63,4 @@ if (!(Test-Path $buildFolder)) {
...
@@ -64,4 +63,4 @@ if (!(Test-Path $buildFolder)) {
}
}
}
}
&
"
$buildFile
"
$args
&
"
$buildFile
"
$args
\ No newline at end of file
此差异已折叠。
点击以展开。
build.sh
+
2
−
3
浏览文件 @
1cf3be07
...
@@ -2,8 +2,7 @@
...
@@ -2,8 +2,7 @@
repoFolder
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
repoFolder
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
cd
$repoFolder
cd
$repoFolder
toolsVersion
=
$(
cat
$repoFolder
/ToolsVersion.txt
)
koreBuildZip
=
"https://github.com/aspnet/KoreBuild/archive/dev.zip"
koreBuildZip
=
"https://github.com/aspnet/KoreBuild/archive/
$toolsVersion
.zip"
if
[
!
-z
$KOREBUILD_ZIP
]
;
then
if
[
!
-z
$KOREBUILD_ZIP
]
;
then
koreBuildZip
=
$KOREBUILD_ZIP
koreBuildZip
=
$KOREBUILD_ZIP
fi
fi
...
@@ -44,4 +43,4 @@ if test ! -d $buildFolder; then
...
@@ -44,4 +43,4 @@ if test ! -d $buildFolder; then
fi
fi
fi
fi
$buildFile
-r
$repoFolder
"
$@
"
$buildFile
-r
$repoFolder
"
$@
"
\ No newline at end of file
此差异已折叠。
点击以展开。
makefile.shade
+
4
−
31
浏览文件 @
1cf3be07
...
@@ -254,8 +254,6 @@ var buildTarget = "compile"
...
@@ -254,8 +254,6 @@ var buildTarget = "compile"
Environment.SetEnvironmentVariable("NUGET_PUBLISH_FEED", "https://dotnet.myget.org/F/aspnetcore-volatile-dev/api/v2/package");
Environment.SetEnvironmentVariable("NUGET_PUBLISH_FEED", "https://dotnet.myget.org/F/aspnetcore-volatile-dev/api/v2/package");
}
}
var universeToolsVersion = File.ReadAllText(Path.Combine(Directory.GetCurrentDirectory(), "ToolsVersion.txt")).Trim();
foreach (var batch in batchedRepos)
foreach (var batch in batchedRepos)
{
{
Parallel.ForEach(batch.ToArray(), new ParallelOptions { MaxDegreeOfParallelism = threads }, repo =>
Parallel.ForEach(batch.ToArray(), new ParallelOptions { MaxDegreeOfParallelism = threads }, repo =>
...
@@ -267,38 +265,13 @@ var buildTarget = "compile"
...
@@ -267,38 +265,13 @@ var buildTarget = "compile"
blockLogger.StartBlock(blockName);
blockLogger.StartBlock(blockName);
}
}
// begin workaround
if (!IsLinux)
// as we transition to VS 2017, some repos will build with project.json and others with csproj
// the '
csproj
' version of KoreBuild is the '
feature/msbuild
' branch of that repo. project.json
// support is on '
dev
'. This workaround avoids installing the version of KoreBuild used by
// individual repos unless it is already upgraded to the version currently used by Universe.
var repoToolsVersion = universeToolsVersion;
var buildPs1 = Path.Combine(repo, "build.ps1");
if (File.Exists(buildPs1))
{
{
foreach (var line in File.ReadAllLines(buildPs1))
Exec("cmd", "/C xcopy /S/Q/I/Y .build " + Path.Combine(repo, ".build"), "");
{
var match = Regex.Match(line, @".*https://github.com/aspnet/KoreBuild/archive/(.+)\.zip.*");
if (match != null && match.Success)
{
repoToolsVersion = match.Groups[1].Value;
break;
}
}
}
}
Log.Info(repo + " KoreBuild version = " + repoToolsVersion + ", Universe = " + universeToolsVersion);
else
// end workaround
if (repoToolsVersion == universeToolsVersion)
{
{
if (!IsLinux)
CopyFolder(".build", Path.Combine(repo, ".build"), true);
{
Exec("cmd", "/C xcopy /S/Q/I/Y .build " + Path.Combine(repo, ".build"), "");
}
else
{
CopyFolder(".build", Path.Combine(repo, ".build"), true);
}
}
}
try
try
...
...
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录