VitalElement / AvalonStudio

Cross platform IDE and Shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error CS1525 on Windows 10

mbpictures opened this issue · comments

Hello,

I followed your build instructions and I'm getting the following error while I'm building:

XmlParser.cs(311,31): error CS1525: Invalid expression "=". [A:\Projects\AvalonStudio\AvalonStudio\Avalonia.Ide\src\Avalonia.Ide.CompletionEngine\Avalonia.Ide.CompletionEngine.csproj]

The file "Avalonia.Ide.CompletionEngine.csproj" looks like this:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netstandard1.4</TargetFramework>
  </PropertyGroup>
  <PropertyGroup Condition="Exists('$(SolutionDir)Key.snk')">
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>$(SolutionDir)Key.snk</AssemblyOriginatorKeyFile>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
    <PackageReference Include="System.Memory" Version="4.5.4" />
  </ItemGroup>
</Project>

Do you have any idea how to fix this?

In file AvalonStudio/Avalonia.Ide/src/Avalonia.Ide.CompletionEngine/XmlParser.cs
On line 311, there are two = one after another. Delete one, and you are good to go.
var clonedStack = = new Stack<int>(new Stack<int>(_containingTagStart));
should be
var clonedStack = new Stack<int>(new Stack<int>(_containingTagStart));

Hello @mbpictures,
the problem should no longer occur