-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Cannot add datagrid control #15664
Comments
You need to upgrade to 11.0.10 instead of 11.1beta |
version was 11.0.2 cannot find version 11.0.1 |
11.0.10 |
link please? |
|
nuget version has nothing to do with extension. just open your csproj file and edit every version related to Avalonia to 11.0.10. |
Please don't open bug reports for questions. Use discussions instead. Will convert this one later when I have time to. |
When I say every, I mean every. Your desktop, android, ios and browser project is still 11.0.2 |
Also the VS package manager is a real pain to use with a large dependency chain like Avalonia (it often complains about transient conflicts which forces you to upgrade things in a specific order). It's easier to just manually upgrade everything by editing your project file. You should be able to upgrade all packages fairly easily though by checking the box on the updates tab. |
@rabbitism do you see below error? |
@thevortexcloud may i know how to edit project file |
If you are using a project using the new SDK format (which you likely are if you have made a new project), you can double click the project in the solution explorer. If you are using the old format, you need to unload the project and then right click it, and press edit. Or you can just open it directly with an external text editor. |
You may also need to trigger a restore. Try running |
|
In case of android project, you will also need to change the TargetFramework to net7.0-android. |
I suggest reading the official .NET docs and watching/reading a few tutorials. Most of this has nothing directly to do with Avalonia. https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview Anyway, you should not have android/iOS package references in a project that does not target the correct TFM. |
You have mixed Desktop, iOS and Android package. Single project is experimetal feature. You should use following comnand to create new Cross platform project from template dotnet new avalonia.xplat -n MyApp or select After creation. You have more project, each for plat (MyApp.Android.cspoj, ...). The Cross plat xaml and code should put into Add DataGrid package to Rebuild the solution Edit |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Describe the bug
I create new project, run in desktop can open window with message 'Welcome to Avalonia'
Want to add datagrid, but cannot do so
To Reproduce
from https://docs.avaloniaui.net/docs/reference/controls/datagrid/
dotnet add package Avalonia.Controls.DataGrid
get compile error
Update patch
become
Press F5, cannot run
Have not add datagrid control yet
Expected behavior
No response
Avalonia version
11.1.0-beta2
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: