Comments (10)
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.
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.
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.
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.
Message from Intellisence or message when compiling?
from dependencypropertygenerator.
When compiling
from dependencypropertygenerator.
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.
Yes, try setting <RecognizeFramework_DefineConstants>HAS_AVALONIA</RecognizeFramework_DefineConstants>
explicitly. I still don't understand what the problem is
from dependencypropertygenerator.
Did version 1.2.4 work for you? What version did you update from?
from dependencypropertygenerator.
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)
- Error generating type with design-time visible attribute HOT 4
- No calls to OnXXXChanged event handlers on Avalonia.StyledProperty HOT 4
- Error CS0103: The name 'identifier' does not exist in the current context HOT 2
- Wrong generated code for primitive type array or for string array
- Wrong generated code for multidimensional array
- Wrong generated comment for the default value for tuples
- Warning CS0436: the type conflicts with imported type
- IDE0600 warning HOT 11
- Generated code for dependency property is always public
- Uno5 support
- Change the generator to call existing user method with compatible signature HOT 11
- String property is generated a nullable with no obvious way to mark it non-nullable HOT 5
- Framework is not recognized on WPF even with HAS_WPF HOT 1
- [DependencyProperty<int?>("Property")] doesn't compile HOT 1
- Generator eventually stop generating source for intellisense HOT 1
- Optimize weak events in WPF
- Add CompletionProvider for BindEvent feature
- Using caching
- Type parameter of the same class doesn't generate method call HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dependencypropertygenerator.