Replies: 8 comments 27 replies
-
rc1 is pretty outdated. Please update your templates to use latest version. |
Beta Was this translation helpful? Give feedback.
-
Let's make it a Q&A for now, as it's not reproducable using latest templates. Please upgrade and try again. If it still fails, file a minimal sample. Thx 🙏 |
Beta Was this translation helpful? Give feedback.
-
I think exactly the same, now. I'll follow your advice, and create my
templates from the command line. Thank you for the assistance :)
Il giorno gio 28 set 2023 alle ore 11:13 thevortexcloud <
***@***.***> ha scritto:
… Certainly sounds like a Visual Studio problem. Which would not surprise
me. Visual Studio does have a habit of breaking in weird subtle ways.
You can try compiling it from the command line too to see if that can get
around it as a work around for the moment.
—
Reply to this email directly, view it on GitHub
<#13035 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADJFWFJW7GQ27M6X6I7KCZLX4U5SHANCNFSM6AAAAAA5I7TPVM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'm continuing to study the problem, and I noticed that the InitializeComponent method is defined in the Core.Views.MainWindow.g.cs file, and not only that: if I hover the mouse over the call that doesn't resolve, here is the definition and the description, as they are found in the other self-generated partial class. At runtime the error disappears, therefore you can live without solving it; but, forgive me, I feel as if I were in front of a splendid, perfectly white wall (Avalonia), with a speck in the corner: no matter how much effort I make, the eye continually falls on the speck :) |
Beta Was this translation helpful? Give feedback.
-
I also encountered the same problem. Is there a solution?thanks @dprevato |
Beta Was this translation helpful? Give feedback.
-
A possible track, unless the correction comes from another of my modifications :-) I had the same problem in Debug but not in Release so I deleted this line from the project |
Beta Was this translation helpful? Give feedback.
-
Hi guys! It's pretty odd when I change the target framework to 9, the problem disappears, but if I reboot VS, the issue comes back. It's a temporary fix. I don't get it. Even though, it runs with no problems. However, when looking for a method of any control it becomes such a tedious task, the autocomplete is dead cause of this. Is there a definitive solution? Regards |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I just started a new project, using Avalonia, but I have the error "CS0103: The name InitializeComponent does not exist in the current context", in MainWindow.axaml.cs, without any code added from my part. All the required DLLs are present, I'm using Community.Toolkit.Mvvm v8.2.1. No idea about how to resolve the problem. Someone can help me?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect to have the method InitializeComponent resolved, so I can start to write my own code.
Desktop (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions