Skip to content

Commit e7b4de6

Browse files
authored
Merge pull request #1449 from mikem8361/release/stable
Update from master
2 parents c62ab0f + 17c0f9e commit e7b4de6

File tree

89 files changed

+3829
-621
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+3829
-621
lines changed

NuGet.config

+1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
<!-- Standard feeds -->
1717
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
1818
</packageSources>
19+
<disabledPackageSources />
1920
</configuration>

documentation/design-docs/diagnostics-client-library.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public void TriggerDumpOnCpuUsage(int processId, int threshold)
9898
if (obj.EventName.Equals("EventCounters"))
9999
{
100100
// I know this part is ugly. But this is all TraceEvent.
101-
var payloadFields = (IDictionary<string, object>)(obj.GetPayloadValueByName("Payload"));
101+
IDictionary<string, object> payloadVal = (IDictionary<string, object>)(obj.PayloadValue(0));
102+
IDictionary<string, object> payloadFields = (IDictionary<string, object>)(payloadVal["Payload"]);
102103
if (payloadFields["Name"].ToString().Equals("cpu-usage"))
103104
{
104105
double cpuUsage = Double.Parse(payloadFields["Mean"]);

documentation/dotnet-gcdump-instructions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Writing gcdump to 'C:\git\diagnostics\src\Tools\dotnet-gcdump\20191023_042913_24
4444

4545
## Viewing the gcdump captured from dotnet-gcdump
4646

47-
On Windows, `.gcdump` files can be viewed in PerfView (https://github.com/microsoft/perfview) for analysis or in Visual Studio. There is not currently a way of opening a `.gcdump` on non-Windows platforms.
47+
On Windows, `.gcdump` files can be viewed in [PerfView](https://github.com/microsoft/perfview) for analysis or in Visual Studio. There is not currently a way of opening a `.gcdump` on non-Windows platforms.
4848

4949
You can collect multiple `.gcdump`s and open them simultaneously in Visual Studio to get a comparison experience.
5050

eng/Version.Details.xml

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@
44
<Uri>https://github.com/dotnet/command-line-api</Uri>
55
<Sha>166610c56ff732093f0145a2911d4f6c40b786da</Sha>
66
</Dependency>
7-
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="5.0.0-beta.20364.3">
7+
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="5.0.0-beta.20411.8">
88
<Uri>https://github.com/dotnet/arcade</Uri>
9-
<Sha>ff5d4b6c8dbdaeacb6e6159d3f8185118dffd915</Sha>
9+
<Sha>ecec08a0eebbd92bb9538e351d475582551d9092</Sha>
1010
</Dependency>
11-
<Dependency Name="Microsoft.SymbolStore" Version="1.0.136501">
11+
<Dependency Name="Microsoft.SymbolStore" Version="1.0.141001">
1212
<Uri>https://github.com/dotnet/symstore</Uri>
13-
<Sha>47187e979e7e023223aa1d219183e7c0ef825d80</Sha>
13+
<Sha>facabfb7992467f9bf4fdf985fe355896d7fbd47</Sha>
1414
</Dependency>
1515
</ProductDependencies>
1616
<ToolsetDependencies>
17-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20364.3">
17+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20411.8">
1818
<Uri>https://github.com/dotnet/arcade</Uri>
19-
<Sha>ff5d4b6c8dbdaeacb6e6159d3f8185118dffd915</Sha>
19+
<Sha>ecec08a0eebbd92bb9538e351d475582551d9092</Sha>
2020
</Dependency>
21-
<Dependency Name="Microsoft.NETCore.App" Version="5.0.0-rc.1.20370.4">
21+
<Dependency Name="Microsoft.NETCore.App" Version="5.0.0-rc.1.20412.8">
2222
<Uri>https://github.com/dotnet/runtime</Uri>
23-
<Sha>0e0e648770e54b12c2fa81a77538ce1a72fca8af</Sha>
23+
<Sha>0db8ecbea291c09cfd84d7f33ea049f5c0cec94f</Sha>
2424
</Dependency>
25-
<Dependency Name="Microsoft.AspNetCore.App.Ref" Version="5.0.0-rc.1.20371.1">
25+
<Dependency Name="Microsoft.AspNetCore.App.Ref" Version="5.0.0-rc.1.20415.5">
2626
<Uri>https://github.com/dotnet/aspnetcore</Uri>
27-
<Sha>088380b45cad29f48635867526b954d8c86b84f7</Sha>
27+
<Sha>0d79179bb471d28f09b685ea65a2ee4b52fc8156</Sha>
2828
</Dependency>
2929
</ToolsetDependencies>
3030
</Dependencies>

eng/Versions.props

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
</PropertyGroup>
99
<PropertyGroup>
1010
<!-- Latest symstore version updated by darc -->
11-
<MicrosoftSymbolStoreVersion>1.0.136501</MicrosoftSymbolStoreVersion>
11+
<MicrosoftSymbolStoreVersion>1.0.141001</MicrosoftSymbolStoreVersion>
1212
<!-- Runtime versions to test -->
1313
<MicrosoftNETCoreApp21Version>2.1.18</MicrosoftNETCoreApp21Version>
1414
<MicrosoftAspNetCoreApp21Version>$(MicrosoftNETCoreApp21Version)</MicrosoftAspNetCoreApp21Version>
1515
<MicrosoftNETCoreApp31Version>3.1.5</MicrosoftNETCoreApp31Version>
1616
<MicrosoftAspNetCoreApp31Version>$(MicrosoftNETCoreApp31Version)</MicrosoftAspNetCoreApp31Version>
1717
<!-- Latest shared runtime version updated by darc -->
18-
<MicrosoftNETCoreAppVersion>5.0.0-rc.1.20370.4</MicrosoftNETCoreAppVersion>
18+
<MicrosoftNETCoreAppVersion>5.0.0-rc.1.20412.8</MicrosoftNETCoreAppVersion>
1919
<!-- Latest shared aspnetcore version updated by darc -->
20-
<MicrosoftAspNetCoreAppRefVersion>5.0.0-rc.1.20371.1</MicrosoftAspNetCoreAppRefVersion>
20+
<MicrosoftAspNetCoreAppRefVersion>5.0.0-rc.1.20415.5</MicrosoftAspNetCoreAppRefVersion>
2121
</PropertyGroup>
2222
<PropertyGroup>
2323
<!-- Opt-in/out repo features -->
@@ -42,6 +42,7 @@
4242
<MicrosoftExtensionsConfigurationJsonVersion>2.1.1</MicrosoftExtensionsConfigurationJsonVersion>
4343
<MicrosoftExtensionsConfigurationKeyPerFileVersion>2.1.1</MicrosoftExtensionsConfigurationKeyPerFileVersion>
4444
<MicrosoftExtensionsDependencyInjectionVersion>2.1.1</MicrosoftExtensionsDependencyInjectionVersion>
45+
<MicrosoftExtensionsHostingAbstractionsVersion>2.1.1</MicrosoftExtensionsHostingAbstractionsVersion>
4546
<MicrosoftExtensionsLoggingVersion>2.1.1</MicrosoftExtensionsLoggingVersion>
4647
<MicrosoftExtensionsLoggingConsoleVersion>2.1.1</MicrosoftExtensionsLoggingConsoleVersion>
4748
<!-- We use a newer version of LoggingEventSource due to a bug in an older version-->
@@ -53,7 +54,7 @@
5354
<SystemThreadingChannelsVersion>4.7.0</SystemThreadingChannelsVersion>
5455
<XUnitVersion>2.4.1</XUnitVersion>
5556
<XUnitAbstractionsVersion>2.0.3</XUnitAbstractionsVersion>
56-
<MicrosoftDotNetRemoteExecutorVersion>5.0.0-beta.20364.3</MicrosoftDotNetRemoteExecutorVersion>
57+
<MicrosoftDotNetRemoteExecutorVersion>5.0.0-beta.20411.8</MicrosoftDotNetRemoteExecutorVersion>
5758
<cdbsosversion>10.0.18362</cdbsosversion>
5859
</PropertyGroup>
5960
<PropertyGroup>

eng/common/SetupNugetSources.ps1

+17
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
# See example YAML call for this script below. Note the use of the variable `$(dn-bot-dnceng-artifact-feeds-rw)`
1212
# from the AzureDevOps-Artifact-Feeds-Pats variable group.
1313
#
14+
# Any disabledPackageSources entries which start with "darc-int" will be re-enabled as part of this script executing
15+
#
1416
# - task: PowerShell@2
1517
# displayName: Setup Private Feeds Credentials
1618
# condition: eq(variables['Agent.OS'], 'Windows_NT')
@@ -94,6 +96,14 @@ function InsertMaestroPrivateFeedCredentials($Sources, $Creds, $Username, $Passw
9496
}
9597
}
9698

99+
function EnablePrivatePackageSources($DisabledPackageSources) {
100+
$maestroPrivateSources = $DisabledPackageSources.SelectNodes("add[contains(@key,'darc-int')]")
101+
ForEach ($DisabledPackageSource in $maestroPrivateSources) {
102+
Write-Host "`tEnsuring private source '$($DisabledPackageSource.key)' is enabled"
103+
$DisabledPackageSource.SetAttribute("value", "false")
104+
}
105+
}
106+
97107
if (!(Test-Path $ConfigFile -PathType Leaf)) {
98108
Write-PipelineTelemetryError -Category 'Build' -Message "Eng/common/SetupNugetSources.ps1 returned a non-zero exit code. Couldn't find the NuGet config file: $ConfigFile"
99109
ExitWithExitCode 1
@@ -123,6 +133,13 @@ if ($creds -eq $null) {
123133
$doc.DocumentElement.AppendChild($creds) | Out-Null
124134
}
125135

136+
# Check for disabledPackageSources; we'll enable any darc-int ones we find there
137+
$disabledSources = $doc.DocumentElement.SelectSingleNode("disabledPackageSources")
138+
if ($disabledSources -ne $null) {
139+
Write-Host "Checking for any darc-int disabled package sources in the disabledPackageSources node"
140+
EnablePrivatePackageSources -DisabledPackageSources $disabledSources
141+
}
142+
126143
$userName = "dn-bot"
127144

128145
# Insert credential nodes for Maestro's private feeds

eng/common/SetupNugetSources.sh

+21-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See example YAML call for this script below. Note the use of the variable `$(dn-bot-dnceng-artifact-feeds-rw)`
1414
# from the AzureDevOps-Artifact-Feeds-Pats variable group.
1515
#
16+
# Any disabledPackageSources entries which start with "darc-int" will be re-enabled as part of this script executing.
17+
#
1618
# - task: Bash@3
1719
# displayName: Setup Private Feeds Credentials
1820
# inputs:
@@ -63,7 +65,7 @@ if [ "$?" != "0" ]; then
6365
ConfigNodeHeader="<configuration>"
6466
PackageSourcesTemplate="${TB}<packageSources>${NL}${TB}</packageSources>"
6567

66-
sed -i.bak "s|$ConfigNodeHeader|$ConfigNodeHeader${NL}$PackageSourcesTemplate|" NuGet.config
68+
sed -i.bak "s|$ConfigNodeHeader|$ConfigNodeHeader${NL}$PackageSourcesTemplate|" $ConfigFile
6769
fi
6870

6971
# Ensure there is a <packageSourceCredentials>...</packageSourceCredentials> section.
@@ -74,7 +76,7 @@ if [ "$?" != "0" ]; then
7476
PackageSourcesNodeFooter="</packageSources>"
7577
PackageSourceCredentialsTemplate="${TB}<packageSourceCredentials>${NL}${TB}</packageSourceCredentials>"
7678

77-
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourcesNodeFooter${NL}$PackageSourceCredentialsTemplate|" NuGet.config
79+
sed -i.bak "s|$PackageSourcesNodeFooter|$PackageSourcesNodeFooter${NL}$PackageSourceCredentialsTemplate|" $ConfigFile
7880
fi
7981

8082
PackageSources=()
@@ -146,3 +148,20 @@ for FeedName in ${PackageSources[@]} ; do
146148
sed -i.bak "s|$PackageSourceCredentialsNodeFooter|$NewCredential${NL}$PackageSourceCredentialsNodeFooter|" $ConfigFile
147149
fi
148150
done
151+
152+
# Re-enable any entries in disabledPackageSources where the feed name contains darc-int
153+
grep -i "<disabledPackageSources>" $ConfigFile
154+
if [ "$?" == "0" ]; then
155+
DisabledDarcIntSources=()
156+
echo "Re-enabling any disabled \"darc-int\" package sources in $ConfigFile"
157+
DisabledDarcIntSources+=$(grep -oh '"darc-int-[^"]*" value="true"' $ConfigFile | tr -d '"')
158+
for DisabledSourceName in ${DisabledDarcIntSources[@]} ; do
159+
if [[ $DisabledSourceName == darc-int* ]]
160+
then
161+
OldDisableValue="add key=\"$DisabledSourceName\" value=\"true\""
162+
NewDisableValue="add key=\"$DisabledSourceName\" value=\"false\""
163+
sed -i.bak "s|$OldDisableValue|$NewDisableValue|" $ConfigFile
164+
echo "Neutralized disablePackageSources entry for '$DisabledSourceName'"
165+
fi
166+
done
167+
fi

eng/common/cross/arm64/tizen-fetch.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fetch_tizen_pkgs aarch64 gcc glibc glibc-devel libicu libicu-devel libatomic lin
161161
Inform "fetch coreclr packages"
162162
fetch_tizen_pkgs aarch64 lldb lldb-devel libgcc libstdc++ libstdc++-devel libunwind libunwind-devel lttng-ust-devel lttng-ust userspace-rcu-devel userspace-rcu
163163
Inform "fetch corefx packages"
164-
fetch_tizen_pkgs aarch64 libcom_err libcom_err-devel zlib zlib-devel libopenssl libopenssl1.1-devel krb5 krb5-devel
164+
fetch_tizen_pkgs aarch64 libcom_err libcom_err-devel zlib zlib-devel libopenssl11 libopenssl1.1-devel krb5 krb5-devel
165165

166166
Inform "Initialize standard unified"
167167
fetch_tizen_pkgs_init standard unified

eng/common/cross/armel/tizen-fetch.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if [ ! -d $TMPDIR ]; then
5151
mkdir -p $TMPDIR
5252
fi
5353

54-
TIZEN_URL=http://download.tizen.org/releases/milestone/tizen
54+
TIZEN_URL=http://download.tizen.org/snapshots/tizen
5555
BUILD_XML=build.xml
5656
REPOMD_XML=repomd.xml
5757
PRIMARY_XML=primary.xml
@@ -157,12 +157,11 @@ fetch_tizen_pkgs()
157157
Inform "Initialize arm base"
158158
fetch_tizen_pkgs_init standard base
159159
Inform "fetch common packages"
160-
fetch_tizen_pkgs armv7l gcc glibc glibc-devel libicu libicu-devel libatomic
161-
fetch_tizen_pkgs noarch linux-glibc-devel
160+
fetch_tizen_pkgs armv7l gcc glibc glibc-devel libicu libicu-devel libatomic linux-glibc-devel
162161
Inform "fetch coreclr packages"
163162
fetch_tizen_pkgs armv7l lldb lldb-devel libgcc libstdc++ libstdc++-devel libunwind libunwind-devel lttng-ust-devel lttng-ust userspace-rcu-devel userspace-rcu
164163
Inform "fetch corefx packages"
165-
fetch_tizen_pkgs armv7l libcom_err libcom_err-devel zlib zlib-devel libopenssl libopenssl-devel krb5 krb5-devel libcurl libcurl-devel
164+
fetch_tizen_pkgs armv7l libcom_err libcom_err-devel zlib zlib-devel libopenssl11 libopenssl1.1-devel krb5 krb5-devel
166165

167166
Inform "Initialize standard unified"
168167
fetch_tizen_pkgs_init standard unified

eng/common/cross/toolchain.cmake

+27-16
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if(TARGET_ARCH_NAME STREQUAL "armel")
1515
set(CMAKE_SYSTEM_PROCESSOR armv7l)
1616
set(TOOLCHAIN "arm-linux-gnueabi")
1717
if("$ENV{__DistroRid}" MATCHES "tizen.*")
18-
set(TIZEN_TOOLCHAIN "armv7l-tizen-linux-gnueabi/6.2.1")
18+
set(TIZEN_TOOLCHAIN "armv7l-tizen-linux-gnueabi/9.2.0")
1919
endif()
2020
elseif(TARGET_ARCH_NAME STREQUAL "arm")
2121
set(CMAKE_SYSTEM_PROCESSOR armv7l)
@@ -127,29 +127,40 @@ endif()
127127

128128
# Specify link flags
129129

130+
function(add_toolchain_linker_flag Flag)
131+
set(Config "${ARGV1}")
132+
set(CONFIG_SUFFIX "")
133+
if (NOT Config STREQUAL "")
134+
set(CONFIG_SUFFIX "_${Config}")
135+
endif()
136+
set("CMAKE_EXE_LINKER_FLAGS${CONFIG_SUFFIX}" "${CMAKE_EXE_LINKER_FLAGS${CONFIG_SUFFIX}} ${Flag}" PARENT_SCOPE)
137+
set("CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}" "${CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}} ${Flag}" PARENT_SCOPE)
138+
endfunction()
139+
140+
130141
if(TARGET_ARCH_NAME STREQUAL "armel")
131142
if(DEFINED TIZEN_TOOLCHAIN) # For Tizen only
132-
add_link_options("-B${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
133-
add_link_options("-L${CROSS_ROOTFS}/lib")
134-
add_link_options("-L${CROSS_ROOTFS}/usr/lib")
135-
add_link_options("-L${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
143+
add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
144+
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib")
145+
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib")
146+
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
136147
endif()
137148
elseif(TARGET_ARCH_NAME STREQUAL "arm64")
138149
if(DEFINED TIZEN_TOOLCHAIN) # For Tizen only
139-
add_link_options("-B${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
140-
add_link_options("-L${CROSS_ROOTFS}/lib64")
141-
add_link_options("-L${CROSS_ROOTFS}/usr/lib64")
142-
add_link_options("-L${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
143-
144-
add_link_options("-Wl,--rpath-link=${CROSS_ROOTFS}/lib64")
145-
add_link_options("-Wl,--rpath-link=${CROSS_ROOTFS}/usr/lib64")
146-
add_link_options("-Wl,--rpath-link=${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
150+
add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
151+
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib64")
152+
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib64")
153+
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
154+
155+
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/lib64")
156+
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/usr/lib64")
157+
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
147158
endif()
148159
elseif(TARGET_ARCH_NAME STREQUAL "x86")
149-
add_link_options(-m32)
160+
add_toolchain_linker_flag(-m32)
150161
elseif(ILLUMOS)
151-
add_link_options("-L${CROSS_ROOTFS}/lib/amd64")
152-
add_link_options("-L${CROSS_ROOTFS}/usr/amd64/lib")
162+
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib/amd64")
163+
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/amd64/lib")
153164
endif()
154165

155166
# Specify compile options

0 commit comments

Comments
 (0)