And VS 2022 get worse by the day, now adding code that I didn't
So just had two events during editing code (C#) in a Maui solution that make me wonder.
The first was during the adding of a Constructor it added code to init properties but the code was not correct and I did not ask for it.
The second is that in a file that was not even open it added a using statement that I did not ask for:
using static JetBrains.Annotations.Async;
These types of errors make using VS horrible to use. And I have the latest version installed.
Visual Studio
.NET MAUI
-
Lloyd Sheen 1,356 Reputation points
2022-09-27T22:13:31.377+00:00 Just deleted Android emulator to try to get keyboard from popping up at app start and now I get other errors that I cannot even begin to describe. Had these before and had to basically recreate my project. This time to get past these problems I had to restart my workstation . It now says it is debugging but at the start I get a dark blue blank screen (no splash screen) and of course it did nothing to stop the keyboard from popping up. Is there a version of VS 2022 that is usable???
So without my permission VS added code that I didn't ask for and did something that says no SplashScreen.
Give it a 0 out of 10.
-
Lloyd Sheen 1,356 Reputation points
2022-09-27T22:16:14.483+00:00 Started another app and SplashScreen is gone so I guess the emulator is at fault but still VS 2022 and Maui development is 10 mins of work and 50 mins trying to fix what went wrong between Maui, VS and Emulator
-
Lloyd Sheen 1,356 Reputation points
2022-09-27T22:24:52.287+00:00 Ok so added Android 30 rather than 31 and splash screen comes. Sounds like something that would not be too difficult to test during QA (is there any).
-
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,261 Reputation points • Microsoft Vendor
2022-09-28T06:29:44.34+00:00 After adding the android 30, is this issue disappear? If you have VS issue, you can report this issue in VS directly
-
Lloyd Sheen 1,356 Reputation points
2022-09-28T17:26:07.953+00:00 android 30 shows SplashScreen 31 does not.
-
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,261 Reputation points • Microsoft Vendor
2022-09-30T08:12:23.763+00:00 Could you minimize code to just what is needed to reproduce the problem?
-
Lloyd Sheen 1,356 Reputation points
2022-09-30T11:26:41.853+00:00 You just need to create a solution using the Maui template. This provides you with the default SplashScreen. Run the project against the Pixel 31 emulator and there is no splash screen image just a blank screen but using Pixel 30 shows the Splash Screen image.
-
Lloyd Sheen 1,356 Reputation points
2022-09-30T20:23:43.717+00:00 Just added
using static Android.Provider.ContactsContract.CommonDataKinds;
-
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,146 Reputation points • Microsoft Vendor
2022-10-03T07:06:00.247+00:00 Hi @Lloyd Sheen , It looks there are several issues bothering you.
The first was during the adding of a Constructor it added code to init properties but the code was not correct and I did not ask for it.
For further investigation, could you provide some code snippets about how you add the code in Constructor method and your detailed VS version or the steps to reproduce this issue? And how it was correct, are there any error messages? And may I ask what behavior you are trying to get, what you are doing to try to achieve this, and how does the actual behavior differ from the expected behavior? As noted in the Q&A FAQ: How to write a quality question
The second is that in a file that was not even open it added a using statement that I did not ask for: using static JetBrains.Annotations.Async;
using static JetBrains.Annotations.Async;
means that you are using Xamarin.Jetbrains.Annotations, it's supported for Android X, you can see : https://github.com/xamarin/AndroidXAnd the another issue is about Splash Screen on Android12(API31), there is a related issue reported at GitHub- Add better support for Android 12+ Splash Screen APIs #9794, you could refer to the workaround and check if it works. If you have any other issues about splash screen, please feel free to let me know.
-
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,146 Reputation points • Microsoft Vendor
2022-10-03T07:11:00.203+00:00 In addition, please ask one question at a time.
Sign in to comment