Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error CS1525 on Windows 10 #753

Open
mbpictures opened this issue Aug 9, 2020 · 2 comments
Open

Error CS1525 on Windows 10 #753

mbpictures opened this issue Aug 9, 2020 · 2 comments

Comments

@mbpictures
Copy link

mbpictures commented Aug 9, 2020

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?

@KlemenBlokar
Copy link

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

@najlot
Copy link
Contributor

najlot commented Jun 8, 2021

Hello @mbpictures,
the problem should no longer occur

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants