AvalonStudio icon indicating copy to clipboard operation
AvalonStudio copied to clipboard

Error CS1525 on Windows 10

Open mbpictures opened this issue 5 years ago • 2 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?

mbpictures avatar Aug 09 '20 18:08 mbpictures

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));

KlemenBlokar avatar Aug 14 '20 08:08 KlemenBlokar

Hello @mbpictures, the problem should no longer occur

najlot avatar Jun 08 '21 22:06 najlot