
Im having a problem with the antlr sytax highlighting. When I link my lexer and parser into the project, and then I reference the antlr.runtime.dll that I am using, and then I compile the app, with the actipro syntax editor, i get this error:
Could not load file or assembly 'Antlr3.Runtime, Version=3.1.3.42154, Culture=neutral, PublicKeyToken=3a9cab8f8d22bfb7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Antlr3.Runtime, Version=3.1.3.42154, Culture=neutral, PublicKeyToken=3a9cab8f8d22bfb7"}
For one reason or another, the syntax editor is expecting a different version of the runtime. So I search my program files for this version. This version appears to exist in C:\Users\...\Documents\Actipro Software\WPFStudio\v11.1.0545\AntlrIntegration\ReferencedAssemblies
Ok, so I copy this version of the runtime to my project and build. but then my lexer and parser do not build. This version of the runtime is missing a number of classes. First error that I get: the type or namespace GrammarRuleAttribute cannot be found.....
This is apparently a problem noticed before :
http://www.antlr.org/wiki/display/ANTLR3/Antlr+3+CSharp+Target
(see last two entries .... ) The classes are in the source, but not in some of the distributed dll's. My problem is, for whatever reason, I cannot use my copy of the runtime, and your copy is missing these classes. How do I fix this?
-brent
Could not load file or assembly 'Antlr3.Runtime, Version=3.1.3.42154, Culture=neutral, PublicKeyToken=3a9cab8f8d22bfb7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Antlr3.Runtime, Version=3.1.3.42154, Culture=neutral, PublicKeyToken=3a9cab8f8d22bfb7"}
For one reason or another, the syntax editor is expecting a different version of the runtime. So I search my program files for this version. This version appears to exist in C:\Users\...\Documents\Actipro Software\WPFStudio\v11.1.0545\AntlrIntegration\ReferencedAssemblies
Ok, so I copy this version of the runtime to my project and build. but then my lexer and parser do not build. This version of the runtime is missing a number of classes. First error that I get: the type or namespace GrammarRuleAttribute cannot be found.....
This is apparently a problem noticed before :
http://www.antlr.org/wiki/display/ANTLR3/Antlr+3+CSharp+Target
(see last two entries .... ) The classes are in the source, but not in some of the distributed dll's. My problem is, for whatever reason, I cannot use my copy of the runtime, and your copy is missing these classes. How do I fix this?
-brent