Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
387bc47
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 9, 2019
365100a
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 12, 2019
3439c89
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 13, 2019
735bd98
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 14, 2019
657493a
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 14, 2019
f8ae5df
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 15, 2019
f5f4773
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 16, 2019
6edb6fa
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 17, 2019
787652c
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 18, 2019
b3fc1d3
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 19, 2019
4bcf4ba
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 20, 2019
469fcf5
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 21, 2019
726811f
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 22, 2019
281bd39
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 23, 2019
b74b71a
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 24, 2019
90c1989
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 25, 2019
a2fe4a4
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 26, 2019
9b93eb8
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 27, 2019
1edba4c
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 28, 2019
6781717
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 29, 2019
272a037
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Nov 30, 2019
5947c35
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 1, 2019
32ecb5f
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 2, 2019
dd16087
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 3, 2019
fdcd2d4
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 4, 2019
d232ffa
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 5, 2019
b3126ae
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 6, 2019
eb26be1
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 7, 2019
69197b3
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 8, 2019
7710346
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 9, 2019
485b1e5
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 12, 2019
1e555aa
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 13, 2019
8039988
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 14, 2019
f6ae95d
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 15, 2019
edf03ae
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 16, 2019
4a28f5f
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 17, 2019
5a98c43
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 18, 2019
915f0c8
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 20, 2019
554b9d0
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 21, 2019
addb249
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 22, 2019
bda6dff
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 23, 2019
9aac4c8
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 24, 2019
1926b3a
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 25, 2019
a8358d4
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 26, 2019
a7a0994
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 27, 2019
10b5943
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 28, 2019
d0a1385
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 29, 2019
11a260a
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 30, 2019
a83b0bf
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Dec 31, 2019
0566c38
Update dependencies from https://github.com/dotnet/arcade build 20191…
dotnet-maestro[bot] Jan 1, 2020
56f569b
Update dependencies from https://github.com/dotnet/arcade build 20200…
dotnet-maestro[bot] Jan 2, 2020
3379268
Update dependencies from https://github.com/dotnet/arcade build 20200…
dotnet-maestro[bot] Jan 3, 2020
6411a4f
Update dependencies from https://github.com/dotnet/arcade build 20200…
dotnet-maestro[bot] Jan 4, 2020
9817369
Update dependencies from https://github.com/dotnet/arcade build 20200…
dotnet-maestro[bot] Jan 5, 2020
aa835c5
Update dependencies from https://github.com/dotnet/arcade build 20200…
dotnet-maestro[bot] Jan 6, 2020
95ba8ed
Update dependencies from https://github.com/dotnet/arcade build 20200…
dotnet-maestro[bot] Jan 7, 2020
692ad10
Update dependencies from https://github.com/dotnet/arcade build 20200…
dotnet-maestro[bot] Jan 8, 2020
b29e3dd
Update dependencies from https://github.com/dotnet/arcade build 20200…
dotnet-maestro[bot] Jan 9, 2020
d560706
Update dependencies from https://github.com/dotnet/arcade build 20200…
dotnet-maestro[bot] Jan 10, 2020
cab6471
Update Exclusions:
rladuca Jan 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@
<Uri>https://github.com/dotnet/core-setup</Uri>
<Sha>4ace84dbf94128b4825c76cdd09b46dba7473478</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.19557.20">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20059.3">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>b62f1617f2c453497fd55697c04dd8021a38dc17</Sha>
<Sha>96a4497b2c38c6b7e19c39e4cb8fe5adac299fb4</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="5.0.0-beta.19557.20">
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="5.0.0-beta.20059.3">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>b62f1617f2c453497fd55697c04dd8021a38dc17</Sha>
<Sha>96a4497b2c38c6b7e19c39e4cb8fe5adac299fb4</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.Platforms" Version="5.0.0-alpha1.19504.7" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
Expand All @@ -95,17 +95,17 @@
<Uri>https://github.com/dotnet/coreclr</Uri>
<Sha>b415b57a15b0c6ba77e63df901823bb46b8aafda</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.19557.20">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="5.0.0-beta.20059.3">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>b62f1617f2c453497fd55697c04dd8021a38dc17</Sha>
<Sha>96a4497b2c38c6b7e19c39e4cb8fe5adac299fb4</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="5.0.0-beta.19557.20">
<Dependency Name="Microsoft.DotNet.ApiCompat" Version="5.0.0-beta.20059.3">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>b62f1617f2c453497fd55697c04dd8021a38dc17</Sha>
<Sha>96a4497b2c38c6b7e19c39e4cb8fe5adac299fb4</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.19557.20">
<Dependency Name="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.20059.3">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>b62f1617f2c453497fd55697c04dd8021a38dc17</Sha>
<Sha>96a4497b2c38c6b7e19c39e4cb8fe5adac299fb4</Sha>
</Dependency>
<Dependency Name="System.Resources.Extensions" Version="5.0.0-alpha1.19504.7" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
Expand Down
6 changes: 3 additions & 3 deletions eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
</PropertyGroup>
<!-- Packages that come from https://github.com/dotnet/arcade -->
<PropertyGroup>
<MicrosoftDotNetApiCompatVersion>5.0.0-beta.19557.20</MicrosoftDotNetApiCompatVersion>
<MicrosoftDotNetCodeAnalysisPackageVersion>5.0.0-beta.19557.20</MicrosoftDotNetCodeAnalysisPackageVersion>
<MicrosoftDotNetGenAPIVersion>5.0.0-beta.19557.20</MicrosoftDotNetGenAPIVersion>
<MicrosoftDotNetApiCompatVersion>5.0.0-beta.20059.3</MicrosoftDotNetApiCompatVersion>
<MicrosoftDotNetCodeAnalysisPackageVersion>5.0.0-beta.20059.3</MicrosoftDotNetCodeAnalysisPackageVersion>
<MicrosoftDotNetGenAPIVersion>5.0.0-beta.20059.3</MicrosoftDotNetGenAPIVersion>
</PropertyGroup>
<!-- Packages that come from https://github.com/dotnet/corefxlab -->
<PropertyGroup>
Expand Down
127 changes: 73 additions & 54 deletions eng/WpfArcadeSdk/tools/GenApi/GlobalAttrExclusions.txt
Original file line number Diff line number Diff line change
@@ -1,54 +1,73 @@
// These attributes should be excluded from reference assemblies.

