Page 1 of 1

[FIXED] Weird 19.2 build error

Posted: Mon Jul 22, 2019 4:58 pm
by wjstarck
I keep getting the following error when I try to build my plugin solution in VS 2019

Code: Select all

3>------ Rebuild All started: Project: Anesthesia, Configuration: Release x86 ------
3>CSC : error CS0006: Metadata file '..\opendental19.1\ODR\bin\Debug\ODR.dll' could not be found
I don't know why it's looking for ODR.dll in the previous version's bin folder but I suspect that's not really the error.

Any ideas?

Re: [FIXED] Weird 19.2 build error

Posted: Mon Jul 22, 2019 5:28 pm
by wjstarck
OK.

Seems like VS 2019 munges the .csproj file when it is renamed from a prior version (e.g. after branching). It doesn't change the paths of all the references to the new solution name paths. Probably a bug in VS. So I had to edit the anesthesia.csproj file manually.