Cant upgrade from 4.17.2 to 4.18.2 (inaccessible due to its protection level)

Make sure you delete intermediate, binaries and saved folders, regenerate the solution and try recompiling everything again.