VitalElement / AvalonStudio

Cross platform IDE and Shell
GNU Lesser General Public License v3.0
1.63k stars 237 forks source link

Error CS1525 on Windows 10 #753

Open mbpictures opened 4 years ago

mbpictures commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

Hello @mbpictures, the problem should no longer occur