Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[net10.0] Merge main into net10.0. #22161

Merged
merged 144 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from 140 commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
fc3df5d
[Rgen] Add properties as part of the parent's list of accessors. (#21…
mandel-macaque Jan 16, 2025
7ae40bf
[Rgen] Add support to the syntax factory to generate setters for fiel…
mandel-macaque Jan 16, 2025
90bb415
Update HotRestart.Client to 17.14.51-gd03e25086a (#21937)
mauroa Jan 16, 2025
37de8a9
[RGen] Add some extra tests for properties. (#21992)
mandel-macaque Jan 16, 2025
02ad356
[msbuild] Validate that we don't write outside the target directory w…
rolfbjarne Jan 16, 2025
93ac3f4
[devops] Treat darc-* and backport-pr-* branches like dev/* branches …
rolfbjarne Jan 17, 2025
fb7073e
[RGen] Provide a method that returns the selector for an accessor. (#…
mandel-macaque Jan 17, 2025
c087fa2
[Rgen] Move to use TypeInfo as the Type property in Parameters. (#21998)
mandel-macaque Jan 18, 2025
7786cd8
[msbuild] Fix duplicate resources when bundling original resources. (…
rolfbjarne Jan 18, 2025
a9225f2
[tests] Remove MonoTouch.Dialog/Reflect.cs. (#22001)
rolfbjarne Jan 18, 2025
8ce51e8
[Rgen] Add skeleton code for the field properties in a class. (#21993)
mandel-macaque Jan 18, 2025
d69bb0c
[Rgen] Add more information about the type in the TypeInfo struct. (#…
mandel-macaque Jan 18, 2025
e077a50
[Foundation] Remove NET conditions from some files. (#22004)
rolfbjarne Jan 18, 2025
289fba0
[src] Place the generated Microsoft.*.csproj together with the other …
rolfbjarne Jan 18, 2025
f3a1a59
[Build] Fix the script that converts rsp to csproj when verbose is en…
mandel-macaque Jan 18, 2025
9a50089
[Rgen] Allows to mark a property or accessor to marshal native except…
mandel-macaque Jan 18, 2025
195665f
[Rgen] Add field getters and setters. (#22006)
mandel-macaque Jan 19, 2025
95aa337
[Rgen] Provide the intial implementation of the migration tool. (#22011)
mandel-macaque Jan 19, 2025
c382f20
[Rgen] Add support to the export method to provide custom marshalling…
mandel-macaque Jan 20, 2025
dc720d4
[Rgen] Implement the filtering in the transformer tool. (#22012)
mandel-macaque Jan 20, 2025
05a3831
[Rgen] Share DataModel between the generator and the transformer. (#2…
mandel-macaque Jan 20, 2025
915d7cc
[Rgen] Add logging to the transformer. (#22016)
mandel-macaque Jan 20, 2025
efd6ff9
[Rge] Implement the code in the transformer to parse Export attrs. (#…
mandel-macaque Jan 20, 2025
3a0fb1a
[Rgen] Add a new struc that will represent the needed trivia for a sy…
mandel-macaque Jan 21, 2025
1480b5d
[Rgen] Allow the transformer to use the tabbed string builder. (#22020)
mandel-macaque Jan 21, 2025
727a00f
[RGen] Add the code to parse the field attribute in the transformer. …
mandel-macaque Jan 21, 2025
9516bf1
[Rgen] Add the parsing code for the BaseTypeAttribute in the transfor…
mandel-macaque Jan 21, 2025
0ab0743
[Rgen] Compile all platforms provided in parallel. (#22024)
mandel-macaque Jan 21, 2025
4500b4c
[Rgen] Allow disable porperties as zero copy. (#22026)
mandel-macaque Jan 22, 2025
c8f1ff7
[Rgen] Use the api definiton for the transformer tests. (#22022)
mandel-macaque Jan 23, 2025
a759bb7
[CI] Increase timeout for the signing artifacts (#22025)
dalexsoto Jan 23, 2025
e62a38f
[Rgen] Add support to the transformer to parse the old xamarin availa…
mandel-macaque Jan 23, 2025
d52838b
[Rgen] Add the needed code to make the objc_msgSend signatures. (#22029)
mandel-macaque Jan 23, 2025
b50532b
[Rgen] Renamed CodeChanges to Binding to be more clear. (#22031)
mandel-macaque Jan 23, 2025
00df02c
[RGen] Add an implementation of Stret.IsBuiltInType with Roslyn.
mandel-macaque Jan 23, 2025
994556d
[RGen] Add a roslyn based implementation of the GetValueTypeSize.
mandel-macaque Jan 23, 2025
466d4d8
Auto-format source code
Jan 23, 2025
40f10cf
I need to fix that .editorconfig :/
mandel-macaque Jan 24, 2025
a70cdd3
[Rgen] Implement the methods to decide if we need to use a stret call.
mandel-macaque Jan 24, 2025
b3d8b1a
Auto-format source code
Jan 24, 2025
7df9693
[Rgen] Use a roslyn code generator to help generate the flag parsing …
mandel-macaque Jan 24, 2025
f7e9a91
Update TypeSymbolExtensions.Core.cs
mandel-macaque Jan 24, 2025
d84bafa
Fix typo.
mandel-macaque Jan 24, 2025
caf8183
Merge branch 'dev/mandel/stret-getvalue-type-size-roslyn' of github.c…
mandel-macaque Jan 24, 2025
fffd487
[RGen] Add an implementation of Stret.IsBuiltInType with Roslyn. (#22…
mandel-macaque Jan 24, 2025
b2691b3
Merge branch 'main' into dev/mandel/stret-getvalue-type-size-roslyn
mandel-macaque Jan 24, 2025
69d5dff
Merge branch 'dev/mandel/stret-getvalue-type-size-roslyn' into dev/ma…
mandel-macaque Jan 24, 2025
b1a1800
[RGen] Add a roslyn based implementation of the GetValueTypeSize. (#2…
mandel-macaque Jan 24, 2025
8df4754
[RGen] Make the transformer generator be netstandard2.1 to make edito…
mandel-macaque Jan 24, 2025
62f575a
[Rgen] Implement the parsing of the backing field attr in the transfo…
mandel-macaque Jan 24, 2025
341abb3
[RGen] Implement the BindAttribute parsing logic for the transformer.…
mandel-macaque Jan 24, 2025
6ead5f4
Merge branch 'main' into dev/mandel/need-stret-roslyn
mandel-macaque Jan 24, 2025
1195014
[Rgen] Keep track if a type is a dictionary container. (#22042)
mandel-macaque Jan 25, 2025
2196269
[Rgen] Provide a method to return the current UI namespaces.
mandel-macaque Jan 25, 2025
92218fe
Auto-format source code
Jan 25, 2025
8d24a43
[Rgen] Allow to mark bindings as thread safe. (#22045)
mandel-macaque Jan 25, 2025
3f95c75
Merge branch 'main' into dev/mandel/need-stret-roslyn
mandel-macaque Jan 25, 2025
9ecff41
[Rgen] Add support to parse the CoreImageFilter attribute.
mandel-macaque Jan 24, 2025
2279c2b
[Rgen] Add the code needed to parse the core image property attr in t…
mandel-macaque Jan 25, 2025
7f94d92
[Rgen] Keep track if a type is a dictionary container. (#22042)
mandel-macaque Jan 25, 2025
53589a3
[Rgen] Allow to mark bindings as thread safe. (#22045)
mandel-macaque Jan 25, 2025
1f12f19
Merge branch 'main' into dev/mandel/transformer-coreimage-filter
mandel-macaque Jan 25, 2025
fba23cf
[Rgen] Add support to parse the CoreImageFilter attribute. (#22043)
mandel-macaque Jan 25, 2025
4ad1425
Merge branch 'main' into dev/mandel/need-stret-roslyn
mandel-macaque Jan 25, 2025
88d0ea0
Merge branch 'main' into dev/mandel/compilation-ui-namespaces
mandel-macaque Jan 25, 2025
f62d0ff
[Rgen] Implement the methods to decide if we need to use a stret call…
mandel-macaque Jan 25, 2025
5d86062
[Rgen] Provide a method to return the current UI namespaces. (#22047)
mandel-macaque Jan 25, 2025
3c637c8
[Rgen] Add support to parse the error domain attr. (#22048)
mandel-macaque Jan 26, 2025
4fc4911
[Rgen] Add the BindingFlag attribute to some missing attribute names.…
mandel-macaque Jan 26, 2025
e126d8a
[Rgen] Add code to parse the NativeAttribute. (#22050)
mandel-macaque Jan 26, 2025
60c0741
[Rgen] Update the transformer code generator. (#22051)
mandel-macaque Jan 26, 2025
e15f298
[RGen] Update the transformer generator to access the attr data. (#22…
mandel-macaque Jan 27, 2025
b56304e
[RGen] Add the code generation for the data attributes. (#22053)
mandel-macaque Jan 27, 2025
e7419d9
Update Hot Restart Client to 17.14.83-g77e8f56103 (#22033)
mauroa Jan 27, 2025
db76488
[Rgen] Generate casting expressions for native enums. (#22059)
mandel-macaque Jan 28, 2025
695ef24
[Rgen] Fix a bug in how the target flags are managed. (#22054)
mandel-macaque Jan 28, 2025
208f61a
[CI] Use macOS Sequoia for building and testing (#22028)
dalexsoto Jan 28, 2025
a70bd3e
[RGen] Add attributes to the accessor struct in the generator. (#22055)
mandel-macaque Jan 29, 2025
3b647ca
[Rgen] Add method in the syntax factory to cast a bool to a byte. (#2…
mandel-macaque Jan 29, 2025
a072770
[Rgen] Add a central location for the aux variable naming. (#22063)
mandel-macaque Jan 29, 2025
cd6d5a2
[Rgen] Add parsing of the ThreadSafe attr to the transformer. (#22056)
mandel-macaque Jan 29, 2025
5c242ec
[Rgen] Add needed factory methods to cast an enum to its primitive ty…
mandel-macaque Jan 29, 2025
e597395
[Rgen] Add factory method that creates a NSArray aux variable. (#22066)
mandel-macaque Jan 29, 2025
1811707
[Rgen] Add support to parse the strong dict attr in the transformer. …
mandel-macaque Jan 29, 2025
8d57fe6
[Rgen] Add a factory method that will create the aux variable for han…
mandel-macaque Jan 29, 2025
cd2b8d3
[Rgen] Add code needed to parse the several snippet attrs. (#22058)
mandel-macaque Jan 30, 2025
de4505a
[Rgen] Add Async attr parsing to the transformer. (#22068)
mandel-macaque Jan 30, 2025
97e334f
[RGen] Add extension method to know if a symbol is wrapped. (#22077)
mandel-macaque Jan 30, 2025
9ff9006
[Rgen] Move all the attributes to be readonly record struct. (#22069)
mandel-macaque Jan 30, 2025
5bb740e
[Rgen] Create a generic method that can be used to test all attr pars…
mandel-macaque Jan 30, 2025
f501981
[Rgen] Add properties in the Property data model to decide if a field…
mandel-macaque Jan 30, 2025
5d0bf15
[Rgen] Add factory method that will create an aux variable for string…
mandel-macaque Jan 30, 2025
3ec6219
[ci] Remove references to sdk-insertions (#22079)
pjcollins Jan 30, 2025
0984d4d
[Rgen] Provide the needed code to parse notification attrs. (#22075)
mandel-macaque Jan 31, 2025
53cbff0
[Rgen] Add the needed code to parse a BindAsAttriubte. (#22083)
mandel-macaque Jan 31, 2025
cd15f78
[Rgen] Use ITypeSymbol over INamedTypeSymbol since they interface is …
mandel-macaque Jan 31, 2025
f3c4396
[Rgen] Set warnings to errors in the transformer tests. (#22086)
mandel-macaque Jan 31, 2025
5c5febc
[RGen] Implement the BindFrom attribute. (#22087)
mandel-macaque Feb 1, 2025
abfc28e
[RGen] Implement 'IsSmartEnum' for the transformer. (#22090)
mandel-macaque Feb 1, 2025
1fd248a
[Rgen] Start implementing the missing parts of the data model for the…
mandel-macaque Feb 1, 2025
aa4e62c
[Rgen] Add the method data model missing pieces for the transformer. …
mandel-macaque Feb 1, 2025
cb1d14b
[Harness] Increase the timeout for the generator tests. (#22096)
mandel-macaque Feb 2, 2025
68f55aa
[Rgen] Mark 'Constructor' named methods as constructors in the transf…
mandel-macaque Feb 2, 2025
f11b48f
[Rgen] Add the missing code to complete the property datamodel in the…
mandel-macaque Feb 2, 2025
308f51e
[Rgen] Allow the transformer to parse smart enums. (#22097)
mandel-macaque Feb 3, 2025
b055fa4
[CI] Do not return PRs for the CI unless they are open. (#22098)
mandel-macaque Feb 3, 2025
184fb0c
[RGen] Update signature ot the TryCreate methods to match those in th…
mandel-macaque Feb 4, 2025
56d51fa
[Rgen] Add a method that will return a constructor data model from a …
mandel-macaque Feb 4, 2025
1f0b6ab
[RGen] Add a new flag to determine if a type is a core image filter. …
mandel-macaque Feb 5, 2025
6770c15
[RGen] Add factory method needed to create a aux variable for a BindF…
mandel-macaque Feb 5, 2025
bcb6ff4
[Rgen] Add a new CreateBlock method for several concatenated blocks. …
mandel-macaque Feb 5, 2025
fe3580e
[Rgen] Add a factory method to create the aux variable for a BindFrom…
mandel-macaque Feb 5, 2025
f1aeb12
[RGen] Add a factory method to create the aux variable for a BindFrom…
mandel-macaque Feb 5, 2025
94d784e
[RGen] Add BindFrom factory method that will return the correct decla…
mandel-macaque Feb 6, 2025
4406361
[Rgen] Add flags to use plain strings during the marshalling. (#22116)
mandel-macaque Feb 6, 2025
08d51a2
[Rgen] Update tabbed string building API. (#22119)
mandel-macaque Feb 6, 2025
be1deb4
[Rgen] Add the needed factory method to generate NSArrays for the Bin…
mandel-macaque Feb 7, 2025
540e799
[Rgen] Move the tab string builder to use a IndentedTextWriter intern…
mandel-macaque Feb 7, 2025
64848c8
[Messaging/MacDev] Update System.Drawing.Common and System.Security.C…
dalexsoto Feb 7, 2025
d776bae
[adr] Bump adr to get update to a transient dependency (#22123)
dalexsoto Feb 7, 2025
03b9364
[RGen] Provide async methods for the TabbedWriter. (#22121)
mandel-macaque Feb 7, 2025
fd6f281
[CI] Remove the batch setting in the CI trigger. (#22130)
mandel-macaque Feb 7, 2025
5712e89
[Rgen] Provide a StreamWriter indent writer for the transformer. (#22…
mandel-macaque Feb 8, 2025
6f2387a
[Rgen] Add factory method for the autorelease pool. (#22131)
mandel-macaque Feb 8, 2025
a0cc310
[Rgen]Remove duplicated methods after bad merge. (#22136)
mandel-macaque Feb 8, 2025
bddafa0
[Rgen] Add property to let us know if a parameter needs the null chec…
mandel-macaque Feb 8, 2025
96549c2
Update Hot Restart Client to 17.14.133-g001ce2ac7a (#22128)
mauroa Feb 8, 2025
8a622fe
[Rgen] Add factory method for the throw null arg exception. (#22134)
mandel-macaque Feb 9, 2025
d0fb94b
[Rgen] Add factory to generate the method needed to check the UIThrea…
mandel-macaque Feb 9, 2025
97d6913
[main] Update dependencies from dotnet/xharness (#22140)
dotnet-maestro[bot] Feb 10, 2025
140c928
[Rgen] Add method to get the pointer for the exception handler. (#22135)
mandel-macaque Feb 10, 2025
b36c3a0
[msbuild] Demote W7091 to a message instead of warning. (#22000)
rolfbjarne Feb 10, 2025
e816eb9
[SpriteKit] Clean conditional code. (#22002)
rolfbjarne Feb 10, 2025
d240ab2
[RGen] Keep track in the generator if a type needs a stret call. (#22…
mandel-macaque Feb 10, 2025
ad6e79e
[net10.0] Merge main into net10.0.
rolfbjarne Feb 10, 2025
7fa7078
[tests] Fix tests after #22000 was merged prematurely. (#22148)
rolfbjarne Feb 11, 2025
2b43d37
[tests] Update BuildBundledResources test to actually take into accou…
rolfbjarne Feb 11, 2025
e438c22
[src] Update generated rsp file after #21963. (#22143)
rolfbjarne Feb 11, 2025
dccb534
Merge remote-tracking branch 'origin/main' into bump-main-in-net10.0-…
rolfbjarne Feb 11, 2025
5691dd3
[builds] Get the very latest dotnet-install.sh script.
rolfbjarne Feb 10, 2025
d0e1c05
[tests] Fix detecting whether there are any library resources in DotN…
rolfbjarne Feb 12, 2025
3aa52b5
[msbuild] Execute the '_CreateBindingResourcePackage' target on Windo…
rolfbjarne Feb 13, 2025
31a0546
Merge branch 'net10.0' into dev/rolf/bump-main-in-net10.0-2025-02-10
rolfbjarne Feb 17, 2025
1f6ca52
Merge remote-tracking branch 'origin/net10.0' into dev/rolf/bump-main…
rolfbjarne Feb 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/workflows/sdk-insertion-bump.yml

This file was deleted.

4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<MicrosoftBuildTasksCorePackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildTasksCorePackageVersion>
<MicrosoftBuildUtilitiesCorePackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildUtilitiesCorePackageVersion>
<NUnitXmlTestLoggerPackageVersion>3.1.15</NUnitXmlTestLoggerPackageVersion>
<!-- Fix transient dependency issue found by component governance 4.7.0 -> 4.7.2 brought by Microsoft.Build package -->
<SystemDrawingCommonPackageVersion>4.7.2</SystemDrawingCommonPackageVersion>
<!-- Fix transient dependency issue found by component governance 4.7.0 -> 4.7.1 brought by Microsoft.Build.Tasks.Core package -->
<SystemSecurityCryptographyXmlPackageVersion>4.7.1</SystemSecurityCryptographyXmlPackageVersion>
</PropertyGroup>
<Import Project="Build.props" Condition="Exists('Build.props')" />
</Project>
4 changes: 2 additions & 2 deletions builds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ print-dotnet-pkg-urls: dotnet-install.sh
$(Q) if ! test -f $@-found-it.stamp; then echo "No working urls were found."; exit 1; fi
$(Q) rm -f $@-found-it.stamp

# We need https://github.com/dotnet/install-scripts/pull/526, which hasn't been released yet.
# We need https://github.com/dotnet/install-scripts/pull/555, which hasn't been released yet.
# Revert to using https://dot.net/v1/dotnet-install.sh whenever https://dot.net/v1/dotnet-install.sh has been updated.
DOTNET_DOWNLOAD_URL?=https://raw.githubusercontent.com/dotnet/install-scripts/87151ae8d2153247f4566208e0df23169d737e92/src/dotnet-install.sh
DOTNET_DOWNLOAD_URL?=https://raw.githubusercontent.com/dotnet/install-scripts/d48e000adad7243861d799ec86c0bf7210a8fc7a/src/dotnet-install.sh

DOTNET_DOWNLOAD_URL?=https://dot.net/v1/dotnet-install.sh

Expand Down
5 changes: 3 additions & 2 deletions dotnet/Workloads/SignList.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@
<Skip Include="Build\System.Text.Json.dll" />
<Skip Include="Build\System.Threading.Tasks.Dataflow.dll" />
<Skip Include="Build\System.Threading.Tasks.Extensions.dll" />
<!-- They are now signed by their origin build https://github.com/xamarin/XamarinVS/pull/14522 -->
<Skip Include="imobiledevice-*\*.dll" />
<Skip Include="imobiledevice-*\*.exe" />
</ItemGroup>

<ItemGroup>
<ThirdParty Include="BouncyCastle.Crypto.dll" />
<ThirdParty Include="imobiledevice-*\*.dll" />
<ThirdParty Include="imobiledevice-*\*.exe" />
<!-- Build.zip -->
<ThirdParty Include="Mono.Cecil*.dll" />

Expand Down
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<MicrosoftNETRuntimeMonoTargetsSdkPackageVersion>9.0.0-rc.2.24462.10</MicrosoftNETRuntimeMonoTargetsSdkPackageVersion>
<MicrosoftTemplateEngineTasksVersion>7.0.100-alpha.1.21601.1</MicrosoftTemplateEngineTasksVersion>
<MicrosoftDotNetCecilPackageVersion>0.11.5-alpha.24627.1</MicrosoftDotNetCecilPackageVersion>
<MicrosoftDotNetXHarnessiOSSharedPackageVersion>10.0.0-prerelease.24610.1</MicrosoftDotNetXHarnessiOSSharedPackageVersion>
<MicrosoftDotNetXHarnessiOSSharedPackageVersion>10.0.0-prerelease.25103.1</MicrosoftDotNetXHarnessiOSSharedPackageVersion>
<MicrosoftDotNetArcadeSdkPackageVersion>9.0.0-beta.25058.5</MicrosoftDotNetArcadeSdkPackageVersion>
<!-- Manually updated versions -->
<Emscriptennet7WorkloadVersion>$(MicrosoftNETWorkloadEmscriptenCurrentManifest80100Version)</Emscriptennet7WorkloadVersion>
Expand Down
2 changes: 1 addition & 1 deletion mk/xamarin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ MACCORE_VERSION := $(shell cd $(MACCORE_PATH) 2> /dev/null && git rev-parse HE
MACCORE_BRANCH := $(shell cd $(MACCORE_PATH) 2> /dev/null && git symbolic-ref --short HEAD 2> /dev/null)


NEEDED_ADR_VERSION := d466eac70a9b1bba94c18c63e34e590c66f6d044
NEEDED_ADR_VERSION := adccd1c48a7c2540b0c37f2bf7add7d2c1398729
NEEDED_ADR_BRANCH := main

ADR_DIRECTORY := macios-adr
Expand Down
2 changes: 1 addition & 1 deletion msbuild/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

-->
<MessagingVersion Condition="'$(MessagingVersion)' == ''">[3.0.13]</MessagingVersion>
<HotRestartVersion>[1.1.7]</HotRestartVersion>
<HotRestartVersion>[17.14.133-g001ce2ac7a]</HotRestartVersion>
</PropertyGroup>
<Import Project="$(MSBuildThisFileDirectory)../Directory.Build.props" />
</Project>
2 changes: 1 addition & 1 deletion msbuild/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ IOS_WINDOWS_TARGETS = \

TASK_ASSEMBLIES = Xamarin.MacDev.Tasks $(LOCALIZATION_ASSEMBLIES)
IOS_WINDOWS_TASK_ASSEMBLIES = Xamarin.iOS.Tasks.Windows
IOS_WINDOWS_DEPENDENCIES = Xamarin.iOS.Windows.Client iSign.Core ws2_32 System.Diagnostics.Tracer System.Formats.Asn1 System.Buffers System.Memory System.Numerics.Vectors System.Runtime.CompilerServices.Unsafe System.Security.Cryptography.ProtectedData System.Security.Cryptography.Pkcs Microsoft.Win32.Registry System.Security.AccessControl System.Security.Principal.Windows
IOS_WINDOWS_DEPENDENCIES = Xamarin.iOS.Windows.Client iSign.Core ws2_32 System.Diagnostics.Tracer System.Formats.Asn1 System.Buffers System.Memory System.Numerics.Vectors System.Runtime.CompilerServices.Unsafe System.Security.Cryptography.ProtectedData System.Security.Cryptography.Pkcs Microsoft.Win32.Registry
IOS_WINDOWS_MOBILEDEVICE_TOOLS = iMobileDevice-net bz2 getopt ideviceactivation idevicebackup idevicebackup2 idevicecrashreport idevicedate idevicedebug idevicedebugserverproxy idevicediagnostics ideviceenterrecovery ideviceimagemounter ideviceinfo ideviceinstaller idevicename idevicenotificationproxy idevicepair ideviceprovision idevicerestore idevicescreenshot idevicesyslog idevice_id imobiledevice-net-lighthouse imobiledevice ios_webkit_debug_proxy iproxy irecovery irecovery libcharset libcurl LIBEAY32 libiconv libusb-1.0 libusb0 libxml2 lzma pcre pcreposix plist plistutil plist_cmp plist_test pthreadVC3 readline SSLEAY32 usbmuxd usbmuxd vcruntime140 zip zlib1

PROPS_AND_TARGETS = \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
<PackageReference Include="Microsoft.Build.Framework" Version="$(MicrosoftBuildFrameworkPackageVersion)" />
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(MicrosoftBuildTasksCorePackageVersion)" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="$(MicrosoftBuildUtilitiesCorePackageVersion)" />
<!-- Fix transient dependency issue found by component governance 4.7.0 -> 4.7.2 -->
<PackageReference Include="System.Drawing.Common" Version="$(SystemDrawingCommonPackageVersion)" />
<!-- Fix transient dependency issue found by component governance 4.7.0 -> 4.7.1 -->
<PackageReference Include="System.Security.Cryptography.Xml" Version="$(SystemSecurityCryptographyXmlPackageVersion)" />
<Compile Include="..\..\Versions.g.cs">
<Link>Versions.g.cs</Link>
</Compile>
Expand Down
5 changes: 5 additions & 0 deletions msbuild/Xamarin.Localization.MSBuild/MSBStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1714,4 +1714,9 @@
{0}: the path to a file
</comment>
</data>

<data name="W7144" xml:space="preserve">
<value>Did not extract {0} because it would write outside the target directory.</value>
</data>

</root>
12 changes: 12 additions & 0 deletions msbuild/Xamarin.MacDev.Tasks/Decompress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ static bool TryDecompressUsingSystemIOCompression (TaskLoggingHelper log, string
resource = resource.TrimEnd ('/', '\\');
resource = resource.Replace ('\\', zipDirectorySeparator);
var resourceAsDir = resource + zipDirectorySeparator;
decompressionDir = Path.GetFullPath (decompressionDir);

using var archive = ZipFile.OpenRead (zip);
foreach (var entry in archive.Entries) {
Expand Down Expand Up @@ -204,6 +205,17 @@ static bool TryDecompressUsingSystemIOCompression (TaskLoggingHelper log, string

var isDir = entryPath [entryPath.Length - 1] == zipDirectorySeparator;
var targetPath = Path.Combine (decompressionDir, entryPath.Replace (zipDirectorySeparator, Path.DirectorySeparatorChar));

// canonicalize the path
targetPath = Path.GetFullPath (targetPath);

// validate that the unzipped file is inside the target directory
var decompressionDirectoryPath = decompressionDir.Trim (Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar;
if (!targetPath.StartsWith (decompressionDirectoryPath)) {
log.LogWarning (7144, null, MSBStrings.W7144 /* Did not extract {0} because it would write outside the target directory. */, entryPath);
continue;
}

