xamarin-macios/tests/dotnet
Rolf Bjarne Kvinge b70e6f4674
Submodule MonoTouch.Dialog. (#13058)
* Submodule MonoTouch.Dialog.

Submodule MonoTouch.Dialog, so that we can easily build it using .NET. This
submodule will become redundant when/if we publish a .NET version of
MonoTouch.Dialog, but until that happens we need it at least for our own test
suites.

This also means we have to copy our NuGet.config and global.json files to the
MonoTouch.Dialog project directory so that we point msbuild to use our local
build.

New commits in spouliot/Touch.Unit:

* spouliot/Touch.Unit@cbda703 [Touch.Client] Use MonoTouch.Dialog from a submodule. (#109)

Diff: 3345db2f4e..cbda703583

* Use relative path for submodule.

And fix indentation and set the branch name.

* Don't use 'RootTestsDirectory' when it might not be defined yet.

* [tests] Our test projects don't need to reference MonoTouch.Dialog directly.

The projects get the MonoTouch.Dialog reference indirectly through the
Touch.Client project reference.

* [tests] Only validate unique errors in the .NET unit tests.

* [tests] No need to reference System.Json anymore, that's handled directly in the MonoTouch.Dialog project.

* [tests] Reference nunit.framework.targets so we get a workaround for an NUnit issue everywhere.

* [msbuild] Only try to create a package if we're able to create an app bundle.

This fixes an issue where a library project would try (and fail) to create a
package when 'CreatePackage=true' (which could be set for the executable
project, but inherited by the library project since the executable project
depends on it).

* [tests] Adjust PackTest.BindingXcFrameworksProject to not set the AssemblyName property.

MSBuild ends up being very confused when the project we're trying to build
depends on other projects, because AssemblyName is set for all the projects
being build, and MSBuild complains about ambiguous projects:

> error: Ambiguous project name 'bindings-xcframework-test'
2021-10-26 08:18:34 +02:00
..
AppWithResources [msbuild/dotnet] Compile project-level assets in the outer build for multi-rid builds. Fixes #12410. (#12847) 2021-09-30 08:25:10 +02:00
BindingWithDefaultCompileInclude [dotnet] Enable default compile items for binding projects. Fixes #12532. (#12758) 2021-09-20 13:41:20 +02:00
ExtensionConsumer [net6][msbuild] Set SelfContained for AppExtensions sooner to fix publishing (#12703) 2021-09-20 09:40:41 -05:00
ExtensionProject [tests] Bump our generic min macOS version to 10.14 for .NET tests. (#12938) 2021-10-07 09:09:46 +02:00
MyCatalystApp [dotnet] Support SupportedOSPlatformVersion. Fixes #12336. (#12638) 2021-09-08 09:20:05 +02:00
MyClassLibrary [dotnet] Add support for 'dotnet pack'. Fixes #12631. (#12900) 2021-10-04 07:43:55 +02:00
MyCocoaApp [dotnet] Support SupportedOSPlatformVersion. Fixes #12336. (#12638) 2021-09-08 09:20:05 +02:00
MyInterpretedApp [msbuild] Don't require an Info.plist for .NET builds. (#12661) 2021-09-09 09:08:04 +02:00
MyPartialAppManifestApp [msbuild] Don't require an Info.plist for .NET builds. (#12661) 2021-09-09 09:08:04 +02:00
MySimpleApp [msbuild] Don't require an Info.plist for .NET builds. (#12661) 2021-09-09 09:08:04 +02:00
MySingleView [dotnet] Support SupportedOSPlatformVersion. Fixes #12336. (#12638) 2021-09-08 09:20:05 +02:00
MyTVApp [dotnet] Support SupportedOSPlatformVersion. Fixes #12336. (#12638) 2021-09-08 09:20:05 +02:00
MyXamarinFormsApp [dotnet] Support SupportedOSPlatformVersion. Fixes #12336. (#12638) 2021-09-08 09:20:05 +02:00
NativeDynamicLibraryReferencesApp [msbuild] Don't require an Info.plist for .NET builds. (#12661) 2021-09-09 09:08:04 +02:00
NativeFileReferencesApp [msbuild] Don't require an Info.plist for .NET builds. (#12661) 2021-09-09 09:08:04 +02:00
NativeFrameworkReferencesApp [msbuild] Don't require an Info.plist for .NET builds. (#12661) 2021-09-09 09:08:04 +02:00
NativeXCFrameworkReferencesApp [msbuild] Don't require an Info.plist for .NET builds. (#12661) 2021-09-09 09:08:04 +02:00
SimpleAppWithOldReferences [msbuild] Don't require an Info.plist for .NET builds. (#12661) 2021-09-09 09:08:04 +02:00
UnitTests Submodule MonoTouch.Dialog. (#13058) 2021-10-26 08:18:34 +02:00
size-comparison/MySingleView [dotnet] Support SupportedOSPlatformVersion. Fixes #12336. (#12638) 2021-09-08 09:20:05 +02:00
.gitignore [tests][dotnet] A few helping touch to do size comparison (#11446) 2021-05-05 19:15:18 -04:00
Makefile Submodule MonoTouch.Dialog. (#13058) 2021-10-26 08:18:34 +02:00
README.md [msbuild] Add ILStrip'ing for net6 applications. Fixes #11445. (#12563) 2021-10-05 09:43:22 -05:00

README.md

.net tests

size-comparison

Easier Analysis

If you want to read/compare the IL inside the assemblies you need to disable IL stripping.

  • Legacy (oldnet)

Add this option inside the Release|iPhone configuration of size-comparison/MySingleView/oldnet/MySingleView.csproj

<MtouchExtraArgs>--nostrip</MtouchExtraArgs>
  • net6

Build with /p:EnableAssemblyILStripping=false set. The MtouchExtraArgs legacy option is also honored.