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

77 Коммитов

Автор SHA1 Сообщение Дата
Matthew Leibowitz 2f944b376e
Adding API diffs to the build (#4354) 2022-01-28 18:01:57 +02:00
Mike Bond e5cc56ebee
[ci] Target the Mac internal-macOS-11 hosted agent pool (#4241)
* Target the internal-macOS-11 hosted agent pool

* Pool name letter casing: internal-macos-11

* Update 'macOS' letter casing in BuildPlatform.name conditions

* Fix spacing

* Repo reference to yaml-templates

* Fix: Template references: yaml-templates -> xamarin-templates

* Agent.OSArchitecture is not defined as a capability on agents in the internal-macos-11 pool

* Select .NET 6

* UseDotNet task title: Use .NET SDK 6

* Provision needed dependencies on hosted Mac pool

Provisioning: Support for 'provisioning' parameter, which is set when macOS is true

* Use alternate expansion for parameters.provisioning setting

* provision: Always provision additional software on macOS

* Dedicated provisioning step & script for mono

* Dedicated task & script for provisioning Xamarin.Mac

* Provision additional software when running against an on-prem agent pool and not a hosted pool

* Fix: Provision Additional Software: Conditional syntax missing closing paren

* Provision Additional Software condition: Remove superfluous space

* Apply desired set of on-prem pool demands to ensure build is vectored to an x64 Big Sur machine having no devices or pairing

* Only apply shared pool demands when running on an agent in the shared pool

* agent-cleanser: Only cleanse off mono & Xamarin.Mac when run on a hosted agent. Then provision the versions that the pipeline needs

* Fix: agent-cleanser parameters: Terminating colon missing on 'if' conditionals

* Fix: Avoid including agent demands when running on a hosted pool

* Reset agent Mac pool settings to use macOSXNet6VmPool and macOSXNet6VmImage variables

* Simplify demands to apply only to the shared pool

* Remove special handling for cleansing & reinstall of mono and Xamarin.Mac. Depend on the versions provided by the agent

* TEST: Target hosted pool to ensure pipeline works there

* Revert test changes: Target Mac agent pools defined on build def
2022-01-26 10:50:07 +00:00
Rui Marinho 0e50a6c60c
Add demands for macOS (#3508)
* Add demands for macos

* Like this

* fix again

* Add demands to all macos jobs
2021-11-22 17:11:27 +00:00
Matthew Leibowitz 3a06398b4a
Add more metadata to the artifacts (#2670) 2021-09-23 21:04:13 +02:00
Matthew Leibowitz 6bab06ce6c
Generate rollback files (#2635) 2021-09-22 23:17:22 +02:00
Peter Collins 23c91d9dbb
[vs-insertion] Push packs to "shipping" feed (#2440)
Context: https://github.com/xamarin/yaml-templates/pull/134

The .NET 6 packs will now also be pushed to a public xamarin
`net6-maui-shipping` feed during the `VS Insertion` stage, to
help with testing efforts that can't use the `dotnet6` feed.
2021-09-10 15:51:44 -04:00
Peter Collins 32033d9cfb
[ci] Pass SkiaSharp extras to symbol archiving (#2426)
* [ci] Pass SkiaSharp extras to symbol archiving

Context: https://devdiv.visualstudio.com/DevDiv/_queries/edit/1394568

The missing symbols for Windows C++ SkiaSharp files are now being
uploaded as a MAUI build artifact thanks to commit b80186d4.  We should
be able to fix the remaining SymbolCheck issues by archiving them.

* Revert testing changes
2021-09-10 08:26:50 +02:00
Matthew Leibowitz b80186d44b
Download additional SkiaSharp symbols (#2415) 2021-09-08 17:22:51 +02:00
Peter Collins 8bb2e9d516
[ci] Opt in to symbol archiving during VS insertion (#2248) 2021-08-26 07:19:47 +02:00
Matthew Leibowitz 4392fd6670
Build the templates (#2264) 2021-08-26 00:51:03 +02:00
E.Z. Hart 5f9f594d49
AbsoluteLayout (#2136)
* First pass at AbsoluteLayout under new layouts; some fixes to how layouts
handle updates to the underlying collection;

* Cleanup, padding tests; Make gallery page use new AbsoluteLayout;

* Clean up comments

* only on devdiv

* Make AutoSize a const

* Make AutoSize public (lots of things reference it)

* Add using to make CoreGallery happy

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-08-25 11:16:03 +01:00
Rui Marinho 2a9976abf6
Update handlers.yml 2021-08-24 23:00:30 +01:00
Matthew Leibowitz e84735d199
Split the pipelines (#2143) 2021-08-18 20:06:14 +02:00
Shane Neuville 763553a952
Add timeouts and continueOnError for macOS builds (#2126) 2021-08-17 05:14:10 +02:00
Matthew Leibowitz cadf5472f5
Add .NET 6 Device Test Runner & Migrate Tests to .NET 6 (#1359)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2021-08-06 18:45:26 +02:00
Peter Collins 9a0f360b5d
[CI] Only wait 30 minutes for VS insertion task (#1826)
Commit 41a42d1 added a new stage for releases that will wait for up to
two days for approval before timing out.  In most cases, this will cause
the `maui-release` and `maui-nightly` release definitions to wait the
full two days before they trigger automatically.  This is only avoided
if someone approves or rejects the `VS Insertion` stage in the pipeline
before the default timeout occurs.

We can reduce the timeout to 30 minutes to speed up the majority of post
build efforts, as the `VS Insertion` stage can still be re-ran after it
is rejected.
2021-07-27 15:37:35 -04:00
Peter Collins 41a42d1f2a
[CI] Add NuGet MSI conversion and VS insert stage (#1618) 2021-07-27 16:21:49 +02:00
Matthew Leibowitz 9d48585954
new xharness (#1768) 2021-07-22 16:17:48 +02:00
Matthew Leibowitz 8516b15364
Disable device tests on DevDiv until we get a new xharness (#1758)
* ios-simulator-64_15.0

* :)

* 15.0

* bumper

* :)
2021-07-21 20:42:00 -04:00
Matthew Leibowitz beb111986a
Update handlers.yml 2021-07-21 16:44:35 +02:00
Matthew Leibowitz 5222efeb46
Pass the path around (#1757) 2021-07-21 07:32:34 -04:00
dotnet-maestro[bot] 51d8407d55
[main] Update dependencies from xamarin/xamarin-android (#1577)
* Update dependencies from https://github.com/xamarin/xamarin-android build main-e5103b0f97d542ce14f2ceb9f2d3a247aa6d5964-1

Microsoft.Android.Sdk.Windows
 From Version 30.0.100-preview.6.62 -> To Version 30.0.100-ci.main.73

Dependency coherency updates

Microsoft.NETCore.App.Ref,Microsoft.Dotnet.Sdk.Internal,Microsoft.Extensions.Primitives,Microsoft.AspNetCore.App.Runtime.win-x64,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Embedded,Microsoft.AspNetCore.Authorization,Microsoft.AspNetCore.Components.WebView,Microsoft.AspNetCore.Components.Web,Microsoft.JSInterop,Microsoft.WindowsDesktop.App.Runtime.win-x64,System.CodeDom
 From Version 6.0.0-preview.6.21352.12 -> To Version 6.0.0-preview.7.21326.8 (parent: Microsoft.Dotnet.Sdk.Internal

* Update dependencies from https://github.com/xamarin/xamarin-macios build 20210707.26

Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk
 From Version 12.0.100-preview.6.63 -> To Version 12.0.100-ci.main.142

* Full Android workload has been renamed to android-aot

If you don't need AOT, the `android` workload excludes it.

Note that AOT isn't working yet, but we have the Mono packs setup.

* Use shortened Apple platform workload names

The names are now `maccatalyst`, `macos`, `ios`, and `tvos`.

* One more place the android workload name is used

* Update dependencies from https://github.com/xamarin/xamarin-macios build 20210707.26

Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk
 From Version 12.0.100-preview.6.63 -> To Version 12.0.100-ci.main.142

Conflicts:
    eng/Versions.props

* Use shortened Apple platform workload names

The names are now `maccatalyst`, `macos`, `ios`, and `tvos`.

* Update dependencies from https://github.com/xamarin/xamarin-android build main-7c5fab13329ee898fb1562f83576a7ca881f2881-1

Microsoft.Android.Sdk.Windows
 From Version 30.0.100-preview.6.62 -> To Version 30.0.100-ci.main.75

Dependency coherency updates

Microsoft.NETCore.App.Ref,Microsoft.Dotnet.Sdk.Internal,Microsoft.Extensions.Primitives,Microsoft.AspNetCore.App.Runtime.win-x64,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Embedded,Microsoft.AspNetCore.Authorization,Microsoft.AspNetCore.Components.WebView,Microsoft.AspNetCore.Components.Web,Microsoft.JSInterop,Microsoft.WindowsDesktop.App.Runtime.win-x64,System.CodeDom
 From Version 6.0.0-preview.6.21352.12 -> To Version 6.0.0-preview.7.21326.8 (parent: Microsoft.Dotnet.Sdk.Internal

* Update dependencies from https://github.com/xamarin/xamarin-macios build 20210709.17

Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk
 From Version 12.0.100-preview.6.63 -> To Version 12.0.100-ci.main.150

* Update dependencies from https://github.com/xamarin/xamarin-macios build 20210713.6

Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk
 From Version 12.0.100-preview.6.63 -> To Version 12.0.100-ci.main.159

* Revert "[build] remove workaround for iOS AOT packages on Windows"

This reverts commit 5231ec3509.

* Add NoWarn=CS8032 for Razor

* Update dependencies from https://github.com/xamarin/xamarin-android build main-e06d71320c8f5cebb31c42b15d8172b087a98761-1

Microsoft.Android.Sdk.Windows
 From Version 30.0.100-preview.6.62 -> To Version 30.0.100-ci.main.77

Dependency coherency updates

Microsoft.NETCore.App.Ref,Microsoft.Dotnet.Sdk.Internal,Microsoft.Extensions.Primitives,Microsoft.AspNetCore.App.Runtime.win-x64,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Embedded,Microsoft.AspNetCore.Authorization,Microsoft.AspNetCore.Components.WebView,Microsoft.AspNetCore.Components.Web,Microsoft.JSInterop,Microsoft.WindowsDesktop.App.Runtime.win-x64,System.CodeDom
 From Version 6.0.0-preview.6.21352.12 -> To Version 6.0.0-preview.7.21326.8 (parent: Microsoft.Dotnet.Sdk.Internal

* Revert "Add NoWarn=CS8032 for Razor"

This reverts commit d7212d435c.

* Update dependencies from https://github.com/xamarin/xamarin-android build main-1d53c0095871293c38d16196982e83485a091a3f-1

Microsoft.Android.Sdk.Windows
 From Version 30.0.100-preview.6.62 -> To Version 30.0.100-ci.main.81

Dependency coherency updates

Microsoft.NETCore.App.Ref,Microsoft.Dotnet.Sdk.Internal,Microsoft.Extensions.Primitives,Microsoft.AspNetCore.App.Runtime.win-x64,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Embedded,Microsoft.AspNetCore.Authorization,Microsoft.AspNetCore.Components.WebView,Microsoft.AspNetCore.Components.Web,Microsoft.JSInterop,Microsoft.WindowsDesktop.App.Runtime.win-x64,System.CodeDom
 From Version 6.0.0-preview.6.21352.12 -> To Version 6.0.0-preview.7.21326.8 (parent: Microsoft.Dotnet.Sdk.Internal

* Do it like a madman

* Update dependencies from https://github.com/xamarin/xamarin-android build main-7dacdd751dd0bd7b02ac443c32824f353a6da380-1

Microsoft.Android.Sdk.Windows
 From Version 30.0.100-preview.6.62 -> To Version 30.0.100-ci.main.83

Dependency coherency updates

Microsoft.NETCore.App.Ref,Microsoft.Dotnet.Sdk.Internal,Microsoft.Extensions.Primitives,Microsoft.AspNetCore.App.Runtime.win-x64,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Embedded,Microsoft.AspNetCore.Authorization,Microsoft.AspNetCore.Components.WebView,Microsoft.AspNetCore.Components.Web,Microsoft.JSInterop,Microsoft.WindowsDesktop.App.Runtime.win-x64,System.CodeDom
 From Version 6.0.0-preview.6.21352.12 -> To Version 6.0.0-preview.7.21326.8 (parent: Microsoft.Dotnet.Sdk.Internal

* Update dependencies from https://github.com/xamarin/xamarin-android build main-24f272bd357d67a5e326d4cce55899a5b98905ae-1

Microsoft.Android.Sdk.Windows
 From Version 30.0.100-preview.6.62 -> To Version 30.0.100-ci.main.84

Dependency coherency updates

Microsoft.NETCore.App.Ref,Microsoft.Dotnet.Sdk.Internal,Microsoft.Extensions.Primitives,Microsoft.AspNetCore.App.Runtime.win-x64,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Embedded,Microsoft.AspNetCore.Authorization,Microsoft.AspNetCore.Components.WebView,Microsoft.AspNetCore.Components.Web,Microsoft.JSInterop,Microsoft.WindowsDesktop.App.Runtime.win-x64,System.CodeDom
 From Version 6.0.0-preview.6.21352.12 -> To Version 6.0.0-preview.7.21326.8 (parent: Microsoft.Dotnet.Sdk.Internal


Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-07-19 20:48:03 +02:00
Rui Marinho d1b9d13fb9
Remove signVmImage from condition for sign 2021-06-18 16:38:21 +01:00
Rui Marinho 3076c06de0
Update variables 2021-06-17 12:20:48 +01:00
Jonathan Peppers 3f78ce00ab
.NET MAUI is now a "workload" (#603)
TDLR: Microsoft.Maui.* NuGet packages are removed in favor of .NET
Workloads.

See `src/Workloads/README.md` for full details.

The idea, is a project to be able to set `$(UseMaui)`:

    <Project Sdk="Microsoft.NET.Sdk">
      <PropertyGroup>
        <TargetFramework>net6.0-android</TargetFramework>
        <OutputType>Exe</OutputType>
        <UseMaui>true</UseMaui>
      </PropertyGroup>
    </Project>

`$(UseMaui)` automatically brings in the following workload packs:

* `Microsoft.NET.Sdk.Maui`
* `Microsoft.Maui.Controls.Sdk`
* `Microsoft.Maui.Resizetizer.Sdk`
* `Microsoft.Maui.Core.Ref.[platform]`
* `Microsoft.Maui.Core.Runtime.[platform]`
* `Microsoft.Maui.Controls.Ref.[platform]`
* `Microsoft.Maui.Controls.Runtime.[platform]`
* `Microsoft.Maui.Dependencies`
* `Microsoft.Maui.Essentials.Ref.[platform]`
* `Microsoft.Maui.Essentials.Runtime.[platform]`
* `Microsoft.Maui.Extensions`
* `Microsoft.Maui.Templates`

BlazorWebView is an addition to MAUI, project can currently opt into
it by adding `.Razor` to the `Sdk` attribute.

`<Project Sdk="Microsoft.NET.Sdk.Razor">` sets
`$(UsingMicrosoftNETSdkRazor)`, which triggers the MAUI workload to
include:

* `Microsoft.AspNetCore.Components.WebView.Maui`

This will automatically add these dependencies:

    <PackageReference Include="Microsoft.AspNetCore.Authorization" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebView" />
    <PackageReference Include="Microsoft.AspNetCore.Components.WebView.Maui" />
    <PackageReference Include="Microsoft.JSInterop" />

If you are a .NET 6 project, but don't want to use
Microsoft.Maui.Controls you could bring in partial parts of MAUI.

`$(UseMauiAssets)` brings in `Microsoft.Maui.Resizetizer.Sdk`.

`$(UseMauiCore)` brings in:

* `Microsoft.Maui.Core.Ref.[platform]`
* `Microsoft.Maui.Core.Runtime.[platform]`

`$(UseMauiEssentials)` brings in:

* `Microsoft.Maui.Essentials.Ref.[platform]`
* `Microsoft.Maui.Essentials.Runtime.[platform]`

Special files:

* `AutoImport.props` - defines the default includes (or wildcards) for
  Maui projects will go. Note that this is imported by *all* .NET 6
  project types -- *even non-mobile ones*.
* `WorkloadManifest.json` - general .NET workload configuration
* `WorkloadManifest.targets` - imports `Microsoft.Maui.Controls.Sdk` when
  `$(UseMaui)` is `true`. Note that this is imported by *all* .NET 6
  project types -- *even non-mobile ones*.

For further details about .NET Workloads, see these .NET design docs:

* [.NET Optional SDK Workloads](https://github.com/dotnet/designs/blob/main/accepted/2020/workloads/workloads.md)
* [Workload Resolvers](https://github.com/dotnet/designs/blob/main/accepted/2020/workloads/workload-resolvers.md)
* [Workload Manifests](b82449a228/accepted/2020/workloads/workload-manifest.md)
2021-06-16 17:59:53 +01:00
Matthew Leibowitz 255e150482 Disable net6 test for now on CI 2021-06-14 22:13:38 +02:00
Matthew Leibowitz 62915d4f8f Try avoid new things on devdiv 2021-06-14 21:29:46 +02:00
Matthew Leibowitz 3002fad5d0
Skip net6 ios tests on devdiv (#1311) 2021-06-14 21:06:19 +02:00
Matthew Leibowitz 74da28adbc
Skip net6 ios tests on devdiv (#1310) 2021-06-14 21:03:31 +02:00
Matthew Leibowitz 3bb07efed0
Add DeviceTests to the net6 sln (#1099)
* Add DeviceTests to the net6 sln

* new

* run net6 tests

* things

* :)

* fix ordering

* :')

* DOTNET_PATH

* not 6 all over

* :'|

* and iOS

* make it actually work

* things

* DOTNET_PLATFORM

* fix ios

* :''')

* 1.0.0-prerelease.21165.2

* asdf

* dsf

* not needed anymore

* cleanup

* Try this

* PublishTrimmed

* that

* Install missing simulators

* Allow trimming

* Update tooling

* install net6

* That

* asdf

* asdf

* asdf

* excplicit version

* install dotnet

* more dotnet 6

* no pwsh

* use the global install

* paths

* try this

* that

* $(DotNet.Path)

* variables:

            REQUIRED_XCODE: 12.5

* only dt

* skip that

* rename

* Install xharness only when needed

* asdf

* asdf

* asdfasdf

* - fix if/defs

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2021-06-14 13:17:39 -05:00
Eilon Lipton f7566cd6bb
Add WPF and WinForms BlazorWebView controls (#1199)
* Add WPF and WinForms BlazorWebView controls

- Also changed folder name of .NET MAUI BlazorWebView from "core" to "Maui"
- WPF/WinForms samples added

* Update Microsoft.Maui-net6.sln

* Remove Windows-specific projects from MAUI net6 SLN

* Remove duplicate samples

* Add BlazorWebView SLN and add it to package script

* Change WebView2 package to be non-Windows

(Because it isn't Windows)

* Add "net6" to BlazorWebView solution

* Change Blazor SLN to be WindowsDesktop only

* Update signing info

* Update package metadata
2021-06-09 09:55:58 +01:00
Shane Neuville 2e71365a75
Fix building of csproj samples directly (#1168)
* Fix building of csproj samples directly

* - continue to build sln

* - catalyst
2021-06-03 22:37:06 -05:00
Rui Marinho 7cb1f3db85
Small fixes to provisioning (#1169)
* Fix wrong script

* Essentials build requires xcode even for Android tests

* Update android.cake

* Update android.cake

* Revert "Update android.cake"

This reverts commit eaf72bb229.

* Revert "Update android.cake"

This reverts commit de8f42a664.
2021-06-03 18:34:18 +01:00
Rui Marinho d08b562b26
Restore tools on winui target (#1133) 2021-05-31 14:45:22 +01:00
Shane Neuville 57b216b16d
Validate WinUI cake scripts inside CI (#1107)
* Validate winui cake scripts inside CI

* Update handlers.yml

* - provision

* - build winui
2021-05-27 17:25:51 -05:00
Shane Neuville 0507e057f0
Remove winui CI validation for now (#1106) 2021-05-27 12:38:13 -05:00
Shane Neuville e8d8a8a51f
Fix WinUI and Control Gallery builds (#1095)
* WinUI Source Gen fixes

* - path fixes

* - fix paths

* - fix tabs

* -fix root props file

* - fix dependson

* - fix

* - fix

* - try

* - try

* - fix

* - fix

* - maybe?

* - fix

* - remove commented code
2021-05-27 14:20:36 +02:00
dotnet-maestro[bot] 823a0479ec
[main] Update dependencies from xamarin/xamarin-android (#1035)
* Update dependencies from https://github.com/xamarin/xamarin-android build main-92efdccb686454be32d742b8ca9f6a166a7c1808-1

Microsoft.Android.Sdk.Windows
 From Version 11.0.200-ci.main.260 -> To Version 30.0.100-ci.main.2

Dependency coherency updates

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

* Fix $PATH delimiter for macOS

Context: https://powershell.org/2019/02/tips-for-writing-cross-platform-powershell-code/

We can't use `;` to delimit paths on unix-like OSes. They expect `:`,
so use the built-in `[IO.Path]::PathSeparator` variable instead.

* Set $PATH in more places

Places this would be needed:

* .yaml file
* dotnet.cake
* eng/package.ps1

We should work on consolidating this in a future PR.

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
2021-05-18 14:39:40 +01:00
Rui Marinho 8bda177482
Merge branch 'release/6.0.1xx-preview4'
# Conflicts:
#	eng/Version.Details.xml
#	eng/Versions.props
#	eng/package.ps1
#	eng/pipelines/common/variables.yml
#	src/Compatibility/ControlGallery/src/WinUI/_13109IssueHelper.cs
#	src/Compatibility/Core/src/iOS/CADisplayLinkTicker.cs
#	src/Compatibility/Core/src/iOS/Cells/CellRenderer.cs
#	src/Compatibility/Core/src/iOS/Cells/ViewCellRenderer.cs
#	src/Compatibility/Core/src/iOS/Extensions/Extensions.cs
#	src/Compatibility/Core/src/iOS/Extensions/FlowDirectionExtensions.cs
#	src/Compatibility/Core/src/iOS/HandlerToRendererShim.cs
#	src/Compatibility/Core/src/iOS/IOSDeviceInfo.cs
#	src/Compatibility/Core/src/iOS/NativeBindingService.cs
#	src/Compatibility/Core/src/iOS/Renderers/CarouselPageRenderer.cs
#	src/Compatibility/Core/src/iOS/Renderers/ImageRenderer.cs
#	src/Compatibility/Core/src/iOS/Renderers/NavigationRenderer.cs
#	src/Controls/src/Xaml/Controls.Xaml-net6.csproj
#	src/Core/src/Handlers/Picker/PickerHandler.Standard.cs
#	src/Core/src/Platform/iOS/ColorExtensions.cs
#	src/Core/src/Platform/iOS/LayoutView.cs
2021-05-11 09:25:25 +01:00
Rui Marinho e605ae1178
Fix sign type 2021-05-07 23:58:58 +01:00
Rui Marinho de122839db
[Build] Provision vs2019 (#972)
* Provision vs2019

Fix yaml

* Fix provision vs on net6 sample build
2021-05-06 19:30:49 +01:00
Rui Marinho 1e6dcdd28a
[Oneloc]Fix loc build on CI 2021-05-05 18:56:05 +01:00
Rui Marinho da58c1d67e
Onboard with OneLocBuild Task and Add Security checks (#631)
* Initial commit to move to one loc

* Fix templates reference

* Don't depend on validate

* try fake it

* Use loc branch variable

* One loc

* try fix path

* Fix StringResources filename

* Fix git add

* Don't use variable

* remove xliff

* test main

* Set main again

* Simplify policheck compliance

* Add loc to triggers

* Bump .NET version

* Update merge-translations-update.yml

* Update security_compliance.yml
2021-05-05 18:04:05 +01:00
Shane Neuville 4f9fada370
Move ps1 files into cake targets (#926)
* Move build scripts from powershell to cake

* - fix yaml

* change BUILD_CONFIGURATION to configuration

* - IsDependentOn not needed for powershell scripts

* - fix up build settings

* - fix android target

* Update dotnet.cake

* - simplify android

* - add dogfood target

* - fix winui build and add winui stage

* - remove depends on

* - maybe?

* - remove gallery for now
2021-05-04 22:05:54 +01:00
Rui Marinho 5254a8de4b
Sign release branches by default (#921) 2021-05-03 14:20:53 +01: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
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 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