Coder Social home page Coder Social logo

Comments (8)

tommy10344 avatar tommy10344 commented on April 28, 2024 1

@dpvreony Thanks! Sorry for the late reply.

I added <AndroidUseDesignerAssembly>False</AndroidUseDesignerAssembly> to csproj and tried to build it and got the following build error.

/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/34.0.52/tools/Xamarin.Android.Resource.Designer.targets(146,3): error XA1034: Your project references '/Users/foo/.nuget/packages/reactiveui/19.5.39/lib/net8.0-android34.0/ReactiveUI.dll' which uses the `_Microsoft.Android.Resource.Designer` assembly, but you do not have this feature enabled. Please set the `AndroidUseDesignerAssembly` MSBuild property to `true` in your project file. [/path/to/ReactiveUI-WireUpControls-Issue/ReactiveUI-WireUpControls-Issue.csproj]

To use this setting, does ReactiveUI also need to have the same setting?
https://github.com/xamarin/xamarin-android/blob/main/Documentation/guides/building-apps/build-properties.md#androidusedesignerassembly

.NET 8 Projects which choose to turn this setting off will not be able to consume references which do use it. If you try to use an assembly which does have this feature enabled in a project that does not, you will get a XA1034 build error.

Or is there any other way?

from reactiveui.

ChrisPulman avatar ChrisPulman commented on April 28, 2024 1

Hi, I will try to take a look at this at the weekend, I will be travelling back to the UK from Brazil tomorrow if I have any chance during the flight I will take a look then.

from reactiveui.

dpvreony avatar dpvreony commented on April 28, 2024

can you try

<AndroidUseDesignerAssembly>False</AndroidUseDesignerAssembly>

if it works then you're correct it's a resource issue with the new build chain.

from reactiveui.

gerardvanderkruijs avatar gerardvanderkruijs commented on April 28, 2024

I am having the same issue with ReactiveUI version 19.6.1, any updates on this?

from reactiveui.

ChrisPulman avatar ChrisPulman commented on April 28, 2024

So after some investigations it looks like there is a more widespread issue with this, for some reason the Resource returns no elements for net 8.0. I am trying to see if there is a different method of obtaining Resources with net 8. I will update on my findings and create a fix unless its a core bug with net 8

from reactiveui.

ChrisPulman avatar ChrisPulman commented on April 28, 2024

image
This shows the issue we are experiencing with net 8.0

from reactiveui.

ChrisPulman avatar ChrisPulman commented on April 28, 2024

https://devblogs.microsoft.com/dotnet/android-resource-designer-dotnet-8/
This explains the reason, I will work on fixing this ASAP

.NET Blog
In .NET 8 we have made some vast improvements in changes to how Android resources work in regards to the designer assembly. If you are building Android apps and libraries there are some important changes to know about.

from reactiveui.

ChrisPulman avatar ChrisPulman commented on April 28, 2024

This will be resolved in the release in the next hour, thank you for raising this issue and sorry we took so long to resolve it.

from reactiveui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.