-
Notifications
You must be signed in to change notification settings - Fork 742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error : Member modifier 'static' must precede the member type and name UnoApp1 (net8.0-desktop) #19015
Comments
did you run uno-check successfully? |
the point is .. i dont wanna download maui or android sdk s which i will not use .... if i like uno platform... i might go ALL in... Download those big SDK Files,,, LATER..
cmd:: uno-check target skiawpf result:: it says all good.. but i cant run?????? build result:: F5 |
Dont know if this is even possible to not do, but could you update your visual studio at least (e.g. from its installer) and install the uno extension from the vs marketplace? this could maybe add the needed uno sdk, which seems to also be skipped |
Just read "winforms" somewhere in your text... |
@blackholeearth would you mind to maybe add comments to your issue here instead of changing its title every few hours/every day? What you are described later is not at all matching the title so maybe you should update this and also add the issue you are confronted with at latest state here as comment for possible uno team members to better& more quickly see whats up to this issue, so they can help you at best they can |
issue is unrelated to wpf ... ,, i still see that error , even if i create new uno App from Scratch... i think its about nuget dll version mismatch..... uno cant understand that... i just gave up this. wont use ... :(( trying to learn maui CS markup. from james monte-magno from youtube... ... can close this if you want... |
@blackholeearth It looks like you're having some sort of .NET version mismatch when building. We're currently upgrading our experience to make uno-check more specialized to the solution you're building, but could you try running this:
This will run only for the desktop and not install everything else. The "wpf" target you've been using has been deprecated in Uno 5.3, but our documentation is lagging a bit. Once you've run it, can you try to run the following in the folder that contains the csproj:
Then post the Thanks! |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace UnoApp1
{
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Never)]
ınternal static partial class __MarkupModuleInitializer
{
[global::System.Runtime.CompilerServices.ModuleInitializer]
public static void Initialize()
{
#if !IS_HOT_RELOAD_DISABLED && (DEBUG || IS_HOT_RELOAD_ENABLED)
var isHotReloadEnabled = true;
#else
var isHotReloadEnabled = false;
#endif
global::Uno.Extensions.Markup.Internals.ModuleConfiguration.Configure("UnoApp1", isHotReloadEnabled); }
}
}
photo |
This is a very interesting bug! I'm guessing that you're on a Turkish system, which may explain why there's the It should be easy to fix, we'll take a look and push a new update to our Uno 5.5. Thanks for the troubleshooting! |
so should i wait new vs2022 uno extension update?? or just wait it in the nuget packages?? |
It will be an uno.sdk package update. |
Current behavior
i created new project. Edit Proj File ->
disabled everyplatform except --desktop (which i assume is wpf) ..
i only want it to work on wpf ... its not running...
i see this error
question?
does this work for only wpf ,,,, witout installing maui workload..
currently i only installed desktop workload.
win11 latest sdk
edit
i have installed maui .. i am still getting error..
i think this is related to generators.. its generating buggy code..
Expected behavior
it should work..
How to reproduce it (as minimally and precisely as possible)
create a uno porject > press f5
Environment
windows 11
NuGet package version(s)
Affected platforms
Skia (WPF)
IDE
vs 2022 - v17.11.5
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: