Welcome to Q&A forum ~
But your issue is related to Visual Studio, the tag "office-for-mac-itpro" focuses on general issues of Office for Mac.
To help you better, I would like to suggest you post a new thread on Microsoft Visual Studio Developer Community.
It is also recommended to share the complete error message in you post, so that they can better analyze the issue.
Thanks for your understandings.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.