Граф коммитов

83 Коммитов

Автор SHA1 Сообщение Дата
Rui Marinho 5254a8de4b
Sign release branches by default (#921) 2021-05-03 14:20:53 +01:00
dotnet-maestro[bot] 0afc6d1de3
Update dependencies from https://github.com/xamarin/xamarin-macios build 20210501.3 (#909)
Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk
 From Version 11.3.100-preview.4.626 -> To Version 11.3.100-preview.4.628

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-05-01 09:48:51 -04:00
dotnet-maestro[bot] c0749a07e1
Update dependencies from https://github.com/xamarin/xamarin-macios build 20210429.36 (#900)
Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk
 From Version 11.3.100-preview.4.624 -> To Version 11.3.100-preview.4.626

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-05-01 08:08:26 -04:00
Marco Goertz 4f8ee0f060
Bring back XAML2006/2009 XmlnsDefinition attributes (#878)
* Fix yaml triggers

* Run pr's for release branches

* Automated dotnet-format update (#839)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* [Housekeeping] Add provisionating xcode to net6 (#836)

* Add provisionating xcode to net6

* Fix essentials device tests

* try again

* Update dependencies from https://github.com/xamarin/xamarin-android build main-a2156d41275b92de3cf23f7c79801327c74b7fe0-1 (#846)

Microsoft.Android.Sdk.Windows
 From Version 11.0.200-ci.main.226 -> To Version 11.0.200-ci.main.234

Dependency coherency updates

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-preview.4.21215.1 -> To Version 6.0.100-preview.4.21221.10 (parent: Microsoft.Android.Sdk.Windows

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>

* WinUI Navigation Handler (#801)

* WinUI Navigation Handler

* - PR comments

* - consolidate a few more APIs

* - fix namespaces

* - fix namespaces

* Update src/Compatibility/Core/src/WinUI/FlyoutPageRenderer.cs

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>

* Improve Hot Reload Integration (#851)

* Fixes HotReload (#853)

Reverts changed from: 7d4d1ce4b7 (diff-2b4bb95e12307423f7126d91b43a1511b68d00535e9f2b5f535af85d7a388333R36)

* Android Push/Pop Navigation (#837)

* Android Navigation

* - fix layout

* - changes

* - yay pushing

* - wire up nav to use bundle ids

* - cleanup

* - setup pop

* - build up nav stack

* - remove nav push

* - remove graph xml

* Update global.json

* - add android to non net6 controls project

* - fix namespace

* Update Microsoft.Maui-net6.sln

* iOS NavigationPageHandler (#852)

* iOS Navigation

* - wire up iOS Navigation

* - remove VET

* - rework with HR

* - fix namespace

* - fix HR

* - fix hr

* - fix SO exception

* - maybe?

* - nullabel fix

* Update dependencies from https://github.com/xamarin/xamarin-macios build 20210426.5 (#847)

Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
 From Version 14.5.100-ci.main.620 -> To Version 14.5.100-ci.main.658

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>

* Automated dotnet-format update (#854)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Implement PickerHandler in WinUI (#779)

* Implement PickerHandler in WinUI

* Enab le nullable in some classes

* Fix build error

* Register MauiComboBox ResourceDictionary

* Updated PickerExtensions

* Updated MauiComboBox

Co-authored-by: Rachel Kang <rachelkang@microsoft.com>

* [Build] Update maestro with macOS and tvOS (#862)

* [Build] Update maestro with macOS and tvOS

* [Build] Add tvOS and macOS to workload/dogfood

* Add Microsoft.iOS.Windows.Sdk

Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>

* Update README.md (#865)

* ContainerViewControllers should use the correct background color. (#868)

Also set the title of the VC from a page

* Automated dotnet-format update (#872)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Bring back XAML2006/2009 XmlnsDefinition attributes

These are required so that things like x:Static can be resolved to Microsoft.Maui.Controls.Xaml.StaticExtension.

Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: James Clancey <james.clancey@gmail.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Rachel Kang <rachelkang@microsoft.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Co-authored-by: 1d0n7kn0w <3910210+1d0n7kn0w@users.noreply.github.com>
Co-authored-by: Jonathan Dick <jodick@microsoft.com>
2021-04-28 15:29:13 -04:00
dotnet-maestro[bot] 10e2ec5c20
Update dependencies from https://github.com/xamarin/xamarin-android build 6.0.1xx-preview4-7dce60860604aa6f93103a9190392943e926936e-1 (#876)
Microsoft.Android.Sdk.Windows
 From Version 11.0.200-preview.4.234 -> To Version 11.0.200-preview.4.237

Dependency coherency updates

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-preview.4.21221.10 -> To Version 6.0.100-preview.4.21226.14 (parent: Microsoft.Android.Sdk.Windows

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
2021-04-28 17:19:30 +01:00
dotnet-maestro[bot] fbb7188abf
Update dependencies from https://github.com/xamarin/xamarin-macios build 20210427.36 (#877)
Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk
 From Version 11.3.100-preview.4.623 -> To Version 11.3.100-preview.4.624

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-04-28 14:21:20 +01:00
Shane Neuville 459d05519e
Copy all upstream XBF files downstream (#870)
* Turn off embeddedxbf

* - copy all the files

* - fix resource namespace

* Update package.ps1
2021-04-27 21:18:50 -04:00
Rui Marinho a2b5bd8542
[Build] Update maestro with macOS and tvOS (#862)
* [Build] Update maestro with macOS and tvOS

* [Build] Add tvOS and macOS to workload/dogfood

* Add Microsoft.iOS.Windows.Sdk

Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
# Conflicts:
#	eng/Version.Details.xml
#	eng/Versions.props
2021-04-27 17:05:26 +01:00
dotnet-maestro[bot] c7d56a3c90
Update dependencies from https://github.com/xamarin/xamarin-android build 6.0.1xx-preview4-88de81d22e57a6338c9c6dac17585e5f3190039e-1 (#860)
Microsoft.Android.Sdk.Windows
 From Version 11.0.200-preview.4.232 -> To Version 11.0.200-preview.4.234

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-04-27 16:58:25 +01:00
Shane Neuville 45e937585c
Backport Navigation to Preview 4 (#861)
* WinUI Navigation Handler (#801)

* WinUI Navigation Handler

* - PR comments

* - consolidate a few more APIs

* - fix namespaces

* - fix namespaces

* Update src/Compatibility/Core/src/WinUI/FlyoutPageRenderer.cs

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>

* Improve Hot Reload Integration (#851)

* Fixes HotReload (#853)

Reverts changed from: 7d4d1ce4b7 (diff-2b4bb95e12307423f7126d91b43a1511b68d00535e9f2b5f535af85d7a388333R36)

* Android Push/Pop Navigation (#837)

* Android Navigation

* - fix layout

* - changes

* - yay pushing

* - wire up nav to use bundle ids

* - cleanup

* - setup pop

* - build up nav stack

* - remove nav push

* - remove graph xml

* Update global.json

* - add android to non net6 controls project

* - fix namespace

* Update Microsoft.Maui-net6.sln

* iOS NavigationPageHandler (#852)

* iOS Navigation

* - wire up iOS Navigation

* - remove VET

* - rework with HR

* - fix namespace

* - fix HR

* - fix hr

* - fix SO exception

* - maybe?

* - nullabel fix

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: James Clancey <james.clancey@gmail.com>
2021-04-27 15:41:36 +01:00
dotnet-maestro[bot] eb5ecba106
Update dependencies from https://github.com/xamarin/xamarin-macios build 20210426.13 (#850)
Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk
 From Version 14.5.100-ci.main.620 -> To Version 14.5.100-preview.4.623

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
2021-04-26 21:40:28 -04:00
dotnet-maestro[bot] 8d8d59acc9
Update dependencies from https://github.com/xamarin/xamarin-android build 6.0.1xx-preview4-8fb9195f8092712c52dfa971727c650443586a80-1 (#849)
Microsoft.Android.Sdk.Windows
 From Version 11.0.200-ci.main.226 -> To Version 11.0.200-preview.4.232

Dependency coherency updates

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-preview.4.21215.1 -> To Version 6.0.100-preview.4.21221.10 (parent: Microsoft.Android.Sdk.Windows

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2021-04-26 23:09:13 +01:00
Rui Marinho e9a78ffe62
Run pr's for release branches 2021-04-26 10:29:20 +01:00
Rui Marinho ca0ec612b3
Fix yaml triggers 2021-04-26 10:29:12 +01:00
Peter Collins 720a338f43
[build] Update to .NET 6 Preview 4 (#796)
* [build] Update to .NET 6 Preview 4

Brings in Preview 4 updates for the Android, MaciOS, and .NET SDks.

Initial build attempts were failing with hundreds of errors:

    D:\a\1\s\src\Essentials\src\Connectivity\Connectivity.ios.tvos.macos.cs(12,70): error BI1234: 'CTCellularData' is obsolete: 'Starting with ios14.0 Use the 'CallKit' API instead.' [D:\a\1\s\src\Essentials\src\Essentials-net6.csproj]
    D:\a\1\s\src\Essentials\src\Compass\Compass.ios.cs(31,6): error CA1416: This call site is reachable on: 'iOS' 13.6 and later. 'CLLocationManager.HeadingFilter' is only supported on: 'macos' 11.0 and later. [D:\a\1\s\src\Essentials\src\Essentials-net6.csproj]
    D:\a\1\s\src\Core\src\Platform\MaciOS\ColorExtensions.cs(64,13): error CA1416: This call site is reachable on: 'MacCatalyst' 13.5 and later. 'UIColor.SystemBackgroundColor.get' is supported on: 'ios' 13.0 and later. [D:\a\1\s\src\Core\src\Core-net6.csproj]
    CSC : error AD0001: Analyzer 'Microsoft.NetCore.Analyzers.InteropServices.PlatformCompatibilityAnalyzer' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'. [D:\a\1\s\src\BlazorWebView\src\core\Microsoft.AspNetCore.Components.WebView.Maui.csproj]

The [platform compatibility analyzer][0] has been disabled for now, and
it can be enabled locally to work through the few hundred errors in
future PRs.

Once these issues were sorted, there were a handful of other breaks
that I've attempted to fix:

    D:\a\1\s\src\Essentials\src\AssemblyInfo\AssemblyInfo.ios.tvos.watchos.macos.cs(3,12): error CS0618: 'LinkerSafeAttribute' is obsolete: 'Replace with '[assembly: System.Reflection.AssemblyMetadata ("IsTrimmable", "True")]'.' [D:\a\1\s\src\Essentials\src\Essentials-net6.csproj]

    D:\a\1\s\src\Compatibility\Core\src\iOS\Renderers\TabbedRenderer.cs(422,33): error CS1503: Argument 1: cannot convert from 'UIKit.UIStringAttributes' to 'UIKit.UITextAttributes' [D:\a\1\s\src\Compatibility\Core\src\Compatibility-net6.csproj]

    D:\a\1\s\src\Compatibility\Core\src\iOS\CollectionView\CarouselViewController.cs(106,23): error CS0114: 'CarouselViewController.DraggingStarted(UIScrollView)' hides inherited member 'UICollectionViewController.DraggingStarted(UIScrollView)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword. [ D:\a\1\s\src\Compatibility\Core\src\Compatibility-net6.csproj]
    D:\a\1\s\src\Compatibility\Core\src\iOS\CollectionView\CarouselViewController.cs(117,23): error CS0114: 'CarouselViewController.DraggingEnded(UIScrollView, bool)' hides inherited member 'UICollectionViewController.DraggingEnded(UIScrollView, bool)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword. [ D:\a\1\s\src\Compatibility\Core\src\Compatibility-net6.csproj]

Finally it seems JDK 14 was being preferred on macOS machines in CI, so
I've set `$(JI_JAVA_HOME)` to the [pre-installed JDK 11][1].

[0]: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1416
[1]: https://github.com/actions/virtual-environments/blob/macOS-10.15/20210419.2/images/macos/macos-10.15-Readme.md#java

* Apply feedback, bump p4 bits, provision xcode 12.5 rc

* Use Big Sur pool, clean up duplicate variable declaration

* Revert "Use Big Sur pool, clean up duplicate variable declaration"

This reverts commit b91482e10c.

* Disable linker for ios and catalyst

Co-authored-by: Rui Marinho <me@ruimarinho.net>
2021-04-24 11:32:18 +01:00
Rui Marinho 22a9e6a501
Update GitInfo on main (#835)
* Update GitInfo

* Update CI to build releases branches
2021-04-24 10:29:44 +01:00
Jonathan Peppers 29a1c4376d
Bump to new AndroidX packages (#825)
We have new AndroidX packages produced from:

https://github.com/xamarin/AndroidX/pull/247

After updating I ran into:

    C:\src\maui\src\Compatibility\Core\src\Android\CollectionView\SelectableViewHolder.cs(44,25):
        error CS0618: 'RecyclerView.ViewHolder.AdapterPosition' is obsolete: 'deprecated' [C:\src\maui\src\Compatibility\Core\src\Compatibility-net6.csproj]
    C:\src\maui\src\Compatibility\Core\src\Android\CollectionView\SelectableItemsViewAdapter.cs(70,9):
        error CS0618: 'RecyclerView.ViewHolder.AdapterPosition' is obsolete: 'deprecated' [C:\src\maui\src\Compatibility\Core\src\Compatibility-net6.csproj]
        0 Warning(s)
        2 Error(s)

`AdapterPosition` is indeed obsolete:

https://stackoverflow.com/a/63148812

It appears we can use `BindingAdapterPosition`, because the deprecated
code is basically:

    @Deprecated
    public final int getAdapterPosition() {
        return getBindingAdapterPosition();
    }
2021-04-22 20:28:52 -04:00
Eilon Lipton 8320f88a63
Add build/signing details for BlazorWebView control (#803) 2021-04-21 19:17:21 -04:00
Matthew Leibowitz 4a6b9e9611
Use Maui for the essentials sample (#786)
* Use Maui for the essentials sample

Android is running

* missing deps

* That seems to need that

* Make it all go around

* Use the new graphics primatives

* Added 2.1
2021-04-20 16:21:30 -04:00
Eilon Lipton 9c1bdcb4dd
.NET MAUI BlazorWebView control for Android, iOS/MacCatalyst, and WinUI (#654)
* BlazorWebView control for .NET MAUI:
- Supports Android, iOS, and WinUI
- Samples updates to show simple Blazor demo

* Revert more sample changes for cleanup

* Update samples

* Shorten folder names

* Code cleanup

* Sample cleanup

* Update non-net6 project/SLN

* Revert "Update non-net6 project/SLN"

This reverts commit cc6be87d2e1cb02acd58375c258046258c4828ed.

* Skip Blazor for non-.NET6 samples

* Update BlazorPage.cs

* Rebase on 'main' and update sample to match

* Added BlazorWebView project to the winui sln

* Remove scrollview for now

Co-authored-by: Jonathan Dick <jondick@gmail.com>
2021-04-15 16:47:42 -04:00
Peter Collins 45dd0edab9
[build] Use arcade dependency management (#729) 2021-04-15 19:49:21 +01:00
Shane Neuville b73a301bd5
Win2D (#713)
* Win2D for Fonts

* - win2D

* - fix namespaces

* - add spike code for DPI

* - fix font name

* - iOS

* - fix colors

* - fix size
2021-04-15 07:38:21 -04:00
Jonathan Dick 397f90a2dd
Workaround for .NET6P3 maccatalyst/ios debug on macos (#742)
There was a change in P3 to stop setting this environment variable in maccatalyst and ios which is causing the debugger to hang while connecting on macOS.  This is a temporary fix to bring back the env variable until the issue is addressed.

https://github.com/dotnet/runtime/issues/50966
2021-04-14 16:32:37 -04:00
James Clancey b1866fd187
Microsoft.Maui.Graphics (#641)
* Core and Controls.Core now compile

* Core tests now compile

* Fixed more of the build

* Compatability.iOS builds

* Libraries are now all building

* Removed crud added by IDE

* Add Graphics to the sample

* Fixed another Color -> Colors

* Fix rebase issues

* Update Windows platform to Maui.Graphics

* KnownColors -> KnownColor

* Fix rebase errors

* Add missing usings for stubs

* Fix some XAMLC errors creating colors and rectangles

* Return null for Color.Default

* It's System.Single, not System.Float

* Resolve MGColor creation issues for Resources

* Add missing namespaces and fix class name

* Fix namespace and assembly for Rectangle converter

* Fix Color references in Maps projects

* Fix all MG references in Compatibility

* Fix more references

* Fix references in shared tests project

* Missed a Color reference

* Don't add paddingButton twice

* Remove Xamarin.Essentials reference

* Clean up old MG reference

* Disambiguate Graphics Rectangle and Shapes Rectangle

* Get named colors from Colors (not Color)

* Adjust test for new API

* Remove extra return opcode

* Register MG assembly so we can resolve types for tests

* Bump Maui Graphics package version

We really need to put this in a variable somewhere

* Missed one version

* Fix brush unit tests

* Centralize version

Co-authored-by: E.Z. Hart <hartez@gmail.com>
Co-authored-by: Jonathan Dick <jondick@gmail.com>
2021-04-13 11:30:45 -06:00
Shane Neuville 18e0f4ebbc
Fix cake VS-WINUI Target (#699)
* Fix WinUI Cake script for building WinUI

* - fix clean script to ignore dotnet folders
2021-04-09 18:16:04 -05:00
Shane Neuville 67d484d32a
Sign windows nugets instead of mac (#665)
* Sign windows nugets

* - change destination folder

* - switch
2021-04-06 17:16:25 -05:00
Peter Collins 5a2aa3ae5d
Bump to .NET 6.0.100-preview.3.21202.5 (#656)
* Android 11.0.200.196
  * Catalyst 14.3.100.471
  * iOS 14.4.100.1326
2021-04-06 08:19:25 -04:00
Jonathan Peppers 85adc53040
Bump to .NET 6.0.100-preview.3.21201.23 (#642)
* Android 11.0.200-preview.3.195
* Catalyst: 14.3.100-ci.main.465
* iOS: 14.4.100-ci.main.1320

Other changes:
* We should be able to remove the `$(SuppressTrimAnalysisWarnings)` workaround.
* We need to use `iossimulator-x64` everywhere, as the RID has been changed to differentiate iOS simulators between M1 Macs and Intel Macs.
2021-04-05 16:50:13 +01:00
Shane Neuville 70b23f45f0
Csharp9 (#640)
* Update to C#9

* - add one C#9 feature

* - toolset

* - NS20 only

* - check msbuild version
2021-04-05 09:34:03 -04:00
Jonathan Peppers cd0ebb565e
Bump to .NET 6.0.100-preview.3.21174.8 (#617)
* Android 11.0.200-preview.3.189
* MacCatalyst 14.3.100-ci.main.438
* iOS 14.4.100-ci.main.1293

We can also remove `$(SuppressTrimAnalysisWarnings)` now.
2021-03-31 10:56:04 +01:00
Shane Neuville e7414cb7f4
Bump reunion to stable 0.5 (#610)
* Bump reunion to stable 0.5

* - remove life cycle apis
2021-03-29 15:00:53 -05:00
Matthew Leibowitz 529f68d12d
Unify WinUI versions (#604) 2021-03-26 20:12:37 -05:00
Jonathan Peppers 2a442cbf22
Bump to .NET 6.0.100-preview.3.21168.18 (#592)
* Android 11.0.200-ci.main.175
* iOS 14.4.100-ci.main.1271
* MacCatalyst 14.3.100-ci.main.416

Other changes:

* Some Android SDK packs were renamed.
* We no longer need various packages to appease ILLink, such as:
  System.CodeDom, System.IO.Ports, etc.
* Temporarily set `$(SuppressTrimAnalysisWarnings)` in
  `Directory.Build.props`.
2021-03-26 09:26:15 +00:00
Jonathan Peppers fe429dd2a1
[build] we don't need to install a system .NET 6 (#594)
CI is currently downloading/installing .NET 6 twice, once via
`UseDotNet` in `.yml` and again via `DotNet.csproj`.

I don't think we actually need to do call `UseDotNet`, I was able to
run `eng\package.ps1` without .NET 6 installed.
2021-03-26 09:25:09 +00:00
Jonathan Peppers 88f516f332
[resizetizer] rename @(SharedImage) to @(MauiImage) (#591)
* [resizetizer] rename @(SharedImage) to @(MauiImage)

This updates any public facing names for:

* `@(SharedImage)` -> `@(MauiImage)`
* `@(SharedFont)` -> `@(MauiFont)`
* `@(SharedItem)` -> `@(MauiItem)`
* `<ResizetizeSharedImages/>` MSBuild task to `<ResizetizeImages/>`
* `SharedImageInfo` -> `ResizeImageInfo`
* `SharedImageType` -> `ImageType`.

I didn't change any logic here, only did Find/Replace in VS Code or
refactor/rename in Visual Studio.
2021-03-25 21:36:36 +02:00
Shane Neuville fe3452ced9
WinUI (#548)
* WinUI3 Desktop Head

* - Fix up Compatibility Proiect

* - fix conditionals

* - temp remove windows pack restriction

* - namespace fixes

* - winui

* - add WinUI to SLN

* - change handlers to windows

* - fixes

* - additional handlers

* - essentials fixes

* - msbuild

* - add more

* - fix comment

* - transitive

* - check for windows

* - windows conditional

* - vs path

* - restore;build

* - remove target

* - build first

* -remove

* Building again!

* - add global.json file

* - set MauiPlatforms

* - remove things

* Make it at least run

* - split out restore/build

* - magic?

* -  5

* Put stuff here and try more

* - add restore

* - fix essentials

* Get it closer

* Go simple or go home

* diffs

* - net5 checks

* - winui fixes

* - files

* - preview versions

* - maybe?

* - add code back in

* Update package.ps1

Fix usage of $dotnet, moved around if and try-finally

* Whoops

* Update package.ps1

Add /restore flag, fix double //

* - fixed pri runtime paths

* - copy xbf files around

* - fix

* - fix path

* Fonts

* - windows only nugets

* - fix targets

* Fonts now working

* ws

* //TODO WINUI3

* More mappings

* - builds

* - remove props

* - props

* Button has all the things done so far

* - layout basics

* Don't reference the build tasks, then all is well

* - shims

* - fix shim measuring

* - fix resource loading

* Uncomment the things in Forms

* - tweak measure

* update

* Remove old code

* Revert "Remove old code"

This reverts commit 2b63ebab0e.

* Add image for goodness

* - measure

* - always build winui for core

* - add created handlers

* - add mappers

* Build windows and macos now

* Always pack

* - call arrange on the children again

* - fix

* - embrace it

* - fix condition

* - maybe

* This might work

* that

* - fix

* - fix

* - no more

* Use the correct path to the image

* No more SimpleApp

* This actually works...

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
2021-03-25 09:02:01 -05:00
Rui Marinho 4cfc221d5c
[UITests] Make sure to push Xamarin.UITests dll (#569)
* Make sure to push Xamarin.UITests

* [Build] Copy Controls.CustomAttributes

* [Build] Remove extra references on UITests projects

* [Build] Make sure to just publish as artifacts the Microsoft.Maui nupkg

* Try fix ios build

* Fix uitest projoject
2021-03-22 14:45:13 +00:00
Jonathan Peppers bb20b25e35
[build] bootstrap a local .\bin\dotnet\ with .NET Workloads (#514)
Based on: https://github.com/jonathanpeppers/maui-workload

This adds a new `DotNet.csproj` that provisions a local .NET 6 install
into `.\bin\dotnet\`.

Next, it uses versions defined in `eng/Versions.props` as required by
.NET version bumping infrastructure (called Darc):

    <Project>
      <PropertyGroup>
        <MicrosoftNETSdkPackageVersion>6.0.100-preview.2.21155.3</MicrosoftNETSdkPackageVersion>
        <MicrosoftAndroidSdkPackageVersion>11.0.200-ci.main.148</MicrosoftAndroidSdkPackageVersion>
        <MicrosoftMacCatalystSdkPackageVersion>14.3.100-ci.main.337</MicrosoftMacCatalystSdkPackageVersion>
        <MicrosoftiOSSdkPackageVersion>14.4.100-ci.main.1192</MicrosoftiOSSdkPackageVersion>
      </PropertyGroup>
    </Project>

Next, we can use these versions to consume NuGet packages for workloads:

    <PackageDownload Include="Microsoft.NET.Workload.Android"     Version="[$(MicrosoftAndroidSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.NET.Workload.MacCatalyst" Version="[$(MicrosoftMacCatalystSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.NET.Workload.iOS"         Version="[$(MicrosoftiOSSdkPackageVersion)]" />

Then the other packs they depend on:

    <PackageDownload Include="Microsoft.Android.Ref"            Version="[$(MicrosoftAndroidSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.Android.Sdk.win-x64"    Version="[$(MicrosoftAndroidSdkPackageVersion)]" Condition="$([MSBuild]::IsOSPlatform('windows'))" />
    <PackageDownload Include="Microsoft.Android.Sdk.osx-x64"    Version="[$(MicrosoftAndroidSdkPackageVersion)]" Condition="$([MSBuild]::IsOSPlatform('osx'))" />
    <PackageDownload Include="Microsoft.Android.Sdk.BundleTool" Version="[$(MicrosoftAndroidSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.MacCatalyst.Ref"        Version="[$(MicrosoftMacCatalystSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.MacCatalyst.Sdk"        Version="[$(MicrosoftMacCatalystSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.iOS.Ref"                Version="[$(MicrosoftiOSSdkPackageVersion)]" />
    <PackageDownload Include="Microsoft.iOS.Sdk"                Version="[$(MicrosoftiOSSdkPackageVersion)]" />

After doing this, I can build .NET 6 projects with:

    > .\bin\dotnet\dotnet.exe build .\src\Controls\samples\Controls.Sample.SingleProject\Maui.Controls.Sample.SingleProject.csproj

I can even build MacCatalyst apps on Windows!

I updated `build.cake` so the following builds for .NET 6 and opens
Visual Studio:

    > dotnet cake --target=VS-NET6

This is the equivalent of these commands if you want to run them
individually:

    dotnet build src\DotNet\DotNet.csproj
    .\bin\dotnet\dotnet build Microsoft.Maui.BuildTasks-net6.sln
    .\bin\dotnet\dotnet build Microsoft.Maui-net6.sln
    .\eng\dogfood.ps1

~~ Other Changes ~~

* Rework CI setup to use .\bin\dotnet\dotnet
* We don't need boots or URLs anymore
* Fixed `MSBuildTests` to use .\bin\dotnet\dotnet if found and fall
  back to the system `dotnet`
* Moved `.nuspec\package.ps1` to `eng\package.ps1`

~~ What problems does this solve? ~~

* MacCatalyst builds on Windows! (offline build that checks C#)
* Building Maui always gets you the right things installed.
* Maui becoming a .NET workload will be a breeze. We can copy files
  into `.\bin\dotnet\sdk-manifests` and `.\bin\dotnet\packs`.
* We can use Darc to bump dependencies within .NET:

https://github.com/dotnet/arcade/blob/main/Documentation/Darc.md
2021-03-22 10:16:06 +00:00
Rui Marinho 29225213e6
[Housekeeping] Update variables for ios certs and profiles and small cleanup (#544)
* Remove not used targets and props

* Update to MAUI certs and provisioning profile
2021-03-18 14:52:08 +00:00
Rui Marinho 88cce3970b
[Build] Fix UITests push the right dlls 2021-03-18 14:42:56 +00:00
Matthew Leibowitz 25ea670648
Clean up iOS simulators (#545) 2021-03-18 15:13:30 +02:00
Rui Marinho d74a03a0b7
Try build ControlGallery Android on CI (#525)
* Try build ControlGallery

Try build android controlgallery new path

Fix

Fix android uitests reference

Don't build iOS for now

* - only set content description for UI Test build

* Add Environment.Build.props back

* Update boots version

* Fix LinkDescription.xml

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2021-03-17 18:59:35 +00:00
Shane Neuville 7477a8678f
Add iOS Gallery (#530)
* Add iOS Gallery

* - linker fixes

* - fix ios gallery

* - Enable CI

* - fix typo

* - add gallery

* - fix xaml tests
2021-03-17 16:27:38 +00:00
Matthew Leibowitz cb4c802a35
Speed up PR builds (#510)
Reduce the jobs and use the new pools
2021-03-17 04:35:08 +02:00
Rui Marinho 57625360bd
[Build] Fix GitInfo usage to calculate version (#501)
* Update regex tag

* Update reg for tag

* Don't compare gitbranch

* Update GitInfo

* Add GitIgnoreBranchVersion

* correct value

* Test set GitIgnoreTagVersion

* Fix GitIgnoreTagVersion
2021-03-12 23:37:31 +00:00
Rui Marinho dfd34d1fb6
Add tags as trigger 2021-03-11 16:23:29 +00:00
Jonathan Peppers a2114aca2d
[UnitTests] MSBuildTests run dotnet build against .NET 6 projects (#472)
6be8a1c1 ignored some failing tests, but it seems like we should have
fixed and modernized the tests instead.

Some parts of these tests seem out of date:

* We don't need to build long-form .NET framework projects.
* We should generate/build `net6.0` projects instead of `netstandard2`.
* We should run `dotnet build` instead of MSBuild. We don't need
  `Microsoft.Build.Locator` anymore.
* `RestoreIfNeeded()` is no longer needed because `dotnet build`
  implicitly restores.
* I fixed the `DesignTimeBuild()` test that can just use the `Compile`
  target now.
* The `sdkStyle` parameter is no longer needed anymore for any of
  these tests, so we have 1/2 as many tests now.

I mostly deleted code here.

~~ Other changes ~~

Some other stuff was needed for this test to work:

* Move usage of dotnet-install.ps1|sh to yaml
* We now install .NET 6 for the `Build Windows` stage.
* Disable code coverage in child processes
* Add the `msbuild.binlog` file as a test attachment.

Co-authored-by: Rui Marinho <me@ruimarinho.net>
2021-03-11 08:10:26 +00:00
Rui Marinho 0ca2e31fb3
[Build] Sync with net6 workload (#471)
* Update net6 versions

* [Build] Don't try to get version from git tag

* [Build] Move builds to run on XamarinForms osx pool

* Update macOSXNet6VmPool
2021-03-10 19:04:15 +00:00
Matthew Leibowitz 45f9d4796e
Update Resizetizer Dependencies and Support Different Cultures (#464)
* Fix it all

* Try using old school powershell

* Store window to local variable so GC doesn't collect it (#465)

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2021-03-09 16:26:27 -07:00
Matthew Leibowitz f46e0183ef
Fix CI (#443) 2021-03-06 03:36:17 +02:00