Commit Graph
20 Commits
Author SHA1 Message Date
Viktor Hofer 67354a2fb4 Upgrade to net7.0 and remove target frameworks (#58011)
* Remove EOL tfms and upgrade to net7.0

* Make linker tests net7 aware

Make installer tests run on net7.0

Don't attempt to use live apphost

Fix payloads

Regenerate test files

Fix package testing
2021-09-08 22:04:23 +02:00
a35aff789d [main] Update dependencies from mono/linker (#56593)
* Update linker warning suppressions

https://github.com/mono/linker/pull/2145 warns when accessing members
annotated with DynamicallyAccessedMembers using reflection, and
https://github.com/mono/linker/pull/2162 updates the warning origin of
warnings for DynamicallyAccessedMembers on types.

This adds suppressions for the new warnings.

* Add windows-specific suppressions

* Update dependencies from https://github.com/mono/linker build 20210729.2

Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.6.21378.1 -> To Version 6.0.100-preview.6.21379.2

* Fix failures and address feedback

- Annotate mono's EnumBuilder and TypeBuilder
- Add (non-unique) readable short names to the warning codes

* Update dependencies from https://github.com/mono/linker build 20210730.2

Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.6.21378.1 -> To Version 6.0.100-preview.6.21380.2

* Suppress IL2111

* Update dependencies from https://github.com/mono/linker build 20210802.2

Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.6.21378.1 -> To Version 6.0.100-preview.6.21402.2

* Feedback

- Suppress IL2111 in trimming tests
- Remove unnecessary DynamicDependency
- Fix indentation

* Update readable warning names

Co-authored-by: Sven Boemer <[email protected]>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-08-03 15:31:28 -07:00
8698d0f345 Update dotnet SDK to 6.0 Preview 4 (#53808)
* Update dotnet SDK to 6.0 Preview 4

Update the minimum and target version of the SDK to 6.0 Preview 4.

Part of https://github.com/dotnet/runtime/issues/53411

* Switch to using eng/targetingpacks.targets for redirecting runtime pack location in src/mono/sample

* Fix binder tracing tests

* Set UseMonoRuntime property so the dotnet SDK can pull the mono runtime packs

This is necessary after the changes from https://github.com/dotnet/sdk/pull/16909.

* Move UseMonoRuntimeProperty and set it to false in coreclr

Co-authored-by: Alexander Köplinger <[email protected]>
Co-authored-by: Elinor Fung <[email protected]>
2021-06-11 18:55:09 +02:00
Mitchell HwangandMitchell Hwang c6b5994fbc [libraries] Move library tests Feature Switches defaults to Functional tests (#53253)
* [libraries] Remove UseSystemResourceKeys true default

* [libraries] Remove UseSystemResourceKeys for iOS

* [libraries] Resolve WebSockets System resource keys activeissue

* [tests] Move default feature switches from libraries to functional tests

* [tests] Move Browser wasm default switches into FuntionalTests scope

* Add Browser OS condition

* Move DefaultFeatureSwitches initialization to FunctionalTests project

* Consolidate trimming framework library features and condition for libraries with EnableAggressiveTrimming

* [testing][EAT] Revert trimming framework library features to browser defaults for enable aggressive trimming

* [tests] Add Xamarin Android, Xamarin Mac/iOS, and Wasm feature defaults to Functional tests

* Fixup tabs to spaces

* Add common feature switches, links, and cleanup

* Cleanup Xamarin Android link

Co-authored-by: Mitchell Hwang <[email protected]>
2021-05-28 20:07:13 -04:00
Jose Perez Rodriguez 84b7c67242 Removing unnecessary nowarns from trimming tests (#53251)
* Removing unnecessary nowarns from trimming tests

* Also change the way we mark managedassemblies to link

* Remove target and instead use TrimmerDefaultAction

* Adding the suppression of warnings from the linker
2021-05-26 01:02:27 +00:00
4c7ae35f2d Update the SDK to 6.0 Preview 3 (#52196)
* Update the SDK to 6.0 Preview 3

Updating the minimum and target version of the SDK to 6.0 Preview 3.

Contributes to https://github.com/dotnet/runtime/issues/51716

* Fix Linker Trimming tests

* Fix ILLink warnings for latest SDK

- Remove ILLink.Descriptors entry for non-existant method
- Suppress ILLink warnings in mobile tests

Co-authored-by: Jose Perez Rodriguez <[email protected]>
Co-authored-by: Eric Erhardt <[email protected]>
2021-05-04 20:29:02 +02:00
Maxim Lipnin 78ae1d6e60 Set default features flags to match to iOS SDK defaults (#49635)
Contributes to #43865.  

Based on https://github.com/xamarin/xamarin-macios/blob/834b0888853210ca01d5e8f5ce2c65fe9c55fc10/dotnet/targets/Xamarin.Shared.Sdk.targets#L138-L146

The changes:  
- added a property group with iOS/iOSSimulator default feature flags;  
- aligned the conditions to check the properties activating the defaults for true in order to follow better msbuild practice.
2021-03-24 11:06:24 +03:00
Maxim Lipnin 7f491db5a2 Set default features flags to match to Android SDK defaults (#49005)
Contributes to #43865.

Based on https://github.com/xamarin/xamarin-android/blob/master/src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets#L64-L76
2021-03-03 14:29:41 -05:00
Jose Perez Rodriguez 76c2ac089e Adding browser-wasm trimming test leg (#48429)
* Adding browser-wasm trimming test leg

* Fix runtime subset for browser leg

* Addressing PR feedback

* Removing double RuntimePackProperty

* Addressing feedback and updating container image

* Addressing some PR feedback and fixing runtimepack path

* Disabling a test and updating the wasm container used for the build

* Remove restore race condition on trimming projects

* Fix last remaining failing trimming test in browser-wasm

* Removing workaround since the fix is in PR now

* Addressing PR feedback and rebasing to master

* Adding comment on tests.mobile.targets

* Removing unused trimming setting
2021-02-27 03:00:07 +00:00
Viktor HoferandSantiago Fernandez Madero 653b3103d1 Remove duplicated ILLink PackageReference and update target version of the SDK to 6.0 (#48462)
* Remove duplicated ILLink PackageReference

The Arcade.SDK already package refrences the ILLink package. The
duplicate reference in illink.targets caused SDK errors as the Arcade
reference has IsImplicitlyDefined set which doesn't allow an additional
reference with the same identity.

Also, as the ILLink package already exposes the path to the assembly via
its props file, using that instead of manually constructing the path to
the assembly.

The SDK target version update is required as the sequencing of the
ILLink.props file was wrong and is required for this change. This isn't
considered a breaking change, as the SDK's minimum required version
isn't changed.

* Update arcade dependencies

* Remove NuGet pack tasks pkgref

* Add mega hack workaround

* Remove KnownFrameworkReference items

* Don't hardcode SDK value in helix submission...

* Update runtimeConfiguration.targets

* Fix double publishing error in mobile tests

* Set DotNetCliVersion to right version for aspnetcoreruntime

* Update sendtohelixhelp.proj

* Update sendtohelixhelp.proj

Co-authored-by: Santiago Fernandez Madero <[email protected]>
2021-02-25 11:23:21 +01:00
Viktor Hofer dcacc4dafe Update hardcoded rids for targeting/runtime pks (#48459)
* Update hardcoded rids for targeting/runtime pks
2021-02-20 13:18:35 +01:00
Viktor Hofer edaa380d64 Avoid race conditions when building linker tests (#48028)
* Avoid race conditions when building linker tests
2021-02-12 20:16:27 +01:00
Santiago Fernandez Madero 4c102bdf5c Fix trimming linker tests (#44613) 2020-11-12 17:27:41 -08:00
Anirudh Agnihotry 2db717954a Add a new net6.0 TargetFramework (#42709)
* upgrade to net6.0

* add comment and update package version

* address feedback and fix failures

* address feedbacl

* address feedback
2020-10-07 15:36:58 -07:00
Eric Erhardt fa5a443596 Fix the trimming tests to link non-app assemblies correctly. (#40246)
The PrepareForILLink target will pass any ManagedAssemblyToLink that isn't marked as IsTrimmable=true to a TrimmerRootAssembly. This will cause the assembly to be passed to the linker with `-a`, which means the asesmbly won't be fully trimmed. So any assembly outside of the runtimepack will be passed with -a (for example Microsoft.Extensions.*).

Fix this by moving to BeforeTargets=PrepareForILLink and marking the single application assembly as a root.
2020-08-03 15:08:04 -05:00
Eric Erhardt 345ab7779d Fix up trimming tests for new SDK (#39334)
Now that we have a new SDK with the latest linker settings, we need to change how we invoke the linker during the trimming tests.
2020-07-15 12:08:00 -05:00
Eric Erhardt 142021c172 Preserve DebuggerTypeProxyAttribute classes (#39126)
* Preserve DebuggerTypeProxyAttribute classes

Also, ensure the test app assembly is linked, and not copied during trimming tests, which was a bug in our test infrastructure.

Fix #37307

* Add test for DebuggerTypeProxy string overload.

* Update ref to match impl.
2020-07-14 15:37:48 -05:00
018c8fb5d3 [master] Update dependencies from mono/linker dotnet/runtime-assets dotnet/icu (#39158)
* Update dependencies from https://github.com/mono/linker build 20200711.1

Microsoft.NET.ILLink.Tasks
 From Version 5.0.0-preview.3.20360.3 -> To Version 5.0.0-preview.3.20361.1

* Update dependencies from https://github.com/dotnet/runtime-assets build 20200710.1

System.ComponentModel.TypeConverter.TestData , System.Drawing.Common.TestData , System.IO.Compression.TestData , System.IO.Packaging.TestData , System.Net.TestData , System.Private.Runtime.UnicodeData , System.Security.Cryptography.X509Certificates.TestData , System.Windows.Extensions.TestData
 From Version 5.0.0-beta.20319.2 -> To Version 5.0.0-beta.20360.1

* Update dependencies from https://github.com/dotnet/icu build 20200709.7

Microsoft.NETCore.Runtime.ICU.Transport
 From Version 5.0.0-preview.8.20359.5 -> To Version 5.0.0-preview.8.20359.7

* Remove unsupported option

* Bump SDK dependency to bring updated ILLink task

* Update trimmer configuration property names

* Keep debug symbols as they are needed for the tests

* Disable trimming tests on Windows due to weird pdbs handling

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Marek Safar <[email protected]>
2020-07-14 18:35:20 +02:00
Jose Perez Rodriguez 266a5414b4 Adding Trimming tests for StackFrameHelper and AppDomain (#38050)
* Adding Trimming tests for StackFrameHelper and AppDomain

* Address PR feedback

* Adding PR Feedback

* More PR feedback

* Adding check for principal type to AppDomain tests
2020-06-20 10:32:30 -07:00
Jose Perez Rodriguez 51827185f6 Adding linker correctness tests to test library annotations for the linker (#37618) 2020-06-16 15:00:46 -07:00