When I try to create a new app from visual studio 2022 saved to my D: drive it won't let me i get this error as shown from screenshot

Luke Ferguson 36 Reputation points
2023-12-20T04:40:35.2066667+00:00

When I try to create a new app from visual studio 2022 saved to my D: drive it won't let me I get this error as shown from screenshot

Screenshot (51)

Developer technologies | Visual Studio | Other
{count} votes

5 answers

Sort by: Most helpful
  1. MotoX80 36,401 Reputation points
    2023-12-20T14:01:11.3033333+00:00

    You first need to ensure that the account that you are running VS with has write access to the folder.

    Here I added an E drive to my VM and granted everyone full control.

    User's image

    I recommend that you create a home folder to store all of your VS projects. Use the Windows explorer to create a D:\MyProjects folder. Check the security permissions and verify that your account has full control.

    If you are building your first application, you will probably not have multiple projects within a solution. If that's the case, the check the "Place solution and project in the same directory". That way everything should be places in D:\MyProjects\App1.

    1 person found this answer helpful.

  2. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-12-20T09:56:23.9433333+00:00

    Hi @Luke Ferguson

    Welcome to Microsoft Q&A! 

    Are you using the latest version of VS2022? If no, please upgrade your VS2022 and try again. 

    From the error message, it may be related to insufficient permission. You can try the following:

    1. Check the permission to D: drive and ensure you have sufficient permission like Full Control to it.
    2. Create a new Blank App (Universal Windows) project and change the project's location to C: drive.
    3. If you have any anti-virus software or security management software, please temporarily disable it.
    4. Launch your Visual Studio 2022 in Safe Mode (run devenv /SafeMode in Developer Command Prompt for VS 2022), then, check that the project is created properly.
    5. Open the Visual Studio Installer > More > Repair the VS2022.
    6. Run the VS as administrator.
    7. You can check if the error only happens in Blank App (Universal Windows) project.

    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.

     

    0 comments No comments

  3. Luke Ferguson 36 Reputation points
    2023-12-21T10:19:52.0866667+00:00

    Where do i find Check the permission to D: drive:

    0 comments No comments

  4. Luke Ferguson 36 Reputation points
    2023-12-21T10:35:06.18+00:00

    D:\MyProjects\App1. should there be a.Dote at the end of the line of naming or renaming the folder?

    0 comments No comments

  5. Luke Ferguson 36 Reputation points
    2023-12-21T10:45:59.6566667+00:00

    What should my visual studio folder be called for D: drive.


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.