-
Notifications
You must be signed in to change notification settings - Fork 6
Build failure with VS / MSBuild 16.8 #9
Comments
To reproduce:
|
@TimLariviere we are planning on pushing an update to nuget.org soon, but in the interim could you try the latest package version to see if the problem is still present there? If so we'll need to investigate further. To test v1.0.1, you can use the following NuGet.config
|
@pjcollins It doesn't seem to run the type provider.
The code generating the errors: // the name of the type here needs to match the name inside the ResourceDesigner attribute
type Resources = TestVS16_8_NewPackage.Android.Resource
[<assembly: Android.Runtime.ResourceDesigner("TestVS16_8_NewPackage.Android.Resources", IsApplication=true)>] MainActivity.fs type MainActivity() =
inherit FormsAppCompatActivity()
override this.OnCreate (bundle: Bundle) =
FormsAppCompatActivity.TabLayoutResource <- Resources.Layout.Tabbar
FormsAppCompatActivity.ToolbarResource <- Resources.Layout.Toolbar |
This is still happening in VS 2019, 16.11.0 Preview 2.0. It gives the exact same warning, then seemingly never runs the provider:
Note that I have used the version 1.0.1 that has been released on NuGet.org. I made sure my Details
|
@TimLariviere did you find a solution for this? I've just run into a similar error message from an Azure Pipeline run:
My project builds fine locally with VS 16.10.3. |
Bit more information on this one: in my project, I've determined that using Xamarin.Android.FSharp.ResourceProvider v1.0.1 results in the kind of errors mentioned in this issue. Downgrading to v1.0.0.28 allows the build to complete successfully. Removing references to System and System.Numerics did not work for me with v1.0.1 of the package. v1.0.0.28 doesn't seem to mind those references remaining. |
This is a blocking issue. Building F# apps for Xamarin.Android is currently broken because of this key piece of infrastructure. |
Has support for .NET Framework and .NET 6.0 |
Hi,
After upgrading to Visual Studio 16.8 (MSBuild 16.8.1.52902), F# Android projects that previously were working started failing with the following message:
If I apply what the error message recommends and remove both
System
andSystem.Numerics
, it builds and runs fine once again.Though, if I try to remove
System
andSystem.Numerics
with VS 16.7.8 (MSBuild 16.7.2.52901), it won't compile.Since we can't have a workaround that applies to all VS versions, it's rather annoying.
We already got several user reports for it in Fabulous: https://github.com/fsprojects/Fabulous/issues/813
Also, I see that a few pull requests were merged recently to this repo but not yet published to NuGet.
Any plans to release them in the future?
@pjcollins @jonathanpeppers @nosami
The text was updated successfully, but these errors were encountered: