Skip to content
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

ApplicationLoader not recognized #3

Open
jsimunac01 opened this issue Dec 24, 2022 · 3 comments
Open

ApplicationLoader not recognized #3

jsimunac01 opened this issue Dec 24, 2022 · 3 comments

Comments

@jsimunac01
Copy link

I went through the manual steps in the Quick Steps guide. I get an error on App.axaml. "Unable to resolve type ApplicationLoader from namespace https://github.com/mrphil2105/MvvmElegance" Have I missed a step somewhere? Any help is appreciated. I've pasted the App.axaml below - BSI is the program name. Thanks!

<Application x:Class="BSI.App" xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:e="https://github.com/mrphil2105/MvvmElegance" xmlns:local="using:BSI">
`<Application.Resources>
<e:ApplicationLoader>
<e:ApplicationLoader.Bootstrapper>
<local:Bootstrapper />
</e:ApplicationLoader.Bootstrapper>
</e:ApplicationLoader>
</Application.Resources>

<Application.Styles>

</Application.Styles>
`

@mrphil2105
Copy link
Owner

mrphil2105 commented Dec 24, 2022

Hey, thanks for taking interest in my framework!

I think I had a similar issue when testing with Avalonia version 11. Are you using version 11? I have yet to update the library to support version 11. I will look into it when I have more time (I am currently busy with my exams at university).

Try downgrading to version 10 if you're on 11.

Let me know if this helps.

@jsimunac01
Copy link
Author

I'm on 10.18 of Avalonia, using Visual Studio 2022 (17.4,3).

@mrphil2105
Copy link
Owner

What is your project structure? And what packages did you install and in what projects? Your ViewModels project should have MvvmElegance installed from NuGet. The Views project should have MvvmElegance.Avalonia installed, and optionally MvvmElegance.Avalonia.Autofac if you use Autofac. If you don't have a split projects you just install all these packages in the same project.

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants