Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
Iot
提交
fd95f229
I
Iot
项目概览
jobily
/
Iot
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
Iot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fd95f229
编写于
4月 18, 2019
作者:
D
dotnet-maestro[bot]
提交者:
Jose Perez Rodriguez
4月 18, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update dependencies from
https://github.com/dotnet/arcade
build 20190418.1 (#370)
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19218.1
上级
c0984ad1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
37 addition
and
13 deletion
+37
-13
eng/Version.Details.xml
eng/Version.Details.xml
+2
-2
eng/common/CheckSymbols.ps1
eng/common/CheckSymbols.ps1
+34
-10
global.json
global.json
+1
-1
未找到文件。
eng/Version.Details.xml
浏览文件 @
fd95f229
...
...
@@ -11,9 +11,9 @@
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency
Name=
"Microsoft.DotNet.Arcade.Sdk"
Version=
"1.0.0-beta.1921
7
.1"
>
<Dependency
Name=
"Microsoft.DotNet.Arcade.Sdk"
Version=
"1.0.0-beta.1921
8
.1"
>
<Uri>
https://github.com/dotnet/arcade
</Uri>
<Sha>
4
e21d52dabbb9f5705a90f097acb1465a0354c0d
</Sha>
<Sha>
4
6718d98c0fd03690a6a8c83da692a4a85a17902
</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
eng/common/CheckSymbols.ps1
浏览文件 @
fd95f229
...
...
@@ -9,7 +9,8 @@ Add-Type -AssemblyName System.IO.Compression.FileSystem
function
FirstMatchingSymbolDescriptionOrDefault
{
param
(
[
string
]
$FullPath
,
# Full path to the module that has to be checked
[
string
]
$TargetServerParam
# Parameter to pass to `Symbol Tool` indicating the server to lookup for symbols
[
string
]
$TargetServerParam
,
# Parameter to pass to `Symbol Tool` indicating the server to lookup for symbols
[
string
]
$SymbolsPath
)
$FileName
=
[
System.IO.Path
]::
GetFileName
(
$FullPath
)
...
...
@@ -33,9 +34,9 @@ function FirstMatchingSymbolDescriptionOrDefault {
# DWARF file for a .dylib
$DylibDwarf
=
$SymbolPath
.
Replace
(
$Extension
,
".dylib.dwarf"
)
.
\dotnet-symbol.exe
--symbols
--modules
$TargetServerParam
$FullPath
-o
$SymbolsPath
-d
|
Out-Null
.
\dotnet-symbol.exe
--symbols
--modules
--windows-pdbs
$TargetServerParam
$FullPath
-o
$SymbolsPath
|
Out-Null
if
(
Test-Path
$PdbPath
)
{
return
"PDB"
}
...
...
@@ -73,8 +74,9 @@ function CountMissingSymbols {
$MissingSymbols
=
0
$PackageId
=
[
System.IO.Path
]::
GetFileNameWithoutExtension
(
$PackagePath
)
$ExtractPath
=
$ExtractPath
+
$PackageId
;
$SymbolsPath
=
$ExtractPath
+
$PackageId
+
".Symbols"
;
$PackageGuid
=
New-Guid
$ExtractPath
=
Join-Path
-Path
$ExtractPath
-ChildPath
$PackageGuid
$SymbolsPath
=
Join-Path
-Path
$ExtractPath
-ChildPath
"Symbols"
[
System.IO.Compression.ZipFile
]::
ExtractToDirectory
(
$PackagePath
,
$ExtractPath
)
...
...
@@ -84,10 +86,15 @@ function CountMissingSymbols {
Get-ChildItem
-Recurse
$ExtractPath
|
Where-Object
{
$RelevantExtensions
-contains
$_
.
Extension
}
|
ForEach-Object
{
Write-Host
-NoNewLine
"
`t
Checking file"
$_
.
FullName
"... "
if
(
$_
.
FullName
-Match
"\\ref\\"
)
{
Write-Host
"
`t
Ignoring reference assembly file"
$_
.
FullName
return
}
$SymbolsOnMSDL
=
FirstMatchingSymbolDescriptionOrDefault
$_
.
FullName
"--microsoft-symbol-server"
$SymbolsOnSymWeb
=
FirstMatchingSymbolDescriptionOrDefault
$_
.
FullName
"--internal-server"
$SymbolsOnMSDL
=
FirstMatchingSymbolDescriptionOrDefault
$_
.
FullName
"--microsoft-symbol-server"
$SymbolsPath
$SymbolsOnSymWeb
=
FirstMatchingSymbolDescriptionOrDefault
$_
.
FullName
"--internal-server"
$SymbolsPath
Write-Host
-NoNewLine
"
`t
Checking file"
$_
.
FullName
"... "
if
(
$SymbolsOnMSDL
-ne
$null
-and
$SymbolsOnSymWeb
-ne
$null
)
{
Write-Host
"Symbols found on MSDL ("
$SymbolsOnMSDL
") and SymWeb ("
$SymbolsOnSymWeb
")"
...
...
@@ -116,18 +123,35 @@ function CountMissingSymbols {
function
CheckSymbolsAvailable
{
if
(
Test-Path
$ExtractPath
)
{
Remove-Item
-recurse
$ExtractPath
Remove-Item
$ExtractPath
-Force
-Recurse
-ErrorAction
SilentlyContinue
}
Get-ChildItem
"
$InputPath
\*.nupkg"
|
ForEach-Object
{
$FileName
=
$_
.
Name
# These packages from Arcade-Services include some native libraries that
# our current symbol uploader can't handle. Below is a workaround until
# we get issue: https://github.com/dotnet/arcade/issues/2457 sorted.
if
(
$FileName
-Match
"Microsoft\.DotNet\.Darc\."
)
{
Write-Host
"Ignoring Arcade-services file:
$FileName
"
Write-Host
return
}
elseif
(
$FileName
-Match
"Microsoft\.DotNet\.Maestro\.Tasks\."
)
{
Write-Host
"Ignoring Arcade-services file:
$FileName
"
Write-Host
return
}
Write-Host
"Validating
$FileName
"
$Status
=
CountMissingSymbols
"
$InputPath
\
$FileName
"
if
(
$Status
-ne
0
)
{
Write-Error
"Missing symbols for
$Status
modules in the package
$FileName
"
}
Write-Host
}
}
...
...
global.json
浏览文件 @
fd95f229
...
...
@@ -6,6 +6,6 @@
"version"
:
"2.1.503"
},
"msbuild-sdks"
:
{
"Microsoft.DotNet.Arcade.Sdk"
:
"1.0.0-beta.1921
7
.1"
"Microsoft.DotNet.Arcade.Sdk"
:
"1.0.0-beta.1921
8
.1"
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录