Comments (3)
I had the same issue. But my project compile is working very well.
I am trying to figure out what is wrong with my project settings, but I can't find the problem.
09:07:46.828 [Information] Started AvaloniaDesigner.CreateCompletionMetadataAsync() for "C:\Workspace\Samples\AvaloniaApplicationTest\AATestProject.Desktop\obj\Debug\net7.0\Avalonia\references"
09:07:46.838 [Information] 0 Starting previewer process for '"C:\Workspace\Samples\AvaloniaApplicationTest\AATestProject.Desktop\bin\Debug\net7.0\AATestProject.Desktop.dll"'
09:07:46.840 [Information] 24392 Started previewer process for '"C:\Workspace\Samples\AvaloniaApplicationTest\AATestProject.Desktop\bin\Debug\net7.0\AATestProject.Desktop.dll"'. Waiting for connection to be initialized.
09:07:46.897 [Information] 24392 Connection initialized
09:07:46.935 [Error] Error creating XAML completion metadata
System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[TSource](IEnumerable1 source) at Avalonia.Ide.CompletionEngine.MetadataConverter.ConvertMetadata(IMetadataReaderSession provider) at Avalonia.Ide.CompletionEngine.AssemblyMetadata.MetadataReader.GetForTargetAssembly(IAssemblyProvider assemblyProvider) at System.Threading.Tasks.Task
1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AvaloniaVS.Views.AvaloniaDesigner.d__64.MoveNext() in D:\a\1\s\AvaloniaVS.Shared\Views\AvaloniaDesigner.xaml.cs:line 609
from avalonia.
This is a known issue.
You can fix it by uninstalling the newest version of Avalonia for Visual Studio Extension
and installing the previous version of the extension.
Worked for me!
from avalonia.
I had the same issue but my Avalonia version was 11.0.10.
I guess the reason behind it is that there is no references
file in the folder obj/Debug/net8.0/Avalonia
. Since I had several local Avalonia projects, I just found an Avalonia project which worked well regarding autocomplete and then copied the references
file from it to the one which did not work well...It worked for me.
from avalonia.
Related Issues (20)
- VirtualizingStackPanel in a ListBox keep the DataContext on the ListBoxItem after the ClearItemContainer
- Unable to bind DataGridTemplateColumn.SortMemberPath to an instance of an array
- System.InvalidOperationException: 'Infinite layout loop detected'
- Custom Localisation MarkupExtension broken by 11.1.0
- NumericUpDown bugs
- Avalonia.Android update 11.1.0 error HOT 4
- Avalonia.Android update 11.1.0 System.IO.File.Create error HOT 4
- Avalonia 11.1: TemplateBinding does not support OneTime or OneWayToSource bindings. HOT 1
- avalonia.js 404 HOT 3
- Font in WOFF isn't recognized
- EntryPointNotFoundException when Window.ShowDialog() called on Windows 1511 HOT 2
- Invoking OnPropertyChanged without changing the object property doesn't invoke Converter in MultiBinding HOT 2
- Animations declared in code behind don't work
- We can no longer control animations in 11.X.X
- Create one Button ,and Remove one Button ,Avalonia.Rendering.Composition.Server.ServerCompositionSimplePen leak HOT 1
- DataGrid数据源和滚动条在同时使用时有崩溃风险
- Window position is incorrect when the SystemDecorations property is set to BorderOnly
- Add settings to customize the label of buttons of native file dialogs on linux or make them localizable
- TextBlock render wrong text in some situations.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avalonia.