T:System.ComponentModel.DesignerAttribute
T:System.ComponentModel.Design.Serialization.DesignerSerializerAttribute
T:System.ComponentModel.Design.Serialization.RootDesignerSerializerAttribute
T:System.ComponentModel.EditorAttribute
T:System.ComponentModel.ToolboxItemAttribute
T:System.ComponentModel.TypeDescriptionProviderAttribute
T:System.Configuration.ConfigurationPropertyAttribute
T:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute
T:System.Diagnostics.CodeAnalysis.SuppressMessageAttribute
T:System.Diagnostics.DebuggerBrowsableAttribute
T:System.Diagnostics.DebuggerDisplayAttribute
T:System.Diagnostics.DebuggerHiddenAttribute
T:System.Diagnostics.DebuggerNonUserCodeAttribute
T:System.Diagnostics.DebuggerStepThroughAttribute
T:System.Diagnostics.DebuggerTypeProxyAttribute
T:System.Diagnostics.MonitoringDescriptionAttribute
T:System.IO.IODescriptionAttribute
T:System.Runtime.CompilerServices.AsyncStateMachineAttribute
T:System.Runtime.CompilerServices.CompilerGeneratedAttribute
T:System.Runtime.CompilerServices.IteratorStateMachineAttribute
T:System.Runtime.CompilerServices.TypeForwardedFromAttribute
T:System.Runtime.CompilerServices.MethodImpl
T:System.Runtime.ConstrainedExecution.ReliabilityContractAttribute
T:System.Runtime.InteropServices.ClassInterfaceAttribute
T:System.Runtime.InteropServices.ComDefaultInterfaceAttribute
T:System.Runtime.InteropServices.ComVisibleAttribute
T:System.Runtime.InteropServices.GuidAttribute
T:System.Runtime.InteropServices.InterfaceTypeAttribute
T:System.Runtime.InteropServices.StructLayoutAttribute
T:System.Runtime.Serialization.KnownTypeAttribute
T:System.Security.Permissions.EnvironmentPermissionAttribute
T:System.Security.Permissions.FileIOPermissionAttribute
T:System.Security.Permissions.HostProtectionAttribute
T:System.Security.Permissions.IsolatedStorageFilePermissionAttribute
T:System.Security.Permissions.PermissionSetAttribute
T:System.Security.Permissions.ReflectionPermissionAttribute
T:System.Security.Permissions.SecurityPermissionAttribute
T:System.Security.Permissions.StrongNameIdentityPermissionAttribute
T:System.Security.SecurityCriticalAttribute
T:System.Security.SecuritySafeCriticalAttribute
T:System.Security.SuppressUnmanagedCodeSecurityAttribute
T:System.Xml.Serialization.XmlAttributeAttribute
T:System.Xml.Serialization.XmlEnumAttribute
T:System.Xml.Serialization.XmlIgnoreAttribute
T:System.Xml.Serialization.XmlRootAttribute
T:System.Runtime.Versioning.NonVersionableAttribute
T:System.Runtime.CompilerServices.IntrinsicAttribute
T:System.Runtime.CompilerServices.ExtensionAttribute
T:System.Drawing.SRDescriptionAttribute
T:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute
T:System.Runtime.CompilerServices.AsyncMethodBuilderAttribute
T:System.Reflection.DefaultMemberAttribute
// These attributes should be excluded from reference assemblies.

