C
C#10mo ago
Mekasu0124

✅ Can't figure out two error messages - Avalonia

Splash.axaml: https://pastebin.com/2BJjnKqa Error:
Unable to resolve type SplashViewModel from namespace using:SplashScreen.ViewModels Line 19, position 4.
Unable to resolve type SplashViewModel from namespace using:SplashScreen.ViewModels Line 19, position 4.
I originally had the SplashView.axaml file in the Views folder and the SplashViewModel.cs in the ViewModels folder of my project. I have tried moving the SplashViewModel.cs file from the ViewModels folder. Didn't work. UpdateAvailableView.axaml: https://pastebin.com/5bePbKzn Error:
Unable to find public constructor for type GradeBook:GradeBook.ViewModels.UpdateAvailableViewModel() Line 12, position 4
Unable to find public constructor for type GradeBook:GradeBook.ViewModels.UpdateAvailableViewModel() Line 12, position 4
and here, I have tried searching the problem on google -> led to stack overflow but the comment said that the xml template requires parameterless public constructors, however, I'm using some code from other C# projects using the Avalonia framework and they pass values in through the public contructor
1 Reply
Mekasu0124
Mekasu0124OP10mo ago
nvm. restarting the ide fixed it apparently
Want results from more Discord servers?
Add your server