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

18 Коммитов

Автор SHA1 Сообщение Дата
Gerald Versluis 7114bf3f48
Replace XmlnsSupportsValidationAttribute (#15855)
* Replace XmlnsSupportsValidationAttribute

* Add references

* Remove Microsoft.Windows.Design.Extensibility ref

* Revert "Remove Microsoft.Windows.Design.Extensibility ref"

This reverts commit 5a24df3052.

* Testing something out

* Update Xamarin.Forms.Core.Design.csproj

* Update Xamarin.Forms.Core.Design.csproj

* PR Feedback
2024-02-29 13:40:53 +01:00
Rui Marinho 79cc0f49fe
Major code format (#12254) 2020-09-29 11:15:44 +01:00
Jiarui Guo c0bb38c7fa #3533 Bring back uap10.0/netstandard1.4 support (#7079) fixes #3533
* target netstandard 1.4 for supporting rs2

* multi targeting

* initial tests

* - set a couple libraries to NS1.0

* - ns1.4

* - fix gallery project

* - fix min targets

* - fix target

* - remove sdk

* - buildControlsPath

* - nuget restore

* - controls path

* - uwp version

* - add generic

* - fix xbf

* - add tuple nuget

* - set max target to 16299

* - proj fixes
2019-11-22 16:57:21 +00: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 7235bebdc4.

* Update Directory.Build.props

* Update Directory.Build.props

* Revert "Update Directory.Build.props"

This reverts commit 1c5b66c6e9.

* 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
Stephane Delcroix 26bed4ee3b Revert "[Design] Design assemblies targets v4.5 (#4560) fixes #2216"
This reverts commit 6fa2c1708e.
This reverts commit 11fd3ee9e5.
2018-11-28 14:06:43 +01:00
Stephane Delcroix 11fd3ee9e5 [Design] missing one 2018-11-28 12:51:29 +01:00
Matthew Leibowitz 5959c40c94 Move last projects over to PackageReference (#4492)
* Move the first few projects over to PackageReference

* Move the first few projects over to PackageReference

* Moved the remainder of the projects to PackageReference

* Copy the nunit test adapters for the test apps

* Update the unit tests version of json.net

* Don't use relative paths

* Make sure to also copy sub folders

* Remove the trailing slash

* Keep the directory structure
2018-11-22 14:25:56 +00:00
Stephane Delcroix c79c77dbdf [build] Version and strongname the Build.Tasks (#3118) 2018-06-28 12:04:16 +01:00
Daniel Cazzulino dc62dc1adf Implement OnPlatform/OnIdiom markup extensions (#2615)
* Added OnPlatform markup extension supporting iOS/Android/UWP for #2608

* Add Default and Other properties to OnPlatformExtension

This allows setting a default value for unknown platforms, as well
as specify values for arbitrary platforms by using a named parameter
like syntax:

`{OnPlatform Android=15, iOS=10, UWP=12, Default=11, Other=Tizen:20}`

The `Other` supports multiple semi-colon separated values. By using
this format, we can make the string more concise than if we used `=`
which would have to be escaped in quotes. For example:

`{OnPlatform Default=10, Other=Tizen:22;Xbox:20;Switch=25;PlayStation=22}`

Added unit tests that verify all the supported combinations.

* Add OnIdiomExtension

The extension allows the following syntax:

`{OnIdiom Phone=23, Tablet=25, Desktop=26, TV=30, Watch=10, Default=20}`

At least one value or `Default` must be specified. `Default` is returned
whenever the specific idiom was not specified.

* Add missing known platforms and return Default if missing

Add all strings that are provided in `Device`.
Convert individual asserts into test cases for better reporting.
Also, whenever a matching platform value isn't specified, return Default
instead of null.

* Turn OnIdiom asserts into test cases

This makes for easier to read, document and report tests.

* Add missing platforms to null check

* Make Default the content property

* Perform type conversion as expected by XamlC

Leverage the conversion that is used elsewhere, to return a
properly typed object that can be assigned directly to the
property. Update tests with typed values since now we get
integers, rather than strings out of the parser.

* Add Converter/ConverterParameter support

* Message should state that the value must be non-null

* Remove Unsupported idiom since it's not useful to set

You can use Default instead.

* Use new GetService<T> extension method for conciseness

* Don't fail if service provider is null

* Remove Other from OnPlatformExtension

As suggested, this might come back in the future in some other form.
2018-05-14 15:56:20 +02:00
Stephane Delcroix e758557fa1 Update design dependency (#2503)
* Update design dependency

* try again
2018-04-20 15:21:20 +01:00
Rui Marinho 1233e055d7
[Nuspec] Add .Design dll.s back (#1884) 2018-02-15 11:08:16 +00:00
Rui Marinho b74d545fc1
[All] Move to netstandard2.0 **Breaking change** (#1306)
* Move to netstandard 2.0

* Fix docs

* Small fixes
2017-11-29 17:37:06 +00:00
kingces95 26604911bf Enable warnings as errors in XAML 2016-04-06 23:08:17 -07:00
E.Z. Hart e13063cbd4 Update design projects to reference the correct DLL on multi-VS systems
Makes the references to Microsoft.Windows.Design.Extensibility version-specific,
so that in systems with muliple versions of that library available (e.g., with
multiple VS versions installed) the projects find the correct DLL
2016-03-28 14:07:18 -06:00
Jason Smith 17fdde66d9 Initial import 2016-03-22 16:13:41 -07:00