// Only used by generators for KnownTypes.cs - Exists in multiple namespaces as it is a shared source file
T:MS.Internal.PresentationCore.CommonDependencyPropertyAttribute
T:MS.Internal.PresentationFramework.CommonDependencyPropertyAttribute

// Not needed for reference assemblies - Exists in multiple namespaces as it is a shared source file
T:MS.Internal.PresentationCore.FriendAccessAllowedAttribute
T:MS.Internal.WindowsBase.FriendAccessAllowedAttribute

// Designer reads this from runtime assemblies, not reference assemblies
T:MS.Internal.CustomCategoryAttribute
T:System.Windows.CustomCategoryAttribute
T:System.ComponentModel.DefaultValueAttribute

T:System.ComponentModel.DesignerAttribute
T:System.ComponentModel.Design.Serialization.DesignerSerializerAttribute
T:System.ComponentModel.Design.Serialization.RootDesignerSerializerAttribute
T:System.ComponentModel.EditorAttribute
T:System.ComponentModel.ToolboxItemAttribute
T:System.ComponentModel.TypeDescriptionProviderAttribute
T:System.Configuration.ConfigurationPropertyAttribute
T:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute
T:System.Diagnostics.CodeAnalysis.SuppressMessageAttribute
T:System.Diagnostics.DebuggerBrowsableAttribute
T:System.Diagnostics.DebuggerDisplayAttribute
T:System.Diagnostics.DebuggerHiddenAttribute
T:System.Diagnostics.DebuggerNonUserCodeAttribute
T:System.Diagnostics.DebuggerStepThroughAttribute
T:System.Diagnostics.DebuggerTypeProxyAttribute
T:System.Diagnostics.MonitoringDescriptionAttribute
T:System.Diagnostics.StackTraceHiddenAttribute
T:System.IO.IODescriptionAttribute
T:System.Runtime.CompilerServices.AsyncIteratorStateMachineAttribute
T:System.Runtime.CompilerServices.AsyncStateMachineAttribute
T:System.Runtime.CompilerServices.CompilerGeneratedAttribute
T:System.Runtime.CompilerServices.IteratorStateMachineAttribute
T:System.Runtime.CompilerServices.MethodImpl
T:System.Runtime.CompilerServices.NullableAttribute
T:System.Runtime.CompilerServices.NullableContextAttribute
T:System.Runtime.CompilerServices.PreserveDependencyAttribute
T:System.Runtime.CompilerServices.TypeForwardedFromAttribute
T:System.Runtime.ConstrainedExecution.ReliabilityContractAttribute
T:System.Runtime.InteropServices.ClassInterfaceAttribute
T:System.Runtime.InteropServices.ComDefaultInterfaceAttribute
T:System.Runtime.InteropServices.ComVisibleAttribute
T:System.Runtime.InteropServices.GuidAttribute
T:System.Runtime.InteropServices.LCIDConversionAttribute
T:System.Runtime.InteropServices.StructLayoutAttribute
T:System.Security.Permissions.EnvironmentPermissionAttribute
T:System.Security.Permissions.FileIOPermissionAttribute
T:System.Security.Permissions.HostProtectionAttribute
T:System.Security.Permissions.IsolatedStorageFilePermissionAttribute
T:System.Security.Permissions.PermissionSetAttribute
T:System.Security.Permissions.ReflectionPermissionAttribute
T:System.Security.Permissions.SecurityPermissionAttribute
T:System.Security.Permissions.StrongNameIdentityPermissionAttribute
T:System.Security.SecurityCriticalAttribute
T:System.Security.SecuritySafeCriticalAttribute
T:System.Security.SecurityTreatAsSafeAttribute
T:System.Security.SuppressUnmanagedCodeSecurityAttribute
T:System.Runtime.Versioning.NonVersionableAttribute
T:System.Runtime.CompilerServices.IntrinsicAttribute
T:System.Runtime.CompilerServices.ExtensionAttribute
T:System.Drawing.SRDescriptionAttribute
T:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute
T:System.Runtime.CompilerServices.AsyncMethodBuilderAttribute
T:System.Reflection.DefaultMemberAttribute
T:System.Timers.TimersDescriptionAttribute

