I had some weird problems on my local environment. I have multiple environments with the same project.
I just did a clean up and delete the files under the following folders.
%USERPROFILE%\AppData\Local\Temp\Microsoft Dynamics AX\
%USERPROFILE%\AppData\Local\Microsoft\Dynamics AX\