Giter Site home page Giter Site logo

Comments (10)

YBAZAN avatar YBAZAN commented on May 20, 2024 1

I've found the problem. I didn't add a reference to the DependencyPropertyGenerator package (+ DefineConstants) in the project. I thought it would consume the package as transient from a referenced project.

It was working until now, so I didn't what changed since.

BTW, it works, I'm happy !

Thank you very much for the time you've spent to help me, very appreciated :)

from dependencypropertygenerator.

HavenDV avatar HavenDV commented on May 20, 2024

While this fix is fairly trivial and is already in the process of being shipped to NuGet, I see that they have also added other changes that break the tests. Please try and let me know if this applies to you.
2b9997e

from dependencypropertygenerator.

HavenDV avatar HavenDV commented on May 20, 2024

I'm not entirely sure if the other changes will apply to older versions as well. There are two ways here - to introduce the MSBuild property DependencyPropertyGenerator_UseAvaloniaPreview, which the generator will read and generate the correct code, or wait until these versions come out of preview. I will implement the first option if there are messages from you or other users that this is necessary.

from dependencypropertygenerator.

YBAZAN avatar YBAZAN commented on May 20, 2024

The 1.2.5 nuget version works thanks but now I get the message "error TRF001: Framework is not recognized"

Yet I have the constant defined in my csproj:
<DefineConstants>$(DefineConstants);HAS_AVALONIA</DefineConstants>

from dependencypropertygenerator.

HavenDV avatar HavenDV commented on May 20, 2024

Message from Intellisence or message when compiling?

from dependencypropertygenerator.

YBAZAN avatar YBAZAN commented on May 20, 2024

When compiling

from dependencypropertygenerator.

YBAZAN avatar YBAZAN commented on May 20, 2024

Is it something related to https://github.com/HavenDV/H.Generators.Extensions/blob/108ce2b09a42ddfd1573c78c82617419fa58df47/src/libs/H.Generators.Extensions/AnalyzerConfigOptionsProviderExtensions.cs#L141

Do I need to set particular settings in my csproj (RecognizeFramework_DefinedConstants...)?

from dependencypropertygenerator.

HavenDV avatar HavenDV commented on May 20, 2024

Yes, try setting <RecognizeFramework_DefineConstants>HAS_AVALONIA</RecognizeFramework_DefineConstants> explicitly. I still don't understand what the problem is

from dependencypropertygenerator.

HavenDV avatar HavenDV commented on May 20, 2024

Did version 1.2.4 work for you? What version did you update from?

from dependencypropertygenerator.

HavenDV avatar HavenDV commented on May 20, 2024

Perhaps your build fails for another reason, but you see not the build log, but Intellisence errors that may not be correct?

from dependencypropertygenerator.

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.