проект с шаблоном asp.net создаётся абсолютно пустой

_FinTheHuman _FinTheHuman 0 Reputation points
2024-01-25T13:42:59.6333333+00:00

Здравствуйте, я пытаюсь создать проект в Visual Studio 2022 С использованием . Но проект создаётся абсолютно пустой. Причём такое происходит не только с проектами asp.net. 1

2

3

4

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,156 Reputation points Microsoft External Staff
    2024-01-26T03:00:15.84+00:00

    Hi @_FinTheHuman _FinTheHuman, 

    Welcome to Microsoft Q&A! 

    Please search "Edit the system environment variables" in Windows Search box > Open it > Environment Variables… > System variables > select Path > Edit… > check if there are two paths to dotnet:

    C:\Program Files\dotnet

    C:\Porgram Files (x86)\dotnet 

    If you can find them, please click on the Move up button to move the entry C:\Program Files\dotnet before the x86 one. 

    Or delete this one: C:\Porgram Files (x86)\dotnet.  

    Then, re-launch the VS2022 and create a new project to check it again.  

    Note:

    Currently in Microsoft Q&A we only support English, please edit your question into English. Then we can help to solve your issues, thanks for your understanding.

    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

  2. _FinTheHuman _FinTheHuman 0 Reputation points
    2024-01-26T11:14:14.96+00:00

    I don't have the path to dotnet in my environment variables at all. Neither the first nor the second C:\Program Files\dotnet C:\Porgram Files (x86)\dotnet1

    At the same time, I have dotnet installed at both the first and second addresses. Maybe I should register the path to one of these environment variables. If so, how?
    What should the variable name be?


Your answer

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