if (isDir) {
Directory.CreateDirectory (targetPath);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public override bool Execute ()
continue;
}

Log.LogWarning (7091, frameworkExecutablePath, MSBStrings.W7091 /* "The framework {0} is a framework of static libraries, and will not be copied to the app." */, Path.GetDirectoryName (frameworkExecutablePath));
Log.LogMessage (MessageImportance.Low, MSBStrings.W7091 /* "The framework {0} is a framework of static libraries, and will not be copied to the app." */, Path.GetDirectoryName (frameworkExecutablePath));
list.RemoveAt (i);
}

Expand Down
7 changes: 7 additions & 0 deletions msbuild/Xamarin.MacDev.Tasks/Tasks/PackLibraryResources.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ public override bool Execute ()
{
var results = new List<ITaskItem> ();

var hashOriginalResources = new HashSet<string> (BundleOriginalResourcesWithLogicalNames.Select (v => v.ItemSpec));

foreach (var item in BundleResourcesWithLogicalNames) {
if (hashOriginalResources.Contains (item.ItemSpec)) {
Log.LogMessage (MessageImportance.Low, $"Skipping BundleResourcesWithLogicalNames={item.ItemSpec}, because it's also specified in BundleOriginalResourcesWithLogicalNames");
continue;
}

var logicalName = item.GetMetadata ("LogicalName");

if (string.IsNullOrEmpty (logicalName)) {
Expand Down
4 changes: 4 additions & 0 deletions msbuild/Xamarin.MacDev.Tasks/Xamarin.MacDev.Tasks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="$(MicrosoftNETILLinkTasksPackageVersion)" />
<PackageReference Include="Microsoft.NET.Runtime.MonoTargets.Sdk" Version="$(MicrosoftNETRuntimeMonoTargetsSdkPackageVersion)" GeneratePathProperty="true"/>
<PackageReference Include="Xamarin.Messaging.Build.Client" Version="$(MessagingVersion)" />
<!-- Fix transient dependency issue found by component governance 4.7.0 -> 4.7.2 -->
<PackageReference Include="System.Drawing.Common" Version="$(SystemDrawingCommonPackageVersion)" />
<!-- Fix transient dependency issue found by component governance 4.7.0 -> 4.7.1 -->
<PackageReference Include="System.Security.Cryptography.Xml" Version="$(SystemSecurityCryptographyXmlPackageVersion)" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\external\Xamarin.MacDev\Xamarin.MacDev\Xamarin.MacDev.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<PackageReference Include="Xamarin.Messaging.Build.Client" Version="$(MessagingVersion)" IncludeAssets="contentFiles" />
<PackageReference Include="Xamarin.Messaging.Core" Version="$(MessagingVersion)" IncludeAssets="build" />
<PackageReference Include="Xamarin.Messaging.Server" Version="$(MessagingVersion)" IncludeAssets="contentFiles" />
<PackageReference Include="iSign.Core" Version="$(HotRestartVersion)" GeneratePathProperty="true" />
<PackageReference Include="Xamarin.iOS.HotRestart.Client" Version="$(HotRestartVersion)" GeneratePathProperty="true" />
<PackageReference Include="System.Diagnostics.Tracer" Version="2.1.0-alpha" GeneratePathProperty="true" />
<!-- GitInfo is pulled in because of Xamarin.Messaging from above, but we don't want it, so just exclude all assets from it -->
Expand All @@ -38,7 +39,7 @@
<None Include="*.targets">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="$(PkgXamarin_iOS_HotRestart_Client)\lib\netstandard2.0\iSign.Core.pdb" CopyToOutputDirectory="PreserveNewest" />
<None Include="$(PkgiSign_Core)\lib\netstandard2.0\iSign.Core.pdb" CopyToOutputDirectory="PreserveNewest" />
<None Include="$(PkgXamarin_iOS_HotRestart_Client)\lib\netstandard2.0\Xamarin.iOS.Windows.Client.pdb" CopyToOutputDirectory="PreserveNewest" />
<Compile Include="../Versions.g.cs" />
<Compile Include="..\Xamarin.MacDev.Tasks\PublishFolderType.cs">
Expand Down
4 changes: 4 additions & 0 deletions scripts/rsp-to-csproj/rsp-to-csproj.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ void ProcessFile (string file)
break;
case "noconfig": // this is already passed to csc by default
break;
case "reportanalyzer":
if (!properties.Contains (("ReportAnalyzer", "true")))
properties.Add (new ("ReportAnalyzer", "true"));
break;
default:
ReportError ($"Didn't understand argument '{a}'");
break;
Expand Down
16 changes: 0 additions & 16 deletions src/AppKit/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1439,22 +1439,6 @@ public enum NSPasteboardReadingOptions : ulong {
AsKeyedArchive = 4,
}

#if !NET && MONOMAC // Use the one in Foundation instead, only keep this in macOS until .NET.
[Native]
public enum NSUnderlineStyle : long {
None = 0x00,
Single = 0x01,
Thick = 0x02,
Double = 0x09,
PatternSolid = 0x0000,
PatternDot = 0x0100,
PatternDash = 0x0200,
PatternDashDot = 0x0300,
PatternDashDotDot = 0x0400,
ByWord = 0x8000,
}
#endif

// Convenience enum, untyped in ObjC
[NoMacCatalyst]
public enum NSUnderlinePattern : int {
Expand Down
26 changes: 1 addition & 25 deletions src/Foundation/Compat.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Compat.cs: Stuff we won't provide in Xamarin.iOS.dll or newer XAMCORE_* profiles
// Compat.cs: Stuff we won't provide in newer XAMCORE_* profiles
//
// Authors:
// Sebastien Pouliot <[email protected]>
Expand All @@ -12,30 +12,6 @@
using ObjCRuntime;

namespace Foundation {

#if !NET
#if MONOMAC
public partial class NSError {

// removed in Xcode 11 GM
[Obsolete ("This API has been removed.")]
public static NSError GetFileProviderErrorForOutOfDateItem (FileProvider.INSFileProviderItem updatedVersion)
{
return null;
}
}
#endif

public partial class NSUserActivity {

[Obsolete ("Use the constructor that allows you to set an activity type.")]
public NSUserActivity ()
: this (String.Empty)
{
}
}
#endif // !NET

#if !XAMCORE_5_0
#if __IOS__ && !__MACCATALYST__
public partial class NSUrlConnection {
Expand Down
10 changes: 0 additions & 10 deletions src/Foundation/DictionaryContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,14 @@
using UIKit;
#endif

#if !NET
using NativeHandle = System.IntPtr;
#endif

#nullable enable

namespace Foundation {

#if NET
[SupportedOSPlatform ("ios")]
[SupportedOSPlatform ("maccatalyst")]
[SupportedOSPlatform ("macos")]
[SupportedOSPlatform ("tvos")]
#endif
public abstract class DictionaryContainer {
#if !COREBUILD
protected DictionaryContainer ()
Expand Down Expand Up @@ -247,11 +241,7 @@ protected DictionaryContainer (NSDictionary? dictionary)
return value as NSDictionary<TKey, TValue>;
}

#if NET
protected T? GetStrongDictionary<[DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors)] T> (NSString key)
#else
protected T? GetStrongDictionary<T> (NSString key)
#endif
where T : DictionaryContainer
{
return GetStrongDictionary (key, dict =>
Expand Down
30 changes: 0 additions & 30 deletions src/Foundation/Enum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,9 @@ public enum NSUrlCredentialPersistence : ulong {

#if MONOMAC

#if !NET
[Native]
public enum NSBundleExecutableArchitecture : long {
#else
/// <summary>The bundle's architecture.</summary>
[NoiOS][NoTV][NoMacCatalyst]
public enum NSBundleExecutableArchitecture {
#endif
I386 = 0x00000007,
PPC = 0x00000012,
X86_64 = 0x01000007,
Expand Down Expand Up @@ -252,10 +247,6 @@ public enum NSCalendarUnit : ulong {
public enum NSDataReadingOptions : ulong {
Mapped = 1 << 0,
Uncached = 1 << 1,
#if !NET
[Obsolete ("This option is unavailable.")]
Coordinated = 1 << 2,
#endif
MappedAlways = 1 << 3,
}

Expand Down Expand Up @@ -592,10 +583,6 @@ public enum NSVolumeEnumerationOptions : ulong {
[Flags]
[Native]
public enum NSDirectoryEnumerationOptions : ulong {
#if !NET
[Obsolete ("Use 'None' instead.")]
SkipsNone = 0,
#endif
None = 0,
SkipsSubdirectoryDescendants = 1 << 0,
SkipsPackageDescendants = 1 << 1,
Expand Down Expand Up @@ -808,10 +795,6 @@ public enum NSJsonReadingOptions : ulong {
Json5Allowed = 8,
[iOS (15, 0), TV (15, 0), MacCatalyst (15, 0)]
TopLevelDictionaryAssumed = 16,
#if !NET
[Obsolete ("Use 'FragmentsAllowed. instead.")]
AllowFragments = FragmentsAllowed,
#endif
}

[Flags]
Expand Down Expand Up @@ -889,7 +872,6 @@ public enum NSAttributedStringEnumeration : ulong {
LongestEffectiveRangeNotRequired = 1 << 20,
}

#if NET || !MONOMAC
// macOS has defined this in AppKit as well, but starting with .NET we're going
// to use this one only.
[Native]
Expand All @@ -905,7 +887,6 @@ public enum NSUnderlineStyle : long {
PatternDashDotDot = 0x0400,
ByWord = 0x8000,
}
#endif

// There's an AppKit.NSWritingDirection, which is deprecated.
// There's also an UIKit.UITextWritingDirection, which is deprecated too.
Expand Down Expand Up @@ -977,17 +958,6 @@ public enum NSLigatureType : long {
All,
}

#if !NET
[Flags]
[Native]
public enum NSDateComponentsWrappingBehavior : ulong {
None = 0,
WrapCalendarComponents = 1 << 0,

// Did not add the new enums here, we moved them elsewhere, and provided overloads.
}
#endif

[Flags]
[Native]
public enum NSCalendarOptions : ulong {
Expand Down
Loading
Loading