Welcome to our Microsoft Q&A platform!
I have a solution that compiles on the Desktop but if I move it to Document folder then it does not compile.
When the project is deployed, it will generate compilation information in the workspace directory. If you change the path of the project, the information will not match. To fix this, please empty the bin and obj folders of the shared project and each platform project after moving the project. Then re-open the sample to clean and build.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.