Giter VIP home page Giter VIP logo

Comments (3)

vndrks avatar vndrks commented on July 25, 2024

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.Task1.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.

DoubleDBE avatar DoubleDBE commented on July 25, 2024

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.

Bruce9009 avatar Bruce9009 commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.