Skip to content

[uno-check] [WinSdk][Desktop][Banner][CLI][VS2022] "Found problems banner" --target flags not recognized #404

Description

@DevTKSS

Current Behaviour

  1. uno-check --target desktop and uno-check --target winsdk flags are not recognized and causing uno-check CLI to run !NO! checks

  2. uno-check --tfm net9.0-desktop instead does work as expected but only in the CLI, not in VS2022 which is were I did get this command alternative from. This command automatically executed in VS2022 through the Uno Extension, does instead run the full checks, as it seems to extract the automatically used flags to --tfm net9.0 --tfm desktop for executing uno-check, that does result in running all checks as if we would have used instead the <TargetFrameworks>net9.0-desktop;net9.0</TargetFrameworks> definition in our csproj instead.

Expected Behaviour

  1. Using the desktop or winsdk flags for --target should validate correctly
  2. the Extension should not extract/split the TargetFramework and instead use the given name our csproj does define for it, and by that only run the checks we get running this in the Terminal

Additional Information

the loggs to the described Behavior has been added in the comments

Activity

  1. changed the title [-]Found problems banner while the checks it fails on are not even required for the currenct project setup[/-] [+][DevServer][Uno-Check Banner][VS2022][Targets] Found problems banner while the checks it fails on are not even required for the currenct project setup[/+] on May 30, 2025
  2. jeromelaban commented on May 30, 2025

    @jeromelaban
    Member

    Thanks for the report. If you place the uno platform logging to diagostics in VS, you'll see that uno-check creates a log file with the contents of the uno-check validation that runs in the IDE. Can you post this file here?

  3. DevTKSS commented on May 30, 2025

    @DevTKSS
    ContributorAuthor

    @jeromelaban I set all log levels I found (also the ms build you showed in the linked issue) to Diagnostic. but that did not at all made uno.check run in verbose when I clicked "Fix" in VS2022. The output I got and also the loggs I found in AppData I attached above. Since I seen, the Uno.Check is runned not in verbose, the Uno Platform Check.txt has been generated right afterwards via external Admin Terminal Running uno-check --verbose so you can get also that output for investigation. in the added Video you can see in the end also the nuget error instead of the initially just verbose log level it had. I think, this is also what happened for the other user just without the verbose diagnostic results I attached here. in the loggs zip are also files named with uno-check from same appdata folder, which I seen with same timestamp, so included them

  4. DevTKSS commented on May 30, 2025

    @DevTKSS
    ContributorAuthor

    To get rid of the emulator bug I also tryed to install the vs 2022 workload for this and there is the emulator folder in the android-sdk folder

    Image

    so I am wondering looked through the uno check linked guide for the emulator, if uno might need some specific sdk version of it since the xamarin android nugets reffered in the repositorys are made for downwards compartible 🤷 but I would be fine if that banner would just stop happening in net9.0 TargetFramework Projects...

  5. DevTKSS commented on May 30, 2025

    @DevTKSS
    ContributorAuthor

    or did you mean some specific setting for a settings topic named "Uno Platform" in vs 2022? because if I have this solution open, the Uno Extension (where we would e.g. check our settings or login to enable Studio) is not showing up in there and also I do not have a seperate Settings topic by the other "Options":

    Image
    created this solution by the vs 2022 "new empty solution" since its not meant to have a UI layer than just things like a Toolkit Project and a Extensions Project. the Toolkit Project I would like to use the Uno.Extensions.Logging, Configuration and Hosting and the Extensions would be cool if this could get the Uno.Core.Extensions (so no UnoFeatures, just the SDK)
    the Error message does still appear with one line in Uno Platform Output window since I added the Uno.Sdk to manage the Toolkit Project

  6. jeromelaban commented on May 30, 2025

    @jeromelaban
    Member

    Thanks, we need this specific file:

    Image

  7. DevTKSS commented on May 30, 2025

    @DevTKSS
    ContributorAuthor
  8. jeromelaban commented on Jun 5, 2025

    @jeromelaban
    Member

    Thanks, this is a similar issue to #328, because of:

    > Android Emulator Checkup...
    Running C:\Program Files\Microsoft\jdk-11.0.20.101-hotspot\bin\java.exe com.android.sdklib.tool.AvdManagerCli list avd in C:\Program Files (x86)\Android\android-sdk\cmdline-tools\13.0\lib (with input "<no input>")
    Failed to list avds: Picked up JAVA_TOOL_OPTIONS: -Dcom.android.sdkmanager.toolsdir="C:\Program Files (x86)\Android\android-sdk\cmdline-tools\13.0"
    Fehler: Beim Laden der Klasse com.android.sdklib.tool.AvdManagerCli ist ein LinkageError aufgetreten
    	java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/AvdManagerCli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
    Running C:\Program Files\Microsoft\jdk-11.0.20.101-hotspot\bin\java.exe com.android.sdklib.tool.AvdManagerCli list device in C:\Program Files (x86)\Android\android-sdk\cmdline-tools\13.0\lib (with input "<no input>")
    Failed to list devices: Picked up JAVA_TOOL_OPTIONS: -Dcom.android.sdkmanager.toolsdir="C:\Program Files (x86)\Android\android-sdk\cmdline-tools\13.0"
    Fehler: Beim Laden der Klasse com.android.sdklib.tool.AvdManagerCli ist ein LinkageError aufgetreten
    	java.lang.UnsupportedClassVersionError: com/android/sdklib/tool/AvdManagerCli has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
    Listing devices:
    
    ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
    Ï Recommendation: Create an Android Emulator
    ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
    
  9. DevTKSS commented on Jun 5, 2025

    @DevTKSS
    ContributorAuthor

    @jeromelaban having this issue quite a wile, mentioned it before, but still there seem no solution available until now.
    Do you know of any resources that tell about those higher compilation thing? The idea is: If that installed one currently is "compiled with a higher version" What about removing this problematic files from everywhere and then re-install them from a clean source? I heared that issue in a relation to the case of having the 21 version of the OpenJDK installed, which I tryed also, but I could not tell, if that issue did happen before this. So maybe that idea could be an option for a solution? Just... I do know know all places those Android or JDK packages are stored on my computer and deleting the android folder and reinstall did not made a difference so most likly I might miss some.

    As I looked up the linked Xamarin ms docs, there has been shown that Visual Studio "Android SDK Manager" Panel. I did open it, but I dont know, how the correct Settings for Uno Development for Android should look like. Does they look correct to you?

    Image

    Image

    I only seen in the Uno.UI Repository along the "Building Uno.UI" Guide, that Uno relies on a less version of Xamarin Packages which did cause version Management problems for some other Community Member also, so he told me, he does stay at net8 because of that. Maybe its related to that versioning of the Android Dependencys?
    Reffering to this https://github.com/unoplatform/uno/blob/3d0e5719fd038c1358ad19d115ab76f6c4646aef/src/Uno.CrossTargetting.targets#L150
    Uno seems to use 30 version and the Android SDKs on my Computer seem to only be 34-35 from what I would read...

  10. Takoooooo commented on Jun 6, 2025

    @Takoooooo
    Contributor

    From what i've been debugging - the issue is with that with 35 build-tools 17.0 JDK is needed. The reason why i didn't bump it yet is that i need to make a repro on my system and after that i'll be able to fix it

  11. DevTKSS commented on Jun 7, 2025

    @DevTKSS
    ContributorAuthor

    @Takoooooo but on mine there seems this to be installed, or am I missing some of it? Dont know... 🤔

  12. DevTKSS commented on Jun 13, 2025

    @DevTKSS
    ContributorAuthor

    @Takoooooo so as mentioned on discord, I were able to fix this emulator issue on my maschine, by installing it. Question to team from me still unanswered:

    Would you have something against a short troubleshooting (few screenshots where to click to get the raw path) for Android emulator setup for uno? I had problems with the xamarin docs to do the steps that solved my uno check issue that were constantly popping up ... Will test again with new templated app today but I am quite sure those steps fixed at least my android emulator problem.

    @jeromelaban as I have the banner now at work still but not beeing allowed to do emulator things or even using uno mobile targets, do you see an chance that we maybe could get some uno check config per sln recognized in the global.json file and best case for this also a schema to add in the json file for available arguments? That would be very helpful so we could be sure everything is fine for our targets and config even if its a in my case library solution targeting net8/9 only so no targets defined from this.

  13. DevTKSS commented on Jun 19, 2025

    @DevTKSS
    ContributorAuthor

    I am currently using the ignore button of the banner, but now seen that this causes the creation of a usercsproj with a tag set to <_UnoCheckIgnore></_UnoCheckIgnore>? 👀 Thats no where documented what this might cause.

    I am not sure about thats maybe related, but the solution where I did get the banner all the time and which was only having net8.0;net9.0 TargetFrameworks I made use of the ignore function:

    I were checking out from a default branch to dev branch (working tree not clean, I told vs 2022 I don't need the changes as that were docfx local buildings) All projects where I used uno.sdk as managing sdk were unloaded, failing to reload. I triggered dotnet restore command in the terminal, waited some minutes, then clicked the popping up banner again 🙄 and got greetet with the damn emulators again.
    In this specific environment I am not allowed or would even use those or wsl, but not knowing how to set the arguments in the global.json in this cases the problem banner keeps popping up🙄

    Kay so I said not fix to android emulator and hyper v and got the message:
    IMG_20250618_162252.jpg

    I did not had the time that day to delete vs and obj folder, will try, but can you say whats the cause if this issue its showing? I mean, just 110 sdk version did work fine the day before I switched branches 🫣
    Before Monday I will not get time to check it out future and not knowing if I get time on this environment on Monday (due dates) so...

    @jeromelaban it would already be helpful to know where I need to search for the culprit in my project/sln or if it should just be done with those folders to delete...

  14. changed the title [-][DevServer][Uno-Check Banner][VS2022][Targets] Found problems banner while the checks it fails on are not even required for the currenct project setup[/-] [+][!TARGET FLAG BUG!][WinSdk][Desktop][Banner][VS2022] "Found problems banner" while the --target flag gives green light does not run the minimum Checks![/+] on Jun 20, 2025
  15. DevTKSS commented on Jun 20, 2025

    @DevTKSS
    ContributorAuthor

    @jeromelaban @Takoooooo I am very sure, the Uno Team wants to know about this, to fix it soon, isnt it? 😨

    Found maybe out right now whats the (partial?) culprit of the latest comment added fail, tryed today with the latest prerelease version of the tool, but was not even searching for the cause of this here:

    The desktop & winsdk target are not listing ANY checks! I would at least have expected they would list:

    • GitCheckup
    • WindowsLongPathCheckup
    • DotNetWorkloadsCheckup
    • DotNetNewUnoTemplatesCheckup
    • VisualStudioWindowsCheckup
    • PSExecutionPolicyCheckup
    • DotNetCheckup

    Now that I do see this not even minimal runned checks on list argument, I tryed of course again with that latest prerelease version, what will happen when I make use of the --target desktop flag.

    C:\Users\Sonja>uno-check --target desktop -v
    
     
               ╔╣╝"╚╬╗
             ╔╣`     "╣╗
           ,@Ñ╝╩╬╗     ╚▒Ñ%,
         ╔╬╝     ]╣╦   ╔▓  ╚╣╗
        ╬╝     ,@╝  ╚@╬╝     ▒
        ╬╗   ,╣╝ ╝@╦╣`     ╔╣╝
         ╚╬╦ ▒     ╚@╗   ╔╣╝
            ╚╝@      "╚╣▒
               ╚h    ,@╝
                 ╚Ñ@Ñ╝
     
    
                                             _                     _
      _   _   _ __     ___             ___  | |__     ___    ___  | | __
     | | | | | '_ \   / _ \   _____   / __| | '_ \   / _ \  / __| | |/ /
     | |_| | | | | | | (_) | |_____| | (__  | | | | |  __/ | (__  |   <
      \__,_| |_| |_|  \___/           \___| |_| |_|  \___|  \___| |_|\_\
    
    ¤ Uno Platform Check v1.32.0.0 ¤
    ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
    This tool will check your Uno Platform development environment.
    If problems are detected, it will offer the option to try and fix them for you, or suggest a way to fix them yourself.
    ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
    » Synchronizing configuration...Loading Manifest from: https://raw.githubusercontent.com/unoplatform/uno.check/27809d0f07b8ded076fbf6b691943b555f7509b3/manifests/uno.ui.manifest.json
    Required Version: 1.14.0
    Current Version: 1.32.0.0
     ok
    » Scheduling appointments...SetEnvironmentVariable: DOTNET_ROOT=C:\Program Files\dotnet
    SetEnvironmentVariable: DOTNET_ROOT=C:\Program Files\dotnet
     ok
    ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
    
    - Congratulations, everything looks great!
    
    Press Enter to finish...
    
    Has Errors? False
    
    C:\Users\Sonja>

    And then I am absolutly sure, THIS following output using the non --target desktop using flag will make you consider to check this (as txt file export to make it more brevity):

    Uno Platform Check with list output.txt

    this (seems like) not done changes could indeed be a partially reason for my latest added comment here because as I did of course use (in this case) the lastest stable uno-check version right before starting vs 2022 with the uno-check --target desktop and it did prompt me Congratulations, everything looks great!. As we are meant to trust Uno Check normally I did that, but everytime in vs 2022 I got this damn banner and Wednesday this minimal (sarcasm) worring fail, which can of course be mainly caused by a dirty git branch switch.

    As I knowed from my own private dev projects using Uno, the above listed issue about the android emulator and the un-known / non existant uno-check configuration option when vs 2022 IDE Extension is executing it, I was using the normal Terminal with the --target desktop` flag, which I do expect to know it does not need to run the emulator checks, but of course, I expected it to check my Uno.Sdk und Uno dotNetNew Templates! 😟 🤐

    checked this now against with my mvux gallery, which is targeting exactly the desktop Target and I am afraid, that did verify this to happen also in vs2022:

    [VERBOSE] VS2022 output.txt

    uno-check-426afa1a-b115-404f-ae28-a6e30e8e9b06.txt

    Please check on uno-check, so I can again trust it to run all required checks using the --target flags 🥺

  16. DevTKSS commented on Jun 21, 2025

    @DevTKSS
    ContributorAuthor

    and detail to add: while running the vs2022 used cmd uno-check --tfm net9.0-desktop does tell us "no issues detected" running the same on our own just in the regular admin terminal on Windows, does indeed list the errors as it should do! (just not for only the desktop or documentation provided desktop or winsdk keywords for target) might be an vs2022 extension thing? Looks like the manifest might not have gotten updated with the mayor release on my maschine...

  17. DevTKSS commented on Jun 21, 2025

    @DevTKSS
    ContributorAuthor

    Maybe there is a missing exception or default case that would validate the target/tfm value and instead of running no check suggeresting everything is fine?
    And somehow it does not update my manifest like mentioned on the other issue to the version upgrading of extension
    If you know about its storing a local manifest, maybe I could check if there is any problem causing this, as it seems like nobody else has it or sees it...?

  18. DevTKSS commented on Jun 23, 2025

    @DevTKSS
    ContributorAuthor

    So, checked at work where uno check had this fail from screenshot, and after:

    • uninstalling unrequired older workloads (net 6 runtime, maui, android, asp)
    • dotnet uninstall -g uno.check
    • dotnet install -g uno.check
    • uno-check --tfm net9.0-desktop

    It seems like, un and reinstalling it does

    • solve the manifest problem there
    • no fail at install uno.sdk fix
      -> I am quite sure that was related to a dotnet fail, where its running repair maybe, because exactly as I used this command, dotnet sdk installation msi package itself was having a fail as I clicked on repair.
    • using the tfm flag in exchange worked well, no emulator repeat fix issue(not prompting this at all) -> correct behavior

    Only strange thing with this tfm flag and also on windows as target usage: why does it want to set up hyper v?

  19. changed the title [-][!TARGET FLAG BUG!][WinSdk][Desktop][Banner][VS2022] "Found problems banner" while the --target flag gives green light does not run the minimum Checks![/-] [+][WinSdk][Desktop][Banner][CLI][VS2022] "Found problems banner" --target flags not recognized[/+] on Jun 28, 2025
  20. added theissue type on Nov 5, 2025
  21. changed the title [-][WinSdk][Desktop][Banner][CLI][VS2022] "Found problems banner" --target flags not recognized[/-] [+][uno-check] [WinSdk][Desktop][Banner][CLI][VS2022] "Found problems banner" --target flags not recognized[/+] on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions