Visual Studio: The Operation could not be completed. The parameter is incorrect
Dan (the original poster) mentioned in a comment above that running Visual Stuio as admin solved this for him.
This answer helped me: https://stackoverflow.com/a/9130257/6524796 It says to try deleting the .suo file. To find this file open the directory for your solution in File Explorer, make sure you can see "Hidden Items", and search for ".suo". Select and delete the one for the solution giving you issues building. Close Visual Studio and reopen solution.