Created
March 20, 2017 21:36
-
-
Save dhcgn/7a4414b5c499f9017da8821aefce338f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/a/35089747 | |
# Solution 2: Delete installation cache | |
gci 'c:/programdata/package cache/' -Include *.msi,*.cab -Recurse | Remove-Item -Force | |
# Solution 3: Delete temporary file data stored on your computer | |
Resolve-Path "C:\Users\*\AppData\Local\Microsoft\VSCommon" | Remove-Item -Recurse -Force | |
Resolve-Path "C:\Users\*\AppData\Local\Microsoft\VisualStudio" | Remove-Item -Recurse -Force | |
Resolve-Path "C:\Users\*\AppData\Local\Microsoft\Blend" | Remove-Item -Recurse -Force | |
Resolve-Path "C:\Users\*\AppData\Local\Microsoft\VsGraphics" | Remove-Item -Recurse -Force | |
Resolve-Path "C:\Users\*\AppData\Local\Microsoft\ApplicationInsights" | Remove-Item -Recurse -Force | |
Resolve-Path "C:\Users\*\AppData\Local\Microsoft\vshub" | Remove-Item -Recurse -Force | |
Resolve-Path "C:\Users\*\AppData\Local\Microsoft\Team Foundation" | Remove-Item -Recurse -Force | |
Resolve-Path "C:\Users\*\AppData\Local\Microsoft\Web Platform Installer" | Remove-Item -Recurse -Force | |
Resolve-Path "C:\Users\*\AppData\Local\Microsoft\MsBuild" | Remove-Item -Recurse -Force | |
# Solution 4: Enable all four evaluations of Symbolic links | |
# fsutil behavior set SymlinkEvaluation L2L:1 R2R:1 L2R:1 R2L:1 | |
# Solution 5: Repair the Redistributables | |
# Solution 6: Check to see if x86 and x64 sizes are the same | |
$first = (Get-Item C:\Windows\SysWOW64\vcruntime140.dll).Length | |
$second = (Get-Item C:\Windows\System32\vcruntime140.dll).Length | |
if($first -eq $second) | |
{ | |
Write-Host "Should be different size" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment