Skip to content

Commit

Permalink
Bump to .NET 6.0.100-alpha.1.21060.3. (#10388)
Browse files Browse the repository at this point in the history
* Bump to .NET 6.0.100-alpha.1.21060.3.

* Fix dotnet command line arguments.

* dotnet build: the project file must be the first argument.
* dotnet build/publish: use the documented verbosity format.

* Update version number in tests.

* [tests/introspection] Adjust introspection to cope with different library names in the new .NET version.

* [tests/link sdk] Adjust the LinkSdkRegressionTest.SpecialFolder test according to the new version of .NET 6.

* [tests/link sdk] Preserve a required method in System.Private.CoreLib to work around a bug in .NET 6.

Ref: dotnet/runtime#46908.

* Revert "[CI][VSTS] Add the donet 6 pkg as a dependency. (#10348)"

This reverts commit 6de4e71.

There's no need to provision .NET 6, it's done automatically.
  • Loading branch information
rolfbjarne authored Jan 14, 2021
1 parent c61f6ae commit 7584ada
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Make.config
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,10 @@ DOTNET_FEED_DIR ?= $(DOTNET_DESTDIR)/nuget-feed
# We're using preview versions, and there will probably be many of them, so install locally (into builds/downloads) if there's no system version to
# avoid consuming a lot of disk space (since they're never automatically deleted). The system-dependencies.sh script will install locally as long
# as there's a TARBALL url.
DOTNET6_VERSION=6.0.100-alpha.1.20562.2
DOTNET6_VERSION=6.0.100-alpha.1.21060.3
DOTNET6_VERSION_BAND=$(firstword $(subst -, ,$(DOTNET6_VERSION)))
DOTNET6_URL=https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100-alpha.1.20562.2/dotnet-sdk-6.0.100-alpha.1.20562.2-osx-x64.pkg
DOTNET6_TARBALL=https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100-alpha.1.20562.2/dotnet-sdk-6.0.100-alpha.1.20562.2-osx-x64.tar.gz
DOTNET6_URL=https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100-alpha.1.21060.3/dotnet-sdk-6.0.100-alpha.1.21060.3-osx-x64.pkg
DOTNET6_TARBALL=https://dotnetcli.blob.core.windows.net/dotnet/Sdk/6.0.100-alpha.1.21060.3/dotnet-sdk-6.0.100-alpha.1.21060.3-osx-x64.tar.gz
DOTNET6_TARBALL_NAME=$(notdir $(DOTNET6_TARBALL))
DOTNET6_DIR=$(abspath $(TOP)/builds/downloads/$(basename $(basename $(DOTNET6_TARBALL_NAME))))
DOTNET6=$(DOTNET6_DIR)/dotnet
Expand Down
3 changes: 3 additions & 0 deletions mk/quiet.mk
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ MMP_VERBOSITY=-q
MTOUCH_VERBOSITY=-q
MDTOOL_VERBOSITY=
DOTNET_PACK_VERBOSITY=--verbosity:quiet --nologo
DOTNET_BUILD_VERBOSITY=--verbosity quiet
NUGET_VERBOSITY=-verbosity quiet
else
# CI build
Expand All @@ -79,6 +80,7 @@ MMP_VERBOSITY=-vvvv
MTOUCH_VERBOSITY=-vvvv
MDTOOL_VERBOSITY=-v -v -v -v
DOTNET_PACK_VERBOSITY=
DOTNET_BUILD_VERBOSITY=
NUGET_VERBOSITY=
endif
else
Expand All @@ -89,6 +91,7 @@ MMP_VERBOSITY=-vvvv
MTOUCH_VERBOSITY=-vvvv
MDTOOL_VERBOSITY=-v -v -v -v
DOTNET_PACK_VERBOSITY=--verbosity:detailed
DOTNET_BUILD_VERBOSITY=--verbosity detailed
NUGET_VERBOSITY=-verbosity detailed
endif
MSBUILD_VERBOSITY=$(XBUILD_VERBOSITY)
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.generator
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $(BUILD_DIR)/common/bgen.exe: $(generator_dependencies) Makefile.generator $(BUI
$(Q_GEN) $(SYSTEM_MSBUILD) $(XBUILD_VERBOSITY) /p:Configuration=Debug generator.csproj /p:IntermediateOutputPath=$(BUILD_DIR)/IDE/obj/common/ /p:OutputPath=$(BUILD_DIR)/common

$(DOTNET_BUILD_DIR)/bgen/bgen: $(generator_dependencies) Makefile.generator $(BUILD_DIR)/generator-frameworks.g.cs global.json | $(DOTNET_BUILD_DIR)/bgen
$(Q_DOTNET_BUILD) $(DOTNET6) publish $(XBUILD_VERBOSITY) /p:Configuration=Debug bgen/bgen.csproj /p:IntermediateOutputPath=$(abspath $(DOTNET_BUILD_DIR)/IDE/obj/common)/ /p:OutputPath=$(abspath $(DOTNET_BUILD_DIR)/IDE/bin/common)/
$(Q_DOTNET_BUILD) $(DOTNET6) publish bgen/bgen.csproj $(DOTNET_BUILD_VERBOSITY) /p:Configuration=Debug /p:IntermediateOutputPath=$(abspath $(DOTNET_BUILD_DIR)/IDE/obj/common)/ /p:OutputPath=$(abspath $(DOTNET_BUILD_DIR)/IDE/bin/common)/
$(Q) $(CP) $(DOTNET_BUILD_DIR)/IDE/bin/common/bgen* $(dir $@)
$(Q) printf 'exec $(DOTNET6) "$$(dirname "$$0")"/bgen.dll $$@\n' > $@
$(Q) chmod +x $@
Expand Down
4 changes: 2 additions & 2 deletions tests/introspection/ApiPInvokeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ protected void Check (Assembly a)
path = null;
break;
#if NET
case "QCall":
case "libSystem.Globalization.Native":
// Globalization hasn't been implemented yet: https://github.com/xamarin/xamarin-macios/issues/8906
if (name.StartsWith ("GlobalizationNative_", StringComparison.Ordinal))
continue;
Expand Down Expand Up @@ -244,7 +244,7 @@ protected void Check (Assembly a)
var lib = Dlfcn.dlopen (path, 0);
var h = Dlfcn.dlsym (lib, name);
if (h == IntPtr.Zero)
ReportError ("Could not find the symbol '{0}' in {1}", name, path);
ReportError ("Could not find the symbol '{0}' in {1} for the P/Invoke {2}.{3} in {4}", name, path, t.FullName, m.Name, a.GetName ().Name);
Dlfcn.dlclose (lib);
n++;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/linker/CommonLinkAllTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void TypeConverter_BuiltIn ()

string name = (typeof (BuiltInConverter).GetCustomAttributes (false) [0] as TypeConverterAttribute).ConverterTypeName;
#if NET
var typename = "System.ComponentModel.BooleanConverter, System.ComponentModel.TypeConverter, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
var typename = "System.ComponentModel.BooleanConverter, System.ComponentModel.TypeConverter, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
#else
var typename = "System.ComponentModel.BooleanConverter, System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e";
#endif
Expand Down
12 changes: 11 additions & 1 deletion tests/linker/ios/link sdk/LinkSdkRegressionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,13 @@ public void SpecialFolder ()
Assert.That (path, Is.EqualTo ("/usr/share"), "path - CommonApplicationData");

// and the simulator is more lax
#if !NET // https://github.com/dotnet/runtime/issues/41383
#if NET
// ProgramFiles is different on .NET: https://github.com/dotnet/runtime/pull/41959#discussion_r485069017
path = TestFolder (Environment.SpecialFolder.ProgramFiles, readOnly: device, exists: false);
var applicationsPath = NSSearchPath.GetDirectories (NSSearchPathDirectory.ApplicationDirectory, NSSearchPathDomain.All, true).FirstOrDefault ();
Assert.That (path, Is.EqualTo (applicationsPath), "path - ProgramFiles");
#else

path = TestFolder (Environment.SpecialFolder.ProgramFiles, readOnly: device);
Assert.That (path, Is.EqualTo ("/Applications"), "path - ProgramFiles");
#endif
Expand Down Expand Up @@ -935,7 +941,11 @@ public void SpecialFolder ()
path = TestFolder (Environment.SpecialFolder.MyDocuments);
Assert.That (path, Is.EqualTo (docs), "path - MyDocuments");

#if NET
path = TestFolder (Environment.SpecialFolder.ApplicationData, exists: false);
#else
path = TestFolder (Environment.SpecialFolder.ApplicationData);
#endif
Assert.That (path, Is.EqualTo (docs + "/.config"), "path - ApplicationData");

path = TestFolder (Environment.SpecialFolder.LocalApplicationData);
Expand Down
7 changes: 7 additions & 0 deletions tests/linker/ios/link sdk/dotnet/extra-linker-defs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@
<assembly fullname="Xamarin.iOS">
<type fullname="CoreBluetooth.CBUUID" preserve="field" />
</assembly>
<assembly fullname="System.Private.CoreLib">
<type fullname="System.Runtime.Loader.AssemblyLoadContext">
<!-- https://github.com/dotnet/runtime/issues/46908 -->
<!-- native-library.c: netcore_resolve_with_resolving_event () -->
<method name="MonoResolveUnmanagedDllUsingEvent" />
</type>
</assembly>
</linker>
8 changes: 6 additions & 2 deletions tools/common/create-makefile-fragment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,18 @@ if test -z "$BUILD_EXECUTABLE"; then
BUILD_EXECUTABLE=msbuild
fi

if test -z "$BUILD_VERBOSITY"; then
BUILD_VERBOSITY=/verbosity:diag
fi

# ProjectInspector.csproj is an MSBuild file with a target
# (WriteProjectReferences) that takes another project file as input (the
# ProjectFile variable) and writes all the project references (recursively) to
# a file (the ReferenceListPath variable).
(
cp ProjectInspector.csproj "$PROJECT_DIR"
cd "$PROJECT_DIR"
$BUILD_EXECUTABLE ProjectInspector.csproj "/t:WriteProjectReferences" "/p:ProjectFile=$PROJECT_FILE" "/p:ReferenceListPath=$REFERENCES_PATH" /verbosity:quiet /nologo
$BUILD_EXECUTABLE ProjectInspector.csproj "/t:WriteProjectReferences" "/p:ProjectFile=$PROJECT_FILE" "/p:ReferenceListPath=$REFERENCES_PATH" $BUILD_VERBOSITY /nologo
rm -f ProjectInspector.csproj
)

Expand Down Expand Up @@ -91,7 +95,7 @@ for proj in $(sort "$REFERENCES_PATH" | uniq); do

(
cd "$(dirname "$proj")"
$BUILD_EXECUTABLE "$TMPPROJ" "/t:WriteInputs" "/p:ProjectFile=$proj" "/p:InputsPath=$inputs_path" /verbosity:quiet /nologo
$BUILD_EXECUTABLE "$TMPPROJ" "/t:WriteInputs" "/p:ProjectFile=$proj" "/p:InputsPath=$inputs_path" $BUILD_VERBOSITY /nologo
)

# The output contains relative paths, relative to the csproj directory
Expand Down
1 change: 0 additions & 1 deletion tools/devops/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ build-provisioning.csx: build-provisioning.csx.in Makefile $(TOP)/Make.config
-e 's#@VS_PACKAGE@#$(MIN_VISUAL_STUDIO_URL)#g' \
-e 's#@MIN_SHARPIE_URL@#$(MIN_SHARPIE_URL)#g' \
-e 's#@DOTNET_VERSION@#$(DOTNET_VERSION)#g' \
-e 's#@DOTNET6_VERSION@#$(DOTNET6_VERSION)#g' \
$< > $@;

all check:
Expand Down
1 change: 0 additions & 1 deletion tools/devops/build-provisioning.csx.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ Item ("@MONO_PACKAGE@");
Item ("@MIN_SHARPIE_URL@");
Item ("@VS_PACKAGE@");
DotNetCoreSdk ("@DOTNET_VERSION@");
DotNetCoreSdk ("@DOTNET6_VERSION@");
3 changes: 2 additions & 1 deletion tools/dotnet-linker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ DOTNET_DIRECTORIES += \

# dotnet-linker.csproj.inc contains the dotnet_linker_dependencies variable used to determine if mtouch needs to be rebuilt or not.
dotnet-linker.csproj.inc: export BUILD_EXECUTABLE=$(DOTNET6) build
dotnet-linker.csproj.inc: export BUILD_VERBOSITY=$(DOTNET_BUILD_VERBOSITY)
dotnet-linker.csproj.inc: global.json
-include dotnet-linker.csproj.inc

$(BUILD_DIR)/dotnet-linker%dll $(BUILD_DIR)/dotnet-linker%pdb: Makefile global.json $(dotnet_linker_dependencies)
$(Q_DOTNET_BUILD) $(DOTNET6) build $(XBUILD_VERBOSITY)
$(Q_DOTNET_BUILD) $(DOTNET6) build dotnet-linker.csproj $(DOTNET_BUILD_VERBOSITY)

$(DOTNET_DESTDIR)/Microsoft.iOS.Sdk/tools/dotnet-linker/%: $(BUILD_DIR)/% | $(DOTNET_DESTDIR)/Microsoft.iOS.Sdk/tools/dotnet-linker
$(Q) $(CP) $< $@
Expand Down

2 comments on commit 7584ada

@xamarin-release-manager
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build was (probably) aborted

🔥 Jenkins job (on internal Jenkins) failed in stage(s) 'Cleanup' 🔥 : hudson.AbortException: script returned exit code 1

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Tests failed on Build ❌

Tests failed on Build.

Test results

1 tests failed, 40 tests passed.

Failed tests

  • MTouch tests/NUnit: Failed (Execution failed with exit code 5)

Pipeline on Agent XAMBOT-1022'

Please sign in to comment.