You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I clone the repo (as of the time of this issue), and I open it up in Visual Studio 2022 17.1.0 Preview 3, with maui-check executed and passed, I get The name <yada yada> does not exist in the current context for any class that has an InitializeComponent method, including App.xaml.cs
UPDATE
I just discovered that it actually builds anyway, "Build succeeded"
Deploy to emulator (Android) fails on my computer, for now, but I managed to deploy it to device! =)
Error CS0103
The name 'InitializeComponent' does not exist in the current context
WeatherTwentyOne (net6.0-android), WeatherTwentyOne (net6.0-ios), WeatherTwentyOne (net6.0-maccatalyst), WeatherTwentyOne (net6.0-windows10.0.19041)
C:\Git\Maui\WeatherTwentyOne\src\WeatherTwentyOne\Pages\FavoritesPage.xaml.cs 9 Active
Error CS0103 The name 'InitializeComponent' does not exist in the current context
WeatherTwentyOne (net6.0-android), WeatherTwentyOne (net6.0-ios), WeatherTwentyOne (net6.0-maccatalyst), WeatherTwentyOne (net6.0-windows10.0.19041)
C:\Git\Maui\WeatherTwentyOne\src\WeatherTwentyOne\Views\CurrentWidget.xaml.cs 7 Active
Error CS0103 The name 'InitializeComponent' does not exist in the current context
WeatherTwentyOne (net6.0-android), WeatherTwentyOne (net6.0-ios), WeatherTwentyOne (net6.0-maccatalyst), WeatherTwentyOne (net6.0-windows10.0.19041)
C:\Git\Maui\WeatherTwentyOne\src\WeatherTwentyOne\Views\WidgetsPanel.xaml.cs 7 Active
Error CS0103 The name 'PhoneTabs' does not exist in the current context
WeatherTwentyOne (net6.0-android), WeatherTwentyOne (net6.0-ios), WeatherTwentyOne (net6.0-maccatalyst), WeatherTwentyOne (net6.0-windows10.0.19041)
C:\Git\Maui\WeatherTwentyOne\src\WeatherTwentyOne\App.xaml.cs 14 Active
This is the log of maui-check:
☼ .NET MAUI Check v0.10.0.0 ☼
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
This tool will attempt to evaluate your .NET MAUI development environment.
If problems are detected, this tool may offer the option to try and fix them for you, or suggest a way to fix them
yourself.
Thanks for choosing .NET MAUI!
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
» Synchronizing configuration... ok
» Scheduling appointments... ok
> OpenJDK 11.0 Checkup...
- 11.0.12 (C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin\..)
- 1.8.0-25 (C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25)
> Visual Studio 17.1.0-pre.3.0 Checkup...
- 17.0.0
- 17.1.0-pre.3.0 - C:\Program Files\Microsoft Visual Studio\2022\Preview
- 16.11.1
> Android SDK Checkup...
- emulator (31.1.4)
- build-tools;31.0.0 (31.0.0)
- platforms;android-31 (1)
- system-images;android-31;google_apis;x86_64 (8)
- platform-tools (31.0.3)
- cmdline-tools;5.0 (5.0)
> Android Emulator Checkup...
- Emulator: pixel_2_pie_9_0_-_api_28 found.
> .NET SDK Checkup...
- 3.1.300 - C:\Program Files\dotnet\sdk\3.1.300
- 5.0.400 - C:\Program Files\dotnet\sdk\5.0.400
- 6.0.100-preview.3.21202.5 - C:\Program Files\dotnet\sdk\6.0.100-preview.3.21202.5
- 6.0.100 - C:\Program Files\dotnet\sdk\6.0.100
- 6.0.200-preview.22055.15 - C:\Program Files\dotnet\sdk\6.0.200-preview.22055.15
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
☼ Recommendation: Download .NET SDK (6.0.200)
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I did not download .NET SDK (6.0.200).
The text was updated successfully, but these errors were encountered:
If I clone the repo (as of the time of this issue), and I open it up in
Visual Studio 2022 17.1.0 Preview 3
, with maui-check executed and passed, I getThe name <yada yada> does not exist in the current context
for any class that has an InitializeComponent method, includingApp.xaml.cs
UPDATE
"Build succeeded"
This is the log of maui-check:
I did not download .NET SDK (6.0.200).
The text was updated successfully, but these errors were encountered: