Visual Studio saying null when try to run code - visual-studio

so basically i tried running code in visual studio but it says null and doesn't open command prompt and also says build failed (https://i.stack.imgur.com/Gi5GT.png)
how to run the code with no errors

If you have python downloaded, then set the python environment. Click on Add Environment. Then browse to in install location.
This will resolve your issue.

You should download python separately
Just go to https://www.python.org/downloads/ and get the latest python version, then restart VS
It should work, my friend had same problem and this solved it

Related

Couldn't install "packageName" and "anotherPackageName"

I am switching to Visual Studio 2022 for .Net core 3.1 but Installer can't install two packages.
I tried uninstall and reinstall too much but it cannot resolve this problem.
Errors:
Couldn't install Microsoft.VisualStudio.MinShell.Interop.Shared.Msi
Couldn't install Microsoft.AspNetCore.SharedFramework.6.0.6.0.1-servicing.21567.14.x64
How can I fix it? Can you help me?
Deep Note: I'm using Windows 10 home single language.
I fixed this problem, my message code is 1911 (you can see on logs).
If you have same problem you can follow this way:
Open Command prompt as administrator.
Type "sfc /scannow".
Reboot your computer when the process is complete.
Repair the Visual Studio installation.

Issue installing Microsoft Visual Studio Professional 2017 - "A product matching the following parameters cannot be found" during installation

This error presents itself immediately upon first launch of the program following the attempted install.
click to enlarge
I have ran %programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe -full and then re-ran the installer and the issue still presents itself.
I have tried the solutions here and they did not resolve my issue.
I also tried both of the answers here.
Any guidance here or things to try next will be very helpful!
Here are my log files from when I tried this in March. They're old, but re-running this installation still shows the exact same error.
https://pastebin.com/7D2JwGKF
for i in 12 do this.function
try this one
Open a command prompt with admin privileges
Run following command (this will clean up previous install cache. -full option is important) "%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe" -full
Restart the installer
A product matching the following parameters cannot be found during VS Installation

install White error using Nuget in Visual Studio 2015

I try to install white in VS 2015, using the command
Install-Package TestStack.White
But it always show the error message below:
I already tried following to fix the problem, but can not work:
1) uninstall the visual studio, and reinstall
2) remove the nuget and install again
How do I fix this problem?
Anyone has idea of how to fixing this problem?
You should use this command with a solution is open in Visual Studio 2015. Just as the error message mention that “Install-Package : The current environment doesn't have a solution open.”, If you do not have a project that is open, nuget does not know where to install the package.
You can check my test results below, the first installation without a solution open, then second installation with TestStackWhite solution open:
Hope this can help you.

Installation : Microsoft Visual C++ Redistributable stuck at 'Processing: Windows7_MSU_X64'

I'm trying to install the package of Microsoft Visual C++ Redistributable as my xampp apache module cannot be installed. The installation take a very long time to complete. What should I do? Is this common and is all I have to do is wait?
They are dead stuck with this setup progress as the indication
Processing: Windows7_MSU_X64
To install the Visual C++ 2015 Redistributable, you do not need to remove or uninstall the previous versions.
Refer to the error message, you can have a look at the installation log file and search ‘error’, if you can find the error message about Windows6.1-KB2999226-x64.msu, check this similar issue and have a try with the following to troubleshot this issue:
Download the update KB2999226 for your OS edition from here: Update for Universal C Runtime in Windows and before it, since your OS is windows 7, make sure SP1 is installed.
Manually install the KB2999226 as below:
Find the Windows6.1-KB2999226-x64.msu from the folder C:\ProgramData\Package Cache\xxxxx\packages\Patch\x64, which you can the path from the installation log
Create a folder named ‘XXXX’ in that and execute following commands from Admin command prompt
wusa.exe Windows6.1-KB2999226-x64.msu /extract:XXXX
DISM.exe /Online /Add-Package /PackagePath:XXXX\Windows6.1-KB2999226-x64.cab
vc_redist.x64.exe /repair
If you have no idea about the installation log, you can go to %temp% and order by ‘Date modified’, then you should find the installation log, or you can use http://aka.ms/vscollect to gather the installation logs. After using it, you will find vslogs.zip under %temp% folder then upload the file to https://onedrive.live.com/ and share the link here.
I first tried a clean boot and that didn't work so I opened up the task manager to see what other processes I might kill while it was stuck at "Processing: Windows7_MSU_X64" I killed the process titled "windows update standalone installer" and the install completed successfully the moment I killed that process.
Okay, I found the solution for my stucked installation. I updated my Windows manually using wsusoffline tools as my Windows can't seem to update with the usual ways.
Install wsusoffline and select all update for Windows (Windows 7 for me). Make sure to choose the folder to save your update.
Wait for the update to be downloaded
Install the update
Install the MV C++ Redistributable again
Done!
I finally can install my Xampp Apache module and access to the localhost.

How can I get Crystal Reports for VS2010 to install?

Every time I try to install (5 attempts) I get:
Error 2753. the File "agent.exe.6ED28686_7b19_420c_b255_5b6c1bd2c705" is not marked for installation
I've tried uninstalling, deleting the install folder after installing, clearing out temp files, restarting the machine and making sure I run the setup as administrator but I get this every time. I've even followed some advice about putting the installer files in c:\cr4vs2010 but to no avail.
The customer I'm developing for has Crystal skills so no other reporting engine will do.
EDIT
Found out about the FLEXnet transformer that fixes the above error. However, on completion of the install I get an error "The operation could not be completed" in a dialog box headed "Visual Studio".
I've fixed it I think. I now have Crystal Templates.
To fix.
Get the Flexera tool at
http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q207355&sliceId=
Run the tool as instructed and install the two msi's using it. I did the VS install first, then the 64-bit runtime.
After getting the "The operation could not be completed" error and installing both msi's, open up the Visual Studio Command prompt, ensuring you elect to Run as Administrator.
execute the command line devenv /installvstemplates. This takes a few minutes.
That fixed it for me.

Resources