0

I use Visual Studio 2022 Community edition, when create a new .NET Maui project (from the type project selector) appears the error CS0103 on the ide, but the project compiles and executes fine, in android emulator or windows machine. I check this post but don't works: Similar problem

enter image description here

the error: CS0103 on InitializeComponent();

Do you have some solution to this? thanks:

Entire error:

Error CS0103 El nombre 'InitializeComponent' no existe en el contexto actual MauiApp1 (net8.0-android), MauiApp1 (net8.0-ios), MauiApp1 (net8.0-maccatalyst), MauiApp1 (net8.0-windows10.0.19041.0) C:\Users\Jordi\source\repos\MauiApp1\MauiApp1\MainPage.xaml.cs 9 Activo

4
  • Please read How to Ask before posting. Code and errors should be posted as text, not images. And please include the entire error message, not just the error code. I've been using C# for 20 years and I don't have any of the error code memorized. Commented Jan 13, 2024 at 16:56
  • :-) you can see the error code on the title of the post Commented Jan 13, 2024 at 17:05
  • please read what I actually said: "please include the entire error message, not just the error code" Commented Jan 13, 2024 at 17:08
  • ok sorry! I have modified ( but is in Spanish) Commented Jan 13, 2024 at 17:13

1 Answer 1

0

I answer myself! I found the solution! ( execute Visual Studio as Administrator ) sorry, moderators can delete this post if they feel it is not relevant! Thanks!!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.