После обновления до .net8 обратитесь к System.Windows.Controls в редакторе xaml.C#

Место общения программистов C#
Anonymous
После обновления до .net8 обратитесь к System.Windows.Controls в редакторе xaml.

Сообщение Anonymous »


RID .NET изменился с .NET8, поэтому я изменил PropertyGroup в файле csproj следующим образом.

Код: Выделить всё

WinExe
net8.0-windows10.0.19041.0
10.0.17763.0
Test
app.manifest
x64
win-x64
win-$(Platform).pubxml
true
true

I also modified the name and rid of the pubxml file.
After that, in the xaml editor, it initially normally referenced Microsoft.UI.Xaml.Controls namespace, but at some point, without knowing why, the error occurred by referencing the System.Windows.Controls namespace, and auto-completion did not work.
Изображение
Изображение
The error is not described, but by mouse-up and looking at the type of Grid, you can see that it is "System.Windows.Controls.Grid."
When I compile it, it works normally, but it's difficult to code due to bugs in the editor.
Does anyone know why this bug is happening?


Источник: https://stackoverflow.com/questions/775 ... xaml-edito

Вернуться в «C#»