Commit 304e698
authored
Bump to .NET 6.0.100-preview.3.21161.23 (dotnet#5733)
Changes: dotnet/installer@1a9103d...19e22a7
At first, Android "Hello World" fails with:
> dotnet build -c Release
ILLink : error IL1009: Assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' reference 'System.Configuration.ConfigurationManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' could not be resolved
Dropping the `--skip-unresolved false` switch passed to ILLink solves
this issue. This was a recommendation from Sven Boemer on the .NET team.
A nice, side-effect, is we no longer need workarounds like this any
longer:
<ItemGroup Condition=" '$(Configuration)' == 'Release' ">
<PackageReference Include="System.CodeDom" Version="6.0.0-*" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0-*" />
<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="6.0.0-*" />
<PackageReference Include="System.Diagnostics.EventLog" Version="6.0.0-*" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0-*" />
<PackageReference Include="System.IO.Ports" Version="6.0.0-*" />
<PackageReference Include="System.Threading.AccessControl" Version="6.0.0-*" />
</ItemGroup>
I removed these from several tests.
`BuildReleaseArm64` test, net6 apk size difference before/after
Simple XA:
-"PackageSize": 2885411
+"PackageSize": 2889606
XF/XA
-"PackageSize": 9886918
+"PackageSize": 8746124
The Xamarin.Forms app saw quite a bit of improvement, since we don't
have to bring in these `@(PackageReference)` anymore.
~~ Other changes ~~
I updated `PerformanceTest` to ignore `NotSupportedException` due to:
System.NotSupportedException : Unsupported log file format. Latest supported version is 10, the log file has version 11.
We need to use a new version of this package when it is available:
https://www.nuget.org/packages/MSBuild.StructuredLogger/2.1.303
* Update System.Private.CoreLib.xml
Fixes runtime crash in .NET 6 Mono.Android-Tests:
Can't find custom attr constructor image: Mono.Android.dll mtoken: 0x0a000464 due to:
Could not resolve type with token 010000fb from typeref (expected class 'System.Runtime.CompilerServices.InternalsVisibleToAttribute' in assembly 'System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e') assembly:System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e type:System.Runtime.CompilerServices.InternalsVisibleToAttribute member:(null)1 parent 8ac791d commit 304e698
File tree
15 files changed
+110
-252
lines changed- src
- Microsoft.Android.Sdk.ILLink/PreserveLists
- Xamarin.Android.Build.Tasks
- Microsoft.Android.Sdk/targets
- Tests
- Xamarin.Android.Build.Tests
- Xamarin.ProjectTools
- Android
- Resources/Base
- tests
- MSBuildDeviceIntegration/Tests
- Mono.Android-Tests/Runtime-Microsoft.Android.Sdk
15 files changed
+110
-252
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.ILLink.targets
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | 154 | | |
158 | 155 | | |
159 | 156 | | |
| |||
989 | 986 | | |
990 | 987 | | |
991 | 988 | | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | 989 | | |
996 | 990 | | |
997 | 991 | | |
| |||
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
| |||
2039 | 2036 | | |
2040 | 2037 | | |
2041 | 2038 | | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
| 2039 | + | |
2045 | 2040 | | |
2046 | 2041 | | |
2047 | 2042 | | |
| |||
2564 | 2559 | | |
2565 | 2560 | | |
2566 | 2561 | | |
2567 | | - | |
2568 | | - | |
2569 | 2562 | | |
2570 | 2563 | | |
2571 | 2564 | | |
| |||
2659 | 2652 | | |
2660 | 2653 | | |
2661 | 2654 | | |
2662 | | - | |
2663 | | - | |
2664 | 2655 | | |
2665 | 2656 | | |
2666 | 2657 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
Lines changed: 0 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 7 | | |
22 | 8 | | |
23 | 9 | | |
| |||
222 | 208 | | |
223 | 209 | | |
224 | 210 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | 211 | | |
258 | 212 | | |
259 | 213 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 92 | | |
97 | 93 | | |
98 | 94 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
0 commit comments