I am experiencing two big issues when I try to compile the "Testing" version of ORTS. The "Stable" version is compiled without problem, but VS2017 and VS2019 keep complaining about multiple problems if I try to compile the "Testing" source code.
Problem 1 : there is a lot of resx files which stop compilation because of "The mark of the Web" error (error MSB3821). I solved the issue by tracking each file reported by VS and checking the "Unblock" option. However, I have no idea why the resx files from the "Stable" source code are compiled properly, while the ones from "Testing" are leading to error MSB3821
Problem 2 : I get around 90 errors CS0234 and CS0246 related to "CodeDom", "ProviderOptions", "CSharpCodeProvider", "Fact" and "Fact Attribute". Compiler complains that type name or namespace can not be found. As far as I can see, "CodeDom" packet appears in NuGet, so I really wonder what can be the cause of these errors. Same thing for [Fact] in StfReader.cs.
For problem 2, I can not find any solution. The two problems appear both in VS2017 and VS2019.
Right now, I am not really blocked (I make changes on files from "Stable" for my experimentations) but if somebody knows what to do to solve the issue, I would be an happy man :sign_thanks:
(I am working on a new function for ORTS to allow physical I/Os to be used to control the train in place the keyboard. Right now, I am using a Arduino to emulate the keyboard from physical buttons and potentiometers, but results are not satisfying. My goal is to add a new module in ORTS to support this kind of systems in place of keyboard and RailDriver)
Benoit
This post has been edited by BenBo: 12 August 2021 - 10:36 PM