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

Not run application avalonia.mvvm #22

Closed
darksait88 opened this issue May 20, 2019 · 6 comments
Closed

Not run application avalonia.mvvm #22

darksait88 opened this issue May 20, 2019 · 6 comments

Comments

@darksait88
Copy link

darksait88 commented May 20, 2019

Description

I get errors when trying to run an application created from the Avalonia template.

Environment
OS: Ubuntu 18.04.02
.NET Core: 2.2.202
VS Code

Steps

  1. Install avalonia-dotnet-templates
  2. Create a new project: dotnet new avalonia.mvvm
  3. sudo dotnet run --framework netcoreapp2.1

When I'm running dotnet run I get these errors:

Unhandled Exception: System.IO.FileNotFoundException: Unable to find view for ak_window.App
   at Avalonia.Markup.Xaml.AvaloniaXamlLoader.Load(Type type, Object rootInstance) in D:\a\1\s\src\Markup\Avalonia.Markup.Xaml\AvaloniaXamlLoader.cs:line 90
   at Avalonia.Markup.Xaml.AvaloniaXamlLoader.Load(Object obj) in D:\a\1\s\src\Markup\Avalonia.Markup.Xaml\AvaloniaXamlLoader.cs:line 45
   at ak_window.App.Initialize() in /home/darksait88/Документы/ak_window/App.xaml.cs:line 10
   at Avalonia.Controls.AppBuilderBase`1.Setup() in D:\a\1\s\src\Avalonia.Controls\AppBuilderBase.cs:line 302
   at Avalonia.Controls.AppBuilderBase`1.Start(AppMainDelegate main, String[] args) in D:\a\1\s\src\Avalonia.Controls\AppBuilderBase.cs:line 153
   at ak_window.Program.Main(String[] args) in /home/darksait88/Документы/ak_window/Program.cs:line 12
@kekekeks
Copy link
Member

Unable to reproduce here with:

$ cat /etc/lsb-release |grep DES
DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS"

$ dotnet --version
2.2.105

Please, try removing bin and obj and running without sudo

@darksait88
Copy link
Author

The error did not disappear
I made a mistake in the specified version: .NET Core: 2.2.204

@danwalmsley
Copy link
Member

@darksait88 try removing the _ from you project name, does that help?

@kekekeks
Copy link
Member

kekekeks commented May 20, 2019

I think cyrillic characters in path (Документы) are the problem here. For some reason our MSBuild task is unable to get relative paths and generates garbage.

@kekekeks
Copy link
Member

Moving the issue here AvaloniaUI/Avalonia#2555

@darksait88
Copy link
Author

I think cyrillic characters in path (Документы) are the problem here. For some reason our MSBuild task is unable to get relative paths and generates garbage.

Thanks, it helped

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

3 participants