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

24 Коммитов

Автор SHA1 Сообщение Дата
Rui Marinho 86a6601e7d
Enable unit tests (#13864)
* [Build] Remove old steps

* Fix reference of unit tests cspro

* Enable xaml unit tests

* [Build] Add build of xaml unit tests

* Try fix targets

* Fix Forms naming

* More naming fixes

* Revert versions

* Remove .Core

* More .Core removals and Fix Platform references

* Add RootNamespace to Build.Tasks

* Fix more Xamarin.Forms old usage

* Fix dll on build.targets

* Fix _XFBuildTasksLocation

* More fixes to _MauiBuildTasksLocation

* More fixes _MauiBuildTasksLocation

* Fix _MauiBuildTasksLocation

* remove debug info

* Remove issues for now

* Rename maps namespace

* Fix Assembly tests

* Fix more targets

* More map rename fixes

* Fix xaml reference on unit tests

* Fix MauiXamlCValidateOnly naming

* More MauiXamlCValidateOnly

* Add xaml page to sample

* Fix namespace on sample page

* oh, yeah

* Fix sample references

* Try run on release the xaml unit tests

* Try continueOnerror

* Update build-windows.yml

* added via the directory props

* ws

* We mights need this

* I think I did this

* This can be reused

* 🤦‍♀️

* this as well after the peppers PR

* Fix some bad renames

* i see

* Fix merge

* Fix sample

* Remove FromSource

* Add the packages

* this

* Yaysies!

* Fix all the non-msbuild tests

* Adding things back and gallery

* this

* Build the tasks first

* Got the Android control gallery running

* remove from the sln

* Xaml pages

* Reference XAML

* this

* better XAML

* this

* restore

* maybe

* include correctly

* symbols

* Try set the versions

* remove unused steps templates

versions things more cool yay

* Updating code to pre-fix xaml

* Now we do the targets

* Revert "Now we do the targets"

This reverts commit 2ce4984d48a00c1eab8037cdd8a35690feb0038e.

* maybe this?

* We have to set the variables

* Add the control gallery and xaml unit tests

* This might help

* xaml page

* Try use matrix for build/release macOS

* Fix variables

* Fix end of script

* use matrix for build on windows

* Fix Artifact upload at same time

Co-authored-by: Stephane Delcroix <stephane@delcroix.org>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-03-03 15:20:03 +00:00
Jonathan Dick 6aaa984d78
Make .NET 6 Packable (#13881)
* Add some common nupkg properties to everything

* Remove project property refactored into directory build props

* Remove properties now in common dir build props

* Add net6 version of project

* More net6

* Only target netstandard2.0 now

net4* is no longer needed as there's no more vs2017 support

* Clean up strong naming a bit

* Update dependencies

* Package all the things for build tasks in the -t:Pack

* Add more net6 project versions

* Clean up whitespace

* Needed moar NET6

* Name fixes

* Added meta project for packaging and package script

* Remove assembly copyright (now duplicates)

* Add resizetizer, add params to package script

* Disable strong naming for now

We need to re-evaluate how we do this a bit, we should probably use the `al` tool to do it now, and I believe the StrongNamer package may not work anymore, but we can do the same thing in a custom target at a later date.

* Fix path to tasks assembly

* don't build ios on android specific project

* Finish rename of toolbox file

* - add cake

* - fix cake extras

* fix the copy for the IDE

* Try packing on CI

* versions baby!

* build release

* this should od it

* this

* oops

* Move to an empty folder

* Use new symbol formats

* no symbols for build tasks and the head

* symbol all the things

* Compiler error with commented out code XD

* oopsies

* only build transitive

* Try this

* log everything

* This might work

* REPORTS

* previews

* needed

* versions

* duh

* Update build.cake

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-03-02 12:36:17 -05:00
Jonathan Dick ac201994f2
Rename all of the things... All of them. (#13847)
* Rename all the things!

* Fix sln on cake

* targets

* Rename all the things!

* Fix sln on cake

* Add this back so the build works

* Added .nuspec\* back

* Remove Core from XamlC

* Update Build.Tasks

* Fix ErrorMessages

* Try fix build

* Update gitignore

* Update Microsoft.Maui-net6.sln

* Fix controlgallery reference

* Fix Maui reference on iOS sample

* Fix ControLGallery sln

* Fix xaml unit tests

* Fix Maps references

* Fix ControlGallery

* Don't build gallery

* Compile 462 for new

* Dont build UAP

* AndroidUseIntermediateDesignerFile

* Fix UAP

* Don't build control gallery for now

Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-02-24 23:50:31 +00:00
Matthew Leibowitz 3fd43bdca1
Disable the versioning locally (#13823)
Reduce the tasks needed to run when developing
 - skip the gitinfo install
 - skip the version generation
 - skip the sourcelink
2021-02-22 23:40:04 +00:00
Shane Neuville 7da91d7ef8
Project restructure (#12238) 2020-09-30 11:31:20 -05:00
Shane Neuville 3aa86b4c98
Handlers (#12102)
* handlers

* - samples

* - sample

* - simplifed sample

* - invert

* - ns 2.1

* - forms types

* - move types

* - add reference

* - handlers

* - sln fixes

* - github comments

* - comments

* - handlers comments

* - fix DIM

* - switch to forms

* Added iOS sample, added more handlers code, moved and refactor code.

* Added macOS sample

* Added iOS and macOS Xamarin.Forms Platform projects

* - remove extra interfaces and handlers for now

* - maptext

* - uibutton

* - remove mac for now

* - checkpoint

* - fix build errors

* - fix slns

* - move folders around

* - fix nuget versions on sample project

* - move action mapper to its own class

* - fix merge conflicts

* - remove media element

* NS 2.1

* - last set of renderer renames

* - sync up android versions

* - increment to 462

* - increment to 462

* - fix dual screen builds

* - remove excess projects

* - remove ioos/android for now

* - yaml

* Added macOS Target

* - remove vsmac for now

Co-authored-by: Javier Suárez Ruiz <javiersuarezruiz@hotmail.com>
2020-09-17 23:53:25 -05:00
Rui Marinho ec2f390df9 Merge branch '4.6.0' into 4.7.0 2020-06-28 14:34:22 +01:00
Rui Marinho 592eb53713
Update Directory.Build.props (#11227) 2020-06-28 13:28:07 +01:00
Shane Neuville 0be0eeef06
Android Beta Builds (#10937)
* Setup for testing master branches of android

* Update build.cake

* - add dsym

* - add dsym

* - add dsym

* - add dsym
2020-06-17 11:39:17 +01:00
Shane Neuville c8bf97e5ac Merge branch '4.6.0'
# Conflicts:
#	Directory.Build.targets
#	DualScreen/DualScreen/TwoPanePropertiesGallery.xaml.cs
#	Xamarin.Forms.ControlGallery.Android/Xamarin.Forms.ControlGallery.Android.csproj
#	Xamarin.Forms.ControlGallery.iOS/Xamarin.Forms.ControlGallery.iOS.csproj
#	Xamarin.Forms.sln
2020-05-06 12:08:29 -06:00
Shane Neuville 7938a26460
Remove DualScreen projects from Xamarin.Forms.Sln (#10550)
* Move Dual Screen Project out of Gallery

* - fix sln

* - remove excess

* - restore

* - fix up the props a bit more

* - fix build settings
2020-05-06 12:29:41 +01:00
Shane Neuville 1532d46f5f
Add switches to build Control Gallery using the nuget produced by the build (#8937)
* Build Control Gallery with nugets

* - sync pipelines

* - add team project check

* - fix output dir to match for ui tests

* - preserve dual screen
2020-03-11 11:31:24 +00:00
Shane Neuville 5f4f4dd06c
The great Androidx IF Def'ing of 2019 (#8898)
* AndroidX API updates

* - merge fixes

* - 2017 fixes

* - extra lines added to cs proj files

* - menu element fix

* - androidx bump

* - cleanup

* - remove extra using

* - missed one

* - fix material version

* - one more TapOverflowMenuButton
2020-01-10 13:35:41 -07:00
Shane Neuville b62dbb41f3
Setup android to be properly multi targeted (#7660)
* first steps

* - convert a few more

* - fix forwarders

* - update sdk extras

* - fix nuspecs

* - fix rebase

* - fix sdk extras for vs2017

* - remove forms fixes for 2019

* - Property based TFs

* - update cake

* - remove monoandroid81

* - library updates

* - fix applink nugets

* - 2019 test

* - try 2017
2019-12-13 12:22:24 -07:00
Jonathan Peppers 52f3980de6 [build] cleanup MSBuild settings for faster builds (#7381)
Context: https://devblogs.microsoft.com/xamarin/optimize-xamarin-android-builds/

The goal here is to improve the developer loop on Android when working
on Xamarin.Forms using a few settings for `Debug` builds:

* Enable Fast Deployment
* `AndroidLinkMode=None`
* `DebugType=portable`
* `ProduceReferenceAssembly=True` in netstandard projects

After these changes changes:

    Before:
    Time Elapsed 00:00:37.15
    After:
    Time Elapsed 00:00:15.79

This was just running:

    msbuild Xamarin.Forms.ControlGallery.Android\Xamarin.Forms.ControlGallery.Android.csproj

I was using VS 2019 16.2 on Windows, changing a XAML file.

So one thing to note is that `AndroidLinkMode=Full` was used the
UITests running on CI are using `Debug` builds. I used a `Condition`
to check the `$(CI)` variable, so UITests will be unaffected.

Other cleanup:

* Explicitly set both `AndroidUseSharedRuntime` and
  `EmbedAssembliesIntoApk`
* `AndroidSupportedAbis` only needs to be specified for `Release`
  builds. `Debug` builds will detect the attached device/emulator and
  use the appropriate ABI.
* `JavaMaximumHeapSize` can be removed, it defaults to `1G`.
* Removed other weird/old/empty MSBuild properties.

Rely on `Directory.Build.props`:

* `DebugType` is already defined, so we can remove these.
* `ProduceReferenceAssembly` can be set if
  `UsingMicrosoftNETSdk=True`, I could not check `TargetFramework` at
  this stage, evaluation, since it was blank. This sets the value for
  all netstandard/SDK-style projects.

~~ [ControlGallery] assembly-level [Preserve] ~~

Context: d7a9c85774/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Bugzilla25234.cs (L13)

There was also some concern where needing `[Preserve]` attributes
would only be found when the CI is running. You don't want to wait 3+
hours to know if you made a small mistake.

This adds `[assembly:Preserve]` to the ControlGallery project, so this
should be less likely to occur in the future.
2019-09-06 15:07:34 +01:00
Stephane Delcroix 6f663f1c8b use c#7.3 (#7131)
* use c#7.2

* try 7.3 on CI

* [Build] Specify mono version on android build
2019-08-12 14:27:30 +01:00
Gerald Versluis 825300d473
Cleaned up build.props and fixed applinks csproj debugtype (#7039) 2019-08-01 14:53:53 +02:00
Gerald Versluis b334548055 Enable SourceLink for Xamarin.Forms (#6886) fixes #2165
* Added sourcelink config to Directory.Build.props

* Only enable SourceLink for release builds

* Added debugtypes to mac projects

* pdb in nupkg files

* Revert "Added debugtypes to mac projects"

This reverts commit 7235bebdc42abdd9b747cd983357c7d832f91b39.

* Update Directory.Build.props

* Update Directory.Build.props

* Revert "Update Directory.Build.props"

This reverts commit 1c5b66c6e93fe55b66a028237a8b7f3b3629a804.

* Added DebugType portable to csprojs

* Removed all redundant csproj debugtype tags
2019-08-01 11:07:38 +01:00
Rui Marinho 38711f35d0
Merge branch '3.6.0' into 4.0.0 2019-05-22 16:23:05 +01:00
Rui Marinho 9bc0fc6b0a
[Build] Update builds, remove submodule, update AssemblyInfo with GitInfo (#6068)
* [Build] Remove submodule

* [Build] Use GitInfo to set Assembly metadata

* [Build] Remove extra prop

* [Build] Update version

* [Build] Update versions to be consistent with existing Build.Tasks

* [Build] Update build number

* [Build] make sure build tasks gets info

* [Build] Add assembly info unit test

* [Test] Refactor test for gitinfo on vsts
2019-05-22 01:06:59 +01:00
E.Z. Hart f1297f93d5 Re-enable "Treat warnings as errors" (#5602)
* Enable "treat warnings as errors"

* Remove unnecessary for loop

* Remove properties which already exist in base class

* Make property hiding explicit and obsolete hiding property

* Move Treat Warnings as Errors setting to props file

* Fix weird quotation changes in Xamarin.Forms.Build.Tasks.csproj

* Scrub empty WarningsAsErrors tags

* Remove unused variable

* Fix TearDown method hiding in UI tests

* Fix Id member hiding in test for Bugzilla32871

* Fix RootPage member hiding in Bugzilla51503

* Fix RooPage member hiding in Issue1483

* Disable warnings for deprecated OpenGL calls

* Fix member hiding in test view models

* Fix RootPage member hiding in Issue1931

* Fix Id member hiding in Bugzilla42620

* Fix AutomationId member hiding in Bugzilla57114

* Fix Layout member hiding in Bugzilla40911

* Remove unused variables from Bugzilla31114

* Remove unused variable

* Fix various unused variable warnings

* Disable warning to leave example code for reference

* Fix unused variable from macOS test

* Remove unused members

* Fix unused variable warnings

* Fixed unused property warnings

* Fix warnings for unused code

* Disable 'await' warning

* Remove unused variable

* Adding pragma directives for await warnings

* Remove member hiding

* Turn off global "Treat warnings as errors" in other platforms

* Use MarkerId instead of obsolete Id member

* Fix await warnings in WPF GeocoderBackend

* Add missing await

* Disable warning for unused event
2019-03-27 18:38:38 +00:00
E.Z. Hart 6f6511ad1d
Root the XFBuildTasksLocation path 2018-12-10 13:35:09 -07:00
Stephane Delcroix 0db52a444e fix merge mistake 2018-12-09 09:32:34 +01:00
Stephane Delcroix 786534cb08 [build] add a Directory.Build.props (#4672)
Copying <PropertyGroup>s on (almost) every .csproj, and get the
relative paths just right is tedious. Starting msbuild 15 (vs2017)
we can use a Directory.Build.props (and Directory.Build.targets)
so I see no reason why we shouldn't.

see https://docs.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2017
2018-12-09 00:31:53 +00:00