Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
60e9f8c1
R
runtime
项目概览
dotNET Platform
/
runtime
大约 1 年 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
60e9f8c1
编写于
9月 29, 2022
作者:
A
Ankit Jain
3
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
InstallWorkloadFromArtifacts: Remove hack because we have an updated sdk now
上级
ecac0cae
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
47 deletion
+0
-47
src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs
src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs
+0
-47
未找到文件。
src/tasks/WorkloadBuildTasks/InstallWorkloadFromArtifacts.cs
浏览文件 @
60e9f8c1
...
...
@@ -41,14 +41,6 @@ public class InstallWorkloadFromArtifacts : Task
private
const
string
s_nugetInsertionTag
=
"<!-- TEST_RESTORE_SOURCES_INSERTION_LINE -->"
;
private
string
AllManifestsStampPath
=>
Path
.
Combine
(
SdkWithNoWorkloadInstalledPath
,
".all-manifests.stamp"
);
private
static
readonly
string
[]
s_manifestIds
=
new
[]
{
"microsoft.net.workload.mono.toolchain"
,
"microsoft.net.workload.emscripten.net6"
,
"microsoft.net.workload.emscripten.net7"
,
"microsoft.net.workload.mono.toolchain.net6"
,
"microsoft.net.workload.mono.toolchain.net7"
};
public
override
bool
Execute
()
{
...
...
@@ -154,8 +146,6 @@ private bool InstallAllManifests()
return
true
;
}
ExecuteHackForInstallerMismatch
();
string
nugetConfigContents
=
GetNuGetConfig
();
HashSet
<
string
>
manifestsInstalled
=
new
();
foreach
(
ITaskItem
workload
in
WorkloadIds
)
...
...
@@ -185,43 +175,6 @@ private bool InstallAllManifests()
File
.
WriteAllText
(
AllManifestsStampPath
,
string
.
Empty
);
return
true
;
void
ExecuteHackForInstallerMismatch
()
{
// HACK - because sdk doesn't yet have the version-less manifest names in the known
// workloads list
string
?
txtPath
=
Directory
.
EnumerateFiles
(
Path
.
Combine
(
SdkWithNoWorkloadInstalledPath
,
"sdk"
),
"IncludedWorkloadManifests.txt"
,
new
EnumerationOptions
{
RecurseSubdirectories
=
true
,
MaxRecursionDepth
=
2
})
.
FirstOrDefault
();
if
(
txtPath
is
null
)
throw
new
LogAsErrorException
(
$"Could not find IncludedWorkloadManifests.txt in
{
SdkWithNoWorkloadInstalledPath
}
"
);
string
stampPath
=
Path
.
Combine
(
Path
.
GetDirectoryName
(
txtPath
)!,
".stamp"
);
if
(
File
.
Exists
(
stampPath
))
return
;
List
<
string
>
lines
=
File
.
ReadAllLines
(
txtPath
).
ToList
();
int
originalCount
=
lines
.
Count
;
// we want to insert the manifests in a fixed order
// so first remove all of them
foreach
(
string
manifestId
in
s_manifestIds
)
lines
.
Remove
(
manifestId
);
// .. and then insert
lines
.
AddRange
(
s_manifestIds
);
// currently using emscripten.net7 instead of this,
// so remove it from the list
lines
.
Remove
(
"microsoft.net.workload.emscripten"
);
if
(
lines
.
Count
!=
originalCount
)
{
// Update the file only if we are making any changes
File
.
WriteAllText
(
txtPath
,
string
.
Join
(
Environment
.
NewLine
,
lines
));
}
File
.
WriteAllText
(
stampPath
,
""
);
}
}
private
bool
InstallPacks
(
InstallWorkloadRequest
req
,
string
nugetConfigContents
)
...
...
麦壳饼
@mysticboy
mentioned in commit
cb9e7a60
·
9月 30, 2022
mentioned in commit
cb9e7a60
mentioned in commit cb9e7a60fec2de1bc51c7542d83037290023a99e
开关提交列表
麦壳饼
@mysticboy
mentioned in commit
a2991246
·
10月 04, 2022
mentioned in commit
a2991246
mentioned in commit a29912464638643845a5bbce9b3d8c734bfcd090
开关提交列表
麦壳饼
@mysticboy
mentioned in commit
a2991246
·
10月 04, 2022
mentioned in commit
a2991246
mentioned in commit a29912464638643845a5bbce9b3d8c734bfcd090
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录