question

UniversalCamera-5217 avatar image
0 Votes"
UniversalCamera-5217 asked UniversalCamera-5217 commented

VS2019 Community Solution compiles in Desktop Folder but not in Document Folder

I have a solution that compiles on the Desktop but if I move it to Document folder then it does not compile. If I move it back to Desktop Folder then it compiles. I have set the Security of Document folder to "Inherit from this object" with Full Control, but still no luck.

How can I accomplish compiling in Document Folder.

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JarvanZhang-MSFT avatar image
0 Votes"
JarvanZhang-MSFT answered UniversalCamera-5217 commented

Hello,​

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.

Best Regards,

Jarvan Zhang



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.


· 12
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you

I have deleted bin and obj. Still fails. I never had this problem untill recent upgrade to VS. Other solutions don't seem to have this problem. I also have other problems documented in other threads regarding upgrade to VS.

You are right it's path related. It seems to fail to initialize one of the Nuget package relating to Android reference.

Thank you.

0 Votes 0 ·

Thanks for sharing the solution.

0 Votes 0 ·

Thank you

So how do I solve this issue.

Thank you

0 Votes 0 ·
Show more comments