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

44 Коммитов

Автор SHA1 Сообщение Дата
Peter Collins f8d464c71f
[ci] Add Windows build job to run CodeQL (#14)
The project will now build on both macOS and Windows, but CodeQL will
only run during the Windows job.

This fixes a build failure that would occur on macOS when CodeQL was
enabled.
2022-11-16 13:24:54 -05:00
Jonathan Peppers 627e730003
Enable CodeQL for this repository (#13)
Context: https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/codeql/codeql-semmle
2022-11-07 13:15:51 -05:00
Peter Collins 1c584c97cf
Fix provider for MonoAndroid target frameworks (#12)
We mistakenly broke this project in commit ab48982d, as an SDK style
fsharp project will not auto glob .fs files when compling.

Fix the project by compiling `ResourceTypeProvider.fs` again, however
this will only work for Classic Xamarin.Android projects.

There are [non-trivial issues][0] that prevent `ResourceTypeProvider.fs`
from running on .NET Core (CodeDom compiling, AppDomain usage, etc).

These are not worth fixing at this time, as an alternate solution has
been provided in https://github.com/fabulousfx/FSharp.Android.Resource.

[0]: https://github.com/xamarin/Xamarin.Android.FSharp.ResourceProvider/issues/11#issuecomment-1028793264
2022-06-24 11:55:45 -04:00
Peter Collins 87b7b0084d
[build] Set Microsoft metadata for NuGet.org (#10)
We had some invalid/missing metadata and content in the .nupkg file that
was preventing us from publishing an updated version to NuGet.org.
2021-05-28 11:37:12 -04:00
Peter Collins 5b52b2fb52
[ci] Enable .nupkg signing (#8)
We'll want to release a new version of this package to nuget.org in the
near future, as the latest stable version does not work with the .NET 6
Android SDK. We'll want to enable package signing to release an updated
version.
2020-11-11 13:37:59 -05:00
Jonathan Peppers 42fd331655 Bump to version 1.0.1
NuGet doesn't like a trailing 0, so we can't do 1.0.1.0.

For a future release, the next one can be 1.0.1.1.
2020-08-21 10:55:09 -05:00
Jonathan Peppers ab48982d15
[build] support for .NET 5.0+ (#6)
Trying to build an F# project under .NET 5 fails with:

    error FS3053 : The type provider 'Xamarin.Android.FSharp.ResourceProvider' reported an error : The type provider constructor has thrown an exception: Could not load file or assembly 'System.CodeDom, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.

We need this library to target `netstandard2.0`, so it will work on
.NET framework, Mono, and .NET Core (.NET 5+). I reworked
`Xamarin.Android.FSharp.ResourceProvider.fsproj` to be
`netstandard2.0`.

This created a new issue when I tried to *use* the package in a .NET 5
project:

    Foo.Android.fsproj : error NU1202: Package Xamarin.Android.FSharp.ResourceProvider 1.0.0.29 is not compatible with net5.0 (net5.0). Package Xamarin.Android.FSharp.ResourceProvider 1.0.0.29 supports:
    Foo.Android.fsproj : error NU1202:   - monoandroid81 (MonoAndroid,Version=v8.1)
    Foo.Android.fsproj : error NU1202:   - netstandard2.0 (.NETStandard,Version=v2.0)

.NET 5.0 seems to prefer `netstandard2.0` over `monoandroid81`, and so
it doesn't know what to do here: hence the error.

I literally, could run this command on the package and it works afterward:

    zip -d Xamarin.Android.FSharp.ResourceProvider.1.0.0.29.nupkg lib/netstandard2.0/Xamarin.Android.Fsharp.ResourceProvider.dll

The fix is to use the `.nuspec` instead of the `.fsproj`:

    -nuget pack Xamarin.Android.FSharp.ResourceProvider.fsproj
    +nuget pack Xamarin.Android.FSharp.ResourceProvider.nuspec

I also made some changes to the Xamarin.Android project (just general
cleanup):

* Migrate from `packages.config` to `@(PackageReference)`
* We can rely on `/restore` now in the build definition.
  `restoreNugetPackages` is deprecated, so we shouldn't use it.
* Removed an `<Import/>` that was unused.
2020-08-21 10:53:09 -05:00
Peter Collins 2e68107fda
[ci] Add YAML build pipeline (#7)
Adds a build pipeline to validate pull requests, and package
and push new nupkg versions to an internal feed for testing.
A queue time variable must be set for a new package version
to be pushed to this feed.

Feed: https://dev.azure.com/xamarin/public/_packaging?_a=feed&feed=Xamarin.Android
2020-08-21 10:28:26 -04:00
nosami 9d3661bd5f Don't attempt to filter any referenced assemblies
Re https://github.com/mono/monodevelop/issues/6304
Re VSTS #704919
2018-10-12 17:31:42 +01:00
nosami e72e063c1f Be explicit about Android target framework in the package 2018-10-12 15:27:16 +01:00
nosami 3ac319b024 Try and find the solution root folder 2018-10-11 10:58:44 +01:00
nosami 19148a7bf9 Bump to 1.0.0.24 2018-05-11 11:37:37 +01:00
nosami 2aa6a42c8d Fix Resource class name in pre-compiled code 2018-05-11 11:35:10 +01:00
nosami a9648b2988 Default C# code contained a compilation error.
Fixes https://github.com/mono/monodevelop/issues/4766
2018-05-10 14:02:34 +01:00
nosami d673111b8c Revert the usage of the TP SDK. We need real C# types...
...to be embedded into the F# assembly - not mirrored types

Re https://github.com/xamarin/xamarin-android/issues/1513
and https://github.com/mono/monodevelop/issues/4456

Bump to 1.0.0.22

We also need code such as the following adding to the NUnit template and
possibly others.

```fs
namespace fsandroidnunit
// the name of the type here needs to match the name inside the ResourceDesigner attribute
type Resources = fsandroidnunit.Resource
[<assembly: Android.Runtime.ResourceDesigner("fsandroidnunit.Resources", IsApplication=true)>]
()
```
2018-04-06 16:09:34 +01:00
nosami cbd66c10b9 Simplify type provider by removing Mono.Android reference from IDE context 2018-04-04 15:38:40 +01:00
nosami 48f79a182e Add default Tabbar and Toolbar values 2018-04-03 16:14:50 +01:00
nosami b5a079294a Bump to 1.0.0.19 2018-02-16 13:07:27 +00:00
Jason Imison 4beb9e3fc5
Merge pull request #2 from varon/xamarin-components
Add support for Xamarin Components
2018-02-16 13:01:15 +00:00
Varon 9d42b921bc Add support for Xamarin Components 2017-11-01 08:58:05 +02:00
nosami 2fa10266a3 Bump nuget to 1.0.0.18 2017-10-24 15:10:47 +01:00
Jason Imison 0dd944d6b7 Merge pull request #1 from xamarin/tp-sdk
Update to use Type Provider SDK
2017-10-24 15:08:47 +01:00
nosami f7d19797a9 Fix project file 2017-10-24 15:08:22 +01:00
nosami 0ea6542151 Bump to 1.0.0.18 2017-10-24 15:06:15 +01:00
nosami 9c6aaca4bd Update type provider to use SDK 2017-10-24 15:01:11 +01:00
nosami 5f9c93e8d9 Add Paket 2017-10-24 14:21:44 +01:00
nosami 598de2b20a Version the runtime assembly + bump to 1.0.0.17 2017-10-17 18:14:20 +01:00
nosami 73ef29db9e Bump to 1.0.0.15 2017-10-13 21:05:17 +01:00
nosami a304eaee0e Fixes top level Android completions. Re: https://bugzilla.xamarin.com/show_bug.cgi?id=55881 2017-10-13 20:16:49 +01:00
nosami 0724d70aba A better way to get the root namespace 2017-06-27 16:10:22 +01:00
nosami c3c14f93b5 fix project file 2017-06-27 15:03:05 +01:00
nosami cb41de7391 Allow NuGet references that aren't within the Solution root 2016-10-18 20:36:38 +01:00
nosami 16f8954ea4 Don't reference project references that don't exist yet 2016-10-04 12:20:01 +01:00
nosami 14a7e17bc1 Fix finding System.dll 2016-10-04 11:42:39 +01:00
nosami 0c2f4e68ad Add Android NUnitLite 2016-10-04 09:30:16 +01:00
nosami 9ee58e0aae Reference NuGet FSharp.Core 2016-09-29 21:05:02 +01:00
nosami f56601bb9a Add project references to the compilation 2016-09-29 20:59:23 +01:00
nosami f04efd3675 VS fix 2016-09-28 18:22:49 +01:00
nosami 246675d760 clean up 2016-09-27 14:54:17 +01:00
nosami a6897eb0a0 bump version 2016-09-27 14:48:11 +01:00
nosami 0ef1cbfd53 Add nuspec 2016-09-26 16:35:38 +01:00
nosami 0fe9ec8878 Switch resources file extension to C# and add default 2016-09-26 16:35:20 +01:00
nosami 76e0f89a31 Add files 2016-09-24 16:06:08 +01:00
nosami 5f34c43250 first commit 2016-09-24 16:04:26 +01:00