Skip to content

Commit e08fc29

Browse files
authored
Merge branch 'release/6.0-maui' into merge/release/6.0-to-release/6.0-maui
2 parents 6de5c5b + 936a1c1 commit e08fc29

File tree

60 files changed

+765
-189
lines changed

Some content is hidden

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

60 files changed

+765
-189
lines changed

eng/Versions.props

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
<MajorVersion>6</MajorVersion>
77
<MinorVersion>0</MinorVersion>
88
<PatchVersion>2</PatchVersion>
9-
<SdkBandVersion>6.0.100</SdkBandVersion>
10-
<PreReleaseVersionLabel>servicing</PreReleaseVersionLabel>
11-
<PreReleaseVersionIteration>
12-
</PreReleaseVersionIteration>
9+
<SdkBandVersion>6.0.200</SdkBandVersion>
10+
<PreReleaseVersionLabel>mauipre</PreReleaseVersionLabel>
11+
<PreReleaseVersionIteration>1</PreReleaseVersionIteration>
1312
<!-- Set assembly version to align with major and minor version,
1413
as for the patches and revisions should be manually updated per assembly if it is serviced. -->
1514
<AssemblyVersion>$(MajorVersion).$(MinorVersion).0.0</AssemblyVersion>
1615
<!-- Enable to remove prerelease label. -->
17-
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">true</StabilizePackageVersion>
16+
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion>
1817
<DotNetFinalVersionKind Condition="'$(StabilizePackageVersion)' == 'true'">release</DotNetFinalVersionKind>
1918
<!-- Opt-in/out repo features -->
2019
<UsingToolMicrosoftNetCompilers>true</UsingToolMicrosoftNetCompilers>
@@ -163,7 +162,7 @@
163162
<SQLitePCLRawbundle_greenVersion>2.0.4</SQLitePCLRawbundle_greenVersion>
164163
<MoqVersion>4.12.0</MoqVersion>
165164
<FsCheckVersion>2.14.3</FsCheckVersion>
166-
<SdkVersionForWorkloadTesting>6.0.100-rtm.21480.21</SdkVersionForWorkloadTesting>
165+
<SdkVersionForWorkloadTesting>6.0.200-preview.22055.18</SdkVersionForWorkloadTesting>
167166
<!-- Docs -->
168167
<MicrosoftPrivateIntellisenseVersion>6.0.0-preview-20211019.1</MicrosoftPrivateIntellisenseVersion>
169168
<!-- ILLink -->

eng/packaging.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@
277277
</Target>
278278

279279
<Target Name="ValidateAssemblyVersionsInRefPack"
280-
Condition="'$(SkipValidateAssemblyVersion)' != 'true' and '$(_AssemblyInTargetingPack)' == 'true' and '$(PreReleaseVersionLabel)' == 'servicing'"
280+
Condition="'$(SkipValidateAssemblyVersion)' != 'true' and '$(_AssemblyInTargetingPack)' == 'true' and ('$(PreReleaseVersionLabel)' == 'servicing' or '$(PreReleaseVersionLabel)' == 'mauipre')"
281281
AfterTargets="CoreCompile" >
282282
<Error Condition="'$(AssemblyVersion)' != '$(LastReleasedStableAssemblyVersion)'" Text="AssemblyVersion should match last released assembly version $(LastReleasedStableAssemblyVersion)" />
283283
</Target>

eng/pipelines/runtime-staging.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,51 @@ jobs:
9999
eq(variables['monoContainsChange'], true),
100100
eq(variables['isFullMatrix'], true))
101101
102+
#
103+
# MacCatalyst interp - requires AOT Compilation and Interp flags
104+
# Build the whole product using Mono and run libraries tests
105+
# The test app is built with the App Sandbox entitlement
106+
#
107+
- template: /eng/pipelines/common/platform-matrix.yml
108+
parameters:
109+
jobTemplate: /eng/pipelines/common/global-build-job.yml
110+
helixQueuesTemplate: /eng/pipelines/libraries/helix-queues-setup.yml
111+
buildConfig: Release
112+
runtimeFlavor: mono
113+
platforms:
114+
- MacCatalyst_x64
115+
# don't run tests on arm64 PRs until we can get significantly more devices
116+
- ${{ if eq(variables['isFullMatrix'], true) }}:
117+
- MacCatalyst_arm64
118+
variables:
119+
# map dependencies variables to local variables
120+
- name: librariesContainsChange
121+
value: $[ dependencies.evaluate_paths.outputs['SetPathVars_libraries.containsChange'] ]
122+
- name: monoContainsChange
123+
value: $[ dependencies.evaluate_paths.outputs['SetPathVars_mono.containsChange'] ]
124+
jobParameters:
125+
testGroup: innerloop
126+
nameSuffix: AllSubsets_Mono_AppSandbox
127+
buildArgs: -s mono+libs+host+packs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true /p:DevTeamProvisioning=adhoc /p:RunAOTCompilation=true /p:MonoForceInterpreter=true /p:BuildDarwinFrameworks=true /p:EnableAppSandbox=true
128+
timeoutInMinutes: 180
129+
condition: >-
130+
or(
131+
eq(dependencies.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true),
132+
eq(dependencies.evaluate_paths.outputs['SetPathVars_mono.containsChange'], true),
133+
eq(dependencies.evaluate_paths.outputs['SetPathVars_installer.containsChange'], true),
134+
eq(variables['isFullMatrix'], true))
135+
# extra steps, run tests
136+
extraStepsTemplate: /eng/pipelines/libraries/helix.yml
137+
extraStepsParameters:
138+
creator: dotnet-bot
139+
interpreter: true
140+
testRunNamePrefixSuffix: Mono_$(_BuildConfig)
141+
condition: >-
142+
or(
143+
eq(variables['librariesContainsChange'], true),
144+
eq(variables['monoContainsChange'], true),
145+
eq(variables['isFullMatrix'], true))
146+
102147
#
103148
# MacCatalyst interp - requires AOT Compilation and Interp flags
104149
# Build the whole product using Mono and run libraries tests

