Share via

Visual Studio 2022 installation Error

Anonymous
2021-11-24T16:16:58+00:00

Hello All,

I tried installing Visual Studio 2022 on my Windows 10 (64-bit) company computer (I currently run VS 2019) but after installation I get the error: "Couldn't install Microsoft.NetCore.HostPath". I need VS 2022 since our solution has been upgraded to .NET 6.0.

Does anyone have any solutions for this particular error ?

Thanks,

Anthony

Windows for home | Windows 10 | Install and upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2021-11-24T17:40:02+00:00

    @DaveM121 Ok will do Dave and thanks!

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. DaveM121 891.1K Reputation points Independent Advisor
    2021-11-24T17:17:43+00:00

    Hi Anthony

    I am Dave, I will help you with this.

    I apologize, Community is just a consumer forum, due to the scope of your question (Visual Studio 2022) can you please post this question to our sister forum on Microsoft Q&A in the Visual Studio section (linked below)

    Over there you will have access to a host of Developers and Visual Studio experts and will get a knowledgeable and quick answer to this question

    https://docs.microsoft.com/en-us/answers/produc...

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2021-12-20T07:19:47+00:00

    I had same problem after install VS 2022. The cause of problem was antivirus program can't trust dotnet-host-path.ps1 script for me.

    I opened my antivirups program and click trust this project button in blocked processes page.

    It's fixed my problem. I hope it will be helpfull for you too.

    By the way this is the full path of that script.

    C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.NetCore.HostPath,version=17.0.32002.160,language=neutral,machinearch=x64\dotnet-host-path.ps1

    Was this answer helpful?

    0 comments No comments