Skip to content

Commit

Permalink
setup vs in restricted env
Browse files Browse the repository at this point in the history
  • Loading branch information
jackliusr committed Jul 23, 2024
1 parent 4401bc0 commit 8b6fdee
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions content/posts/2024/07/vs-setup-in-constraint-env.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Setup visual studio 2022 in restricted environment
date: 2024-07-23T10:10:00+08:00
categories:
- tech
tags:
- visual studio
---

. uninstall vs and vsinstaller
. restart machine
. download below two vs cpp redist and install first before install visual studio
https://aka.ms/vs/17/release/vc_redist.x86.exe
https://aka.ms/vs/17/release/vc_redist.x64.exe

. download the latest version of VisualStudioSetup.exe from https://c2rsetup.officeapps.live.com/c2r/downloadVS.aspx?sku=professional&channel=Release&version=VS2022&source=VSLandingPage&cid=2030:a4e034a4e73f4c1cb41366109a953e4d
. choose download all and install when installing visual studio after choosing components to install
. Clear Visual Studio Component Cache
.. Close Visual Studio (ensure devenv.exe is not present in the Task Manager)
.. Delete the %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache directory
.. Restart Visual Studio.

0 comments on commit 8b6fdee

Please sign in to comment.