eng/testing/tests.mobile.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@
219219
MainLibraryFileName="$(MainLibraryFileName)"
220220
ForceAOT="$(RunAOTCompilation)"
221221
ForceInterpreter="$(MonoForceInterpreter)"
222+
EnableAppSandbox="$(EnableAppSandbox)"
222223
InvariantGlobalization="$(InvariantGlobalization)"
223224
UseConsoleUITemplate="True"
224225
GenerateXcodeProject="$(GenerateXcodeProject)"

src/libraries/Common/src/Interop/OSX/Interop.libproc.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ internal static partial class libproc
2525
// Constants from sys\resource.h
2626
private const int RUSAGE_INFO_V3 = 3;
2727

28+
// Constants from sys/errno.h
29+
private const int EPERM = 1;
30+
2831
// Defines from proc_info.h
2932
internal enum ThreadRunState
3033
{
@@ -120,7 +123,14 @@ internal static unsafe int[] proc_listallpids()
120123
{
121124
// Get the number of processes currently running to know how much data to allocate
122125
int numProcesses = proc_listallpids(null, 0);
123-
if (numProcesses <= 0)
126+
if (numProcesses == 0 && Marshal.GetLastPInvokeError() == EPERM)
127+
{
128+
// An app running in App Sandbox does not have permissions to list other running processes
129+
// and so the `proc_listallpids` function returns 0 and sets errno to 1. As a fallback
130+
// we return at least an array with the PID of the current process which we always know.
131+
return new[] { Environment.ProcessId };
132+
}
133+
else if (numProcesses <= 0)
124134
{
125135
throw new Win32Exception(SR.CantGetAllPids);
126136
}

src/libraries/Common/tests/TestUtilities/System/PlatformDetection.Unix.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public static partial class PlatformDetection
4141
public static bool IsMacOsCatalinaOrHigher => IsOSX && Environment.OSVersion.Version >= new Version(10, 15);
4242
public static bool IsMacOsAppleSilicon => IsOSX && IsArm64Process;
4343
public static bool IsNotMacOsAppleSilicon => !IsMacOsAppleSilicon;
44+
public static bool IsAppSandbox => Environment.GetEnvironmentVariable("APP_SANDBOX_CONTAINER_ID") != null;
45+
public static bool IsNotAppSandbox => !IsAppSandbox;
4446

4547
// RedHat family covers RedHat and CentOS
4648
public static bool IsRedHatFamily => IsRedHatFamilyAndVersion();

src/libraries/Microsoft.Extensions.Caching.Memory/src/Microsoft.Extensions.Caching.Memory.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
55
<EnableDefaultItems>true</EnableDefaultItems>
66
<PackageDescription>In-memory cache implementation of Microsoft.Extensions.Caching.Memory.IMemoryCache.</PackageDescription>
7-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
8-
<ServicingVersion>1</ServicingVersion>
97
</PropertyGroup>
108

119
<ItemGroup>

src/libraries/Microsoft.Extensions.Configuration.EnvironmentVariables/src/Microsoft.Extensions.Configuration.EnvironmentVariables.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
55
<EnableDefaultItems>true</EnableDefaultItems>
66
<PackageDescription>Environment variables configuration provider implementation for Microsoft.Extensions.Configuration.</PackageDescription>
7+
<!-- Disable package on release/6.0-maui branch, revert before merging back into release/6.0
78
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
89
<ServicingVersion>1</ServicingVersion>
10+
-->
911
</PropertyGroup>
1012

1113
<ItemGroup>

src/libraries/Microsoft.Extensions.Configuration.UserSecrets/src/Microsoft.Extensions.Configuration.UserSecrets.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
55
<EnableDefaultItems>true</EnableDefaultItems>
66
<PackageDescription>User secrets configuration provider implementation for Microsoft.Extensions.Configuration.</PackageDescription>
7+
<!-- Disable package on release/6.0-maui branch, revert before merging back into release/6.0
78
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
89
<ServicingVersion>1</ServicingVersion>
10+
-->
911
</PropertyGroup>
1012

1113
<ItemGroup>

src/libraries/Microsoft.Extensions.HostFactoryResolver/src/Microsoft.Extensions.HostFactoryResolver.Sources.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<IsSourcePackage>true</IsSourcePackage>
1010
<!-- This is non-shipping package. -->
1111
<DisablePackageBaselineValidation>true</DisablePackageBaselineValidation>
12-
<ServicingVersion>1</ServicingVersion>
1312
<PackageDescription>Internal package for sharing Microsoft.Extensions.Hosting.HostFactoryResolver type.</PackageDescription>
1413
</PropertyGroup>
1514
</Project>

0 commit comments

Comments
 (0)