// These do not need to be persisted in the implementation
T:System.ComponentModel.EditorBrowsableAttribute
T:System.ObsoleteAttribute
53 changes: 27 additions & 26 deletions eng/common/CheckSymbols.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ param(
)

Add-Type -AssemblyName System.IO.Compression.FileSystem
. $PSScriptRoot\pipeline-logging-functions.ps1

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] $TargetServerParameter, # Parameter to pass to `Symbol Tool` indicating the server to lookup for symbols
[string] $SymbolsPath
)

Expand All @@ -21,36 +22,36 @@ function FirstMatchingSymbolDescriptionOrDefault {
# checking and which type of file was uploaded.

# The file itself is returned
$SymbolPath = $SymbolsPath + "\" + $FileName
$SymbolPath = $SymbolsPath + '\' + $FileName

# PDB file for the module
$PdbPath = $SymbolPath.Replace($Extension, ".pdb")
$PdbPath = $SymbolPath.Replace($Extension, '.pdb')

# PDB file for R2R module (created by crossgen)
$NGenPdb = $SymbolPath.Replace($Extension, ".ni.pdb")
$NGenPdb = $SymbolPath.Replace($Extension, '.ni.pdb')

# DBG file for a .so library
$SODbg = $SymbolPath.Replace($Extension, ".so.dbg")
$SODbg = $SymbolPath.Replace($Extension, '.so.dbg')

# DWARF file for a .dylib
$DylibDwarf = $SymbolPath.Replace($Extension, ".dylib.dwarf")
$DylibDwarf = $SymbolPath.Replace($Extension, '.dylib.dwarf')

.\dotnet-symbol.exe --symbols --modules --windows-pdbs $TargetServerParam $FullPath -o $SymbolsPath | Out-Null
.\dotnet-symbol.exe --symbols --modules --windows-pdbs $TargetServerParameter $FullPath -o $SymbolsPath | Out-Null

if (Test-Path $PdbPath) {
return "PDB"
return 'PDB'
}
elseif (Test-Path $NGenPdb) {
return "NGen PDB"
return 'NGen PDB'
}
elseif (Test-Path $SODbg) {
return "DBG for SO"
return 'DBG for SO'
}
elseif (Test-Path $DylibDwarf) {
return "Dwarf for Dylib"
return 'Dwarf for Dylib'
}
elseif (Test-Path $SymbolPath) {
return "Module"
return 'Module'
}
else {
return $null
Expand All @@ -68,15 +69,15 @@ function CountMissingSymbols {
}

# Extensions for which we'll look for symbols
$RelevantExtensions = @(".dll", ".exe", ".so", ".dylib")
$RelevantExtensions = @('.dll', '.exe', '.so', '.dylib')

# How many files are missing symbol information
$MissingSymbols = 0

$PackageId = [System.IO.Path]::GetFileNameWithoutExtension($PackagePath)
$PackageGuid = New-Guid
$ExtractPath = Join-Path -Path $ExtractPath -ChildPath $PackageGuid
$SymbolsPath = Join-Path -Path $ExtractPath -ChildPath "Symbols"
$SymbolsPath = Join-Path -Path $ExtractPath -ChildPath 'Symbols'

[System.IO.Compression.ZipFile]::ExtractToDirectory($PackagePath, $ExtractPath)

Expand All @@ -86,31 +87,31 @@ function CountMissingSymbols {
Get-ChildItem -Recurse $ExtractPath |
Where-Object {$RelevantExtensions -contains $_.Extension} |
ForEach-Object {
if ($_.FullName -Match "\\ref\\") {
if ($_.FullName -Match '\\ref\\') {
Write-Host "`t Ignoring reference assembly file" $_.FullName
return
}

$SymbolsOnMSDL = FirstMatchingSymbolDescriptionOrDefault $_.FullName "--microsoft-symbol-server" $SymbolsPath
$SymbolsOnSymWeb = FirstMatchingSymbolDescriptionOrDefault $_.FullName "--internal-server" $SymbolsPath
$SymbolsOnMSDL = FirstMatchingSymbolDescriptionOrDefault -FullPath $_.FullName -TargetServerParameter '--microsoft-symbol-server' -SymbolsPath $SymbolsPath
$SymbolsOnSymWeb = FirstMatchingSymbolDescriptionOrDefault -FullPath $_.FullName -TargetServerParameter '--internal-server' -SymbolsPath $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 ")"
Write-Host "Symbols found on MSDL (${$SymbolsOnMSDL}) and SymWeb (${$SymbolsOnSymWeb})"
}
else {
$MissingSymbols++

if ($SymbolsOnMSDL -eq $null -and $SymbolsOnSymWeb -eq $null) {
Write-Host "No symbols found on MSDL or SymWeb!"
Write-Host 'No symbols found on MSDL or SymWeb!'
}
else {
if ($SymbolsOnMSDL -eq $null) {
Write-Host "No symbols found on MSDL!"
Write-Host 'No symbols found on MSDL!'
}
else {
Write-Host "No symbols found on SymWeb!"
Write-Host 'No symbols found on SymWeb!'
}
}
}
Expand All @@ -129,26 +130,26 @@ function CheckSymbolsAvailable {
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\.") {
if ($FileName -Match 'Microsoft\.DotNet\.Darc\.') {
Write-Host "Ignoring Arcade-services file: $FileName"
Write-Host
return
}
elseif ($FileName -Match "Microsoft\.DotNet\.Maestro\.Tasks\.") {
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-PipelineTelemetryError -Category 'CheckSymbols' -Message "Missing symbols for $Status modules in the package $FileName"
}

Write-Host
Expand Down
22 changes: 18 additions & 4 deletions eng/common/SetupNugetSources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# condition: eq(variables['Agent.OS'], 'Windows_NT')
# inputs:
# filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
# arguments: -ConfigFile ${Env:BUILD_SOURCESDIRECTORY}/NuGet.config -Password $Env:Token
# arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
# env:
# Token: $(dn-bot-dnceng-artifact-feeds-rw)

Expand Down Expand Up @@ -95,10 +95,15 @@ function InsertMaestroPrivateFeedCredentials($Sources, $Creds, $Password) {
}

if (!(Test-Path $ConfigFile -PathType Leaf)) {
Write-Host "Couldn't find the file NuGet config file: $ConfigFile"
Write-PipelineTelemetryError -Category 'Build' -Message "Eng/common/SetupNugetSources.ps1 returned a non-zero exit code. Couldn't find the NuGet config file: $ConfigFile"
ExitWithExitCode 1
}

if (!$Password) {
Write-PipelineTelemetryError -Category 'Build' -Message 'Eng/common/SetupNugetSources.ps1 returned a non-zero exit code. Please supply a valid PAT'
ExitWithExitCode 1
}

# Load NuGet.config
$doc = New-Object System.Xml.XmlDocument
$filename = (Get-Item $ConfigFile).FullName
Expand All @@ -121,7 +126,16 @@ if ($creds -eq $null) {
# Insert credential nodes for Maestro's private feeds
InsertMaestroPrivateFeedCredentials -Sources $sources -Creds $creds -Password $Password

AddPackageSource -Sources $sources -SourceName "dotnet3-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
AddPackageSource -Sources $sources -SourceName "dotnet3-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
$dotnet3Source = $sources.SelectSingleNode("add[@key='dotnet3']")
if ($dotnet3Source -ne $null) {
AddPackageSource -Sources $sources -SourceName "dotnet3-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
AddPackageSource -Sources $sources -SourceName "dotnet3-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3-internal-transport/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
}

$dotnet31Source = $sources.SelectSingleNode("add[@key='dotnet3.1']")
if ($dotnet31Source -ne $null) {
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2" -Creds $creds -Username "dn-bot" -Password $Password
}

$doc.Save($filename)
Loading