You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to open MainWindowView that use a icon that is on Assets, so I get this error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentException: Relative uri /Assets/avalonia-logo.ico without base url
at Avalonia.Shared.PlatformSupport.AssetLoader.EnsureAbsolute(Uri uri, Uri baseUri)
at Avalonia.Shared.PlatformSupport.AssetLoader.GetAsset(Uri uri, Uri baseUri)
at Avalonia.Shared.PlatformSupport.AssetLoader.OpenAndGetAssembly(Uri uri, Uri baseUri)
at Avalonia.Shared.PlatformSupport.AssetLoader.Open(Uri uri, Uri baseUri)
at Avalonia.Markup.Xaml.Converters.IconTypeConverter.CreateIconFromPath(ITypeDescriptorContext context, String s)
at Avalonia.Markup.Xaml.Converters.IconTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at Builder_56f03198738d4c65a67ab50925796d51_.__AvaloniaXamlIlPopulate(IServiceProvider , MainWindow )
at Avalonia.Markup.Xaml.XamlIl.AvaloniaXamlIlRuntimeCompiler.<>c__DisplayClass11_0.<LoadOrPopulate>b__0(Object target)
at AvaloniaNETCoreMVVMApp.Views.MainWindow.!XamlIlPopulateTrampoline(MainWindow )
at AvaloniaNETCoreMVVMApp.Views.MainWindow.InitializeComponent() in C:\Users\mpro3\AvalonStudio\Projects\AvaloniaNETCoreMVVMApp\AvaloniaNETCoreMVVMApp\Views\MainWindow.xaml.cs:line 16
at AvaloniaNETCoreMVVMApp.Views.MainWindow..ctor() in C:\Users\mpro3\AvalonStudio\Projects\AvaloniaNETCoreMVVMApp\AvaloniaNETCoreMVVMApp\Views\MainWindow.xaml.cs:line 11
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor)
at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions)
at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
at System.Activator.CreateInstance(Type type)
at Avalonia.Markup.Xaml.XamlIl.AvaloniaXamlIlRuntimeCompiler.LoadOrPopulate(Type created, Object rootInstance)
at Avalonia.Markup.Xaml.XamlIl.AvaloniaXamlIlRuntimeCompiler.LoadSreCore(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode)
at Avalonia.Markup.Xaml.XamlIl.AvaloniaXamlIlRuntimeCompiler.LoadSre(String xaml, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode)
at Avalonia.Markup.Xaml.XamlIl.AvaloniaXamlIlRuntimeCompiler.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri, Boolean isDesignMode)
at Avalonia.Markup.Xaml.AvaloniaXamlLoader.Load(Stream stream, Assembly localAssembly, Object rootInstance, Uri uri)
at Avalonia.DesignerSupport.DesignWindowLoader.LoadDesignerWindow(String xaml, String assemblyPath, String xamlFileProjectPath)
at Avalonia.DesignerSupport.Remote.RemoteDesignerEntryPoint.<>c__DisplayClass17_0.<OnTransportMessage>b__0()
The same occurs for the use of images inside Assets (I think the editor is not using the project path but his own executable)
The text was updated successfully, but these errors were encountered:
Trying to open MainWindowView that use a icon that is on
Assets
, so I get this error:The same occurs for the use of images inside Assets (I think the editor is not using the project path but his own executable)
The text was updated successfully, but these errors were encountered: