При создании нового приложения с основным шаблоном и попытки запустить приложение по умолчанию, я получил 15 пропущенных ошибок в сборе. Потратил около 1 часа, пытаясь найти решение, даже добавление пользовательских источников и пакетов (которые, вероятно, можно было бы решить, уделяя больше времени, однако трудно поверить, что они ожидают, что я сам установим 15 или более пакетов при использовании шаблона по умолчанию). Мне нужно знать, как успешно построить мое недавно созданное приложение (для тех, кто задается вопросом). < /P>
Я попытался установить Visual Studio Community 2022 в случае, если это инсайдерская проблема, связанная с сборкой, однако в итоге я получил тот же опыт. Когда дело доходит до компонентов, у меня есть два по умолчанию, а также Win11 SDK (который, я думал, это, вероятно, не сработает без). Попробуя добавить два других варианта SDK (Win10 и более старый Win11), а также «инструменты разработки платформы Windows», не повезло. Попробовал также проверить опцию «.net Development», все еще ничего.
Код: Выделить всё
The type or namespace name 'Controls' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Controls' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Input' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Media' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Navigation' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Shapes' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'Window' could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name 'LaunchActivatedEventArgs' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Controls' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Controls' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Input' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Media' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Navigation' does not exist in the namespace 'Microsoft.UI.Xaml' (are you missing an assembly reference?)
The type or namespace name 'Window' could not be found (are you missing a using directive or an assembly reference?)
< /code>
Шаги, чтобы воспроизвести ошибку < /h3>
Установить установщик Visual Studio из MS Store < /li>
Найти сообщество Visual Studio 2026 Insiders из установки и проверьте последнюю Win11 SDK < /li>
Нажмите на кнопку установки < /li. VS26 и нажмите кнопку «Создать новый проект» < /li>
Выберите приложение «Winui Blank (упакованный)» «Параметр шаблона < /li>
Нажмите кнопку« Начать без отладки », расположенная рядом с верхней Ошибки < /li>
< /ol>
скриншоты < /h3>
Экран, который мне представлен при попытке создать мое приложение < /p>
Версия Windows < /h3>
Windows 11 (24H2): Build 26100 < /p>
note
> h3>> h3>> h3>> h3>>
>
> h3>>
>
> h3>>
> h3>
> h3>
> h3>
> h3>
. Проблема на странице Microsoft/Microsoft-Ui-xaml https://github.com/microsoft/microsoft- ... sues/10804
Подробнее здесь: https://stackoverflow.com/questions/797 ... in-vs26-an
Мобильная версия