Solve Unable to remove directory bin in visual studio

Hossam 45 Reputation points
2023-02-28T08:21:46.4733333+00:00

Hi

This problem is unsolvable problem as I guess, error message " Unable to remove directory bin in visual studio 2022"

regards

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,147 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 29,096 Reputation points Microsoft Vendor
    2023-03-01T02:36:59.6766667+00:00

    Hi @Hossam, 

    Welcome to Microsoft Q&A! 

    Could you tell me how you encountered this error? 

    You can close all running VS instances and try to manually delete the bin folder in your project folder. 

    If it doesn’t work, please share us more detailed information. 

    Sincerely,

    Anna


    If the answer is the right solution, 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.


  2. Hossam 45 Reputation points
    2023-03-02T06:09:24.17+00:00

    @Anna Xiu-MSFT Hi anna, I followed the following steps and the problem was solved:

    1- delete the /app.publish/ folder

    2- clean and rebuild project.

    Thanks for your support


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.