Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A ton of compile errors #147

Closed
Tony20221 opened this issue Sep 2, 2022 · 10 comments
Closed

A ton of compile errors #147

Tony20221 opened this issue Sep 2, 2022 · 10 comments

Comments

@Tony20221
Copy link

I just downloaded the code and when I tried to compile it, I get over 400 errors! The packages are not showing any errors or warnings.
Is the code targeting a specific version of Avalonia? What's causing all these errors?

image

@wieslawsoltes
Copy link
Owner

What version of IDE did you use and what version of .NET you have installed ?

@wieslawsoltes
Copy link
Owner

It's probably issue with your IDE not working properly with C# source generators.

@Tony20221
Copy link
Author

I am using VS 2022 17.3.3 which is the latest. I didn't have .NET 7.0 which your app needed so I installed it. .NET 7.0 is not officially out yet. Also, it's showing that it's using Avalonia 11 previews 1. So I don't know why the app is using all kinds of preview stuff. What version of Avalonia is it supposed to use?

I don't know what you mean by my IDE does not work properly with C# source generators. Don't these come by default with a VS installation?

@Tony20221
Copy link
Author

What errors are showing up that are related to C# source generators?

@wieslawsoltes
Copy link
Owner

You need to install .NET version 7.0.100-preview.7.22377.5

@wieslawsoltes
Copy link
Owner

Avalonia 11 is installed automatically from nuget on restore.

@wieslawsoltes
Copy link
Owner

I am using VS 2022 17.3.3 which is the latest. I didn't have .NET 7.0 which your app needed so I installed it. .NET 7.0 is not officially out yet. Also, it's showing that it's using Avalonia 11 previews 1. So I don't know why the app is
I don't know what you mean by my IDE does not work properly with C# source generators. Don't these come by default with a VS installation?

Because I need to test stuff and preview version I test extensively.

@Tony20221
Copy link
Author

I am looking at the first error. Class AvaloniaEditorCanvasPlatform implements interface IEditorCanvasPlatform which has several actions. InvalidateControl is the first one. Where is this action implemented in AvaloniaEditorCanvasPlatform?
I see _invalidateControl which looks similar.

@wieslawsoltes
Copy link
Owner

I have no idea why you get so many errors, checkout the CI builds that complete without any error on Linux, Windows and macOS on each commit

https://github.com/wieslawsoltes/Core2D/actions/runs/2970331572

Repository owner locked and limited conversation to collaborators Sep 3, 2022
@wieslawsoltes wieslawsoltes converted this issue into discussion #148 Sep 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants