I get an error when creating a new project with ASP.net Application (.NET Framework) format

THANH HUY ĐẶNG 0 Reputation points
2023-12-04T10:28:24.36+00:00

Ảnh chụp màn hình 2023-12-01 150004

This is my error message interface, I have checked the complete files in Packages but the device still says these versions cannot be found. If I uninstall and reinstall VS, I still have the same problem

Developer technologies Visual Studio Setup
Developer technologies Visual Studio Other
Developer technologies ASP.NET Other
Developer technologies C#
{count} votes

3 answers

Sort by: Most helpful
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2023-12-04T10:43:05.0366667+00:00
    1. What version of Visual Studio e.g. VS2022 edition 17.18.0
    2. Did you install Visual Studio to your C drive?

    The following seems strange and what to focus on: The packages failed to install from I:\WindowsApps\Packages. Packages should be installed from NuGet unless cached under your user profile.

    In regards to stuff like jQuery, look under the folder www/lib to see if there are libraries there.

    www

    Bottom line, if not using a preview edition of Visual Studio and Visual Studio is installed on your C drive, report this to Microsoft via the feedback/issue button, top right corner of Visual Studio.

    0 comments No comments

  2. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-12-06T17:20:21.1366667+00:00

    my guess you have nuget configured to read from a file share. visual studio has no effect on this configuration. see:

    https://learn.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior

    0 comments No comments

  3. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-12-13T12:55:22.51+00:00

    Hi @THANH HUY ĐẶNG, 

    Welcome to Microsoft Q&A!

    Are you using Package Source Mapping? You can remove all package source mappings by going to Tools > Options > NuGet Package Manager > Package Source Mapping > Remove All. If it is added incorrectly, please correct it. 

    You can create a new project and check that it is created properly. 

    If it doesn’t work, please tell us your VS version and more details. 

    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

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.