Xporter: & character in module name causes VS error on xsprj open

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Jamal
Posts: 315
Joined: Mon Jul 03, 2017 7:02 pm

Xporter: & character in module name causes VS error on xsprj open

Post by Jamal »

Hi Dev Team!

Visual Studio 2017 chokes on the & in VO module name like Gather & Scatter.prg and the project file could not be loaded. See the error below and the cause of the error.
I replaced the & to a - in the module name in VO IDE, then xported again and the project loaded fine in VS. So, I suggest doing so in the next update before xporting AEF.

Error:
C:XporterOutputLib2019Lib2019.xsproj : error : The project file could not be loaded. An error occurred while parsing EntityName. Line 163, position 27. C:XporterOutputLib2019Lib2019.xsproj

Code: Select all

<Compile Include="Gather & Scatter.prg">
  <SubType>Code</SubType>
</Compile>
BTW: using XSharp Bandol RC 1 - Public version

Jamal
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Xporter: & character in module name causes VS error on xsprj open

Post by Chris »

Thanks Jamal, will take care of this, for & and any other chars that are not allowed as filename characters. Logging this right now.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply