Unable to install visaul studio properly and toolchains required for unity - visual-studio

After a fresh windows 11 install I haven't been able to get visual studio and building a game in unity to work.
Visual Studio 2019:
After I install visual studio with the correct modules for unity. it shows up in the installer as "installed" but when I turn of or restart my computer it does not show under the Installed section. Also when I open visual studio it gives a "Failed to load common IDE package" error. Referring to a file in: C:\Users"user"\AppData\Roaming\Microsoft\VisualStudio\16.0_971410d4.
I have tried:
Repairing visual studio.
Repairing visual studio and deleting the before mentioned directory.
Complete reinstall of the installer and visual studio.
Unity:
When I try to build my game I get this error: error:
Could not set up a toolchain for Architecture x64. Make sure you have the right build tools installed for il2cpp builds. Details:
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ().
I have tried:
Reinstalling the current engine version (Unity 2021.2.13f).
Upgrading the engine version to (Unity 2021.2.14f).
Reinstall Unity 2021.2.14f.
I think these two problems are tied together but I'm not sure.
~ Rasl2002

I fixed my problem.
https://developercommunity.visualstudio.com/t/access-denied-for-visual-studio-common-ide-package/962361
this link leads to the solution. you need to run:
icacls "C:\ProgramData\Microsoft" /reset /T /C
in an admin terminal.

Related

Flutter windows build: Nuget is not installed

I uninstalled Visual Studio 2019 and installed it as 2022.
I reinstalled Flutter.
When building Flutter desktop, the following problem is repeated.
If I run it in another project, it works without any problem.
Launching lib\main.dart on Windows in debug mode...
Building Windows application...
Nuget is not installed.
Nuget.exe not found, trying to download or use cached version.
1- make sure you have installed Visual Studio
2-
NuGet Package Manager (PM UI and PM Console) is included with Visual
Studio. The latest NuGet releases are delivered as part of Visual
Studio updates.
HOWEVER: nuget.exe itself is not included with any version of Visual Studio.
so you need to download the latest NuGet Windows x86 Commandline from https://www.nuget.org/downloads
3- put it inside the flutter sdk folder or any folder you like
4- copy the folder path
5- in windows serach, search for env so you can put it as system variables. edit path with a new line and past the folder path
6- restart android studio
7- congrats
there's a video on youtube for the exact steps:
https://www.youtube.com/watch?v=J5b5sj6mG8M
Although I don't know why it would work without this error message on the same machine, I recently ran into this issue as well. The way I fixed it was to download the nuget executable and add it to my path.

Where to get Android Studio Artic Fox uninstall.exe file?

Currently, I've had some issues with android studio plugins not working correctly so I tried to uninstall and reinstall android studio but it failed as the uninstall.exe is missing. I've directly located and uninstalled most of the files for android studio and reinstalled it but the same thing occurred where no uninstall.exe was on the directory. I tried to use the new installer to see if it would give me the option to uninstall the pre-existing version but it didn't work. Also, I tried to download the zip contain the files of android studio instead of the recommended installer but there was no uninstall.exe.

How do I fix visual studio installer (2019 community) is empty?

I downloaded the visual studio 2019 community installer and ran it. It ran successfully but instead of opening the visual studio installer when it completed it just closed. I located the visual studio installer 'setup.exe' (under C:/Program Files (x86)/Microsoft Visual Studio/Installer) and ran it. It opens the installer but instead of allowing me to select tools to install it just has 2 empty tabs labeled 'installed' and 'available' and a side bar that shows developer news.
I don't have any antivirus or firewall running. I uninstalled every version of visual studio I had in case the installer was assuming I already have VS2019. I updated windows and my drivers.
EDIT:
I had a hunch that I might find something out by using 'setup -h' in command prompt. It appears that it may be possible to install vs2019 by using the right tags.
I guessed
setup install --productid Microsoft.VisualStudio.Product.Community --channelid VisualStudio.15.Release
might work but the installer says "
A product matching the following parameters cannot be found:
channelId: VisualStudio.15.Release
productId: Microsoft.VisualStudio.Product.Community
"
If you know what the right tags are that might be an adequate solution.
Please try to reinstall it:
1) run cmd as Administrator and then type:
"%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe" -full
2) restart vs_installer again.

Visual Studio 2017 does not detect Windows Driver Kit installation

I already have Visual Studio 2017 professional with Desktop Development with C++ installed.
I am trying to build the Virtual Serial project found here:
https://github.com/Microsoft/Windows-driver-samples/tree/master/serial/VirtualSerial
When I try to build it, I get the error:
Severity Code Description Project File Line Suppression State
Error MSB8020 The build tools for WindowsUserModeDriver10.0 (Platform Toolset = 'WindowsUserModeDriver10.0') cannot be found. To build using the WindowsUserModeDriver10.0 build tools, please install WindowsUserModeDriver10.0 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". virtualserial C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets
I cannot find any instructions on installation aside from this website.
https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
I downloaded the WDK for Windows 10, version 1803.
I closed VS2017 and ran the installer.
When running the installer I got the message in the screenshot below, I clicked Next to continue installing
After running the installer, the project still does not build, with the same error: WindowsUserModeDriver10.0 is not installed.
What am I missing during installation? Is this the correct installer for regular VS2017 (not community edition)?
Thanks,
I know this is old, but I recently fell into this rabbit hole. What worked for me was uninstalling all of the WDKs, rebooting, and installing WDK 1803 (the wdksetup.exe program downloaded from Other WDK downloads shows version 10.0.17134.1 in properties). That WDK installer specifically calls out VS 2017 when you add the Visual Studio integration at the end of the install process.
In my situation, I installed vs2022 with SDK 19041 and WDK 19041.
After some testing, I realized that VS2022 only supports WDK 22621(so on this date). So I installed WDK 22621 and SDK 22621, and problem solved.
If you still can't find Kernel Driver Build option, try run this file C:\Program Files (x86)\Windows Kits\10\Vsix\VS2022\10.0.22621.0\WDK.vsix(WDK 19041 only has VS2019). It's a Visual Studio's extension.
According to this: https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-wdk-on-visual-studio-2017-community/fdbd2b44-e57a-4849-903d-04001205a764
WDK is not currently supported by visual studio 2017.
This is ridiculous

Can't open the VSVim project

I have a clean install of Visual Studio 2010 with C# and F# installed and I am getting the following error when I try to open the solution cloned from github.
D:\projects\VsVim\VsVim\VsVim.csproj :
error : The project file
'D:\projects\VsVim\VsVim\VsVim.csproj'
cannot be opened.
The project type is not supported by
this installation.
Is there a way to get more information about what exactly I am missing so that I can install the components?
You probably need to install the Visual Studio 2010 SDK.
Noah is correct that the most likely problem is you need to install the Visual Studio SDK. The full steps to getting VsVim to open and compile are the following (taken from the README.txt file in the enlistment).
Install the Visual Studio SDK
Run the script Populate-References.ps1 from the enlistment root directory
Open the Solution.

Resources