Powershell runtime - visual-studio-2010

I'm running VS 2010 under Windows 8. After installing NuGet, and running Package manager console I get the following message:
Error: The Package Manager Console requires PowerShell 2.0 runtime, which is not detected on this machine. Please install the PowerShell 2.0 from http://support.microsoft.com/kb/968929 and restart Visual Studio.
I know that PowerShell 3.0 is installed automatically along with Windows 8. Why would this error message pop up?

While the Windows Powershell 2.0 Engine feature is on by default in Windows 8, you need to turn on .Net 3.5 to actually use it, as mentioned here:
On Windows 8, the Windows PowerShell 2.0 Engine feature is turned on
by default. However, to use it, you need to turn on the option for
Microsoft .NET Framework 3.5, which it requires.
Follow the steps in the above link to get it working.

While PowerShell 3.0 on Windows 8 is installed by default, PowerShell 2.0 isn't. You can go into Programs and Features and select "Turn Windows Features On or Off" and from there you can select Windows PowerShell 2.0 for installation.

Related

how to configure the powershell version used by the package manager console in visual studio?

I'm on Windows 11 Pro and I'm using Visual Studio Enterprise 2022 Version 17.2.5.
The package manager console is using Powershell version 5 and I have version 7 installed on my computer, is is possible to change the version used (for version 7) ?
Thanks by advance.
I'm looking for the same thing.
There is an Options panel for the Terminal in VS2022, but I haven't been able to figure out what needs to be changed in there to support a different version of PowerShell.
As a stop-gap measure until you find the answer, there is a PowerShell Tools (trial) in the Visual Studio Marketplace (I'm not affiliated) that will add support for multiple versions of PowerShell into the Terminal Window along with other enhanced behaviors. At this point I don't know what the features difference is between the free/pro versions. Perhaps it will provide a hint for you on how to accomplish the conversion.
I'm looking forward to hearing your solution to the problem.

PowerShell v3 installing error

I would like to update my PowerShell from v2 to v3 but when installing, I get a message "Update not applicable to your computer". I tried to install the Windows6.1-KB2506143-x64 Windows Management Framework 3.0 - RC because I am practicing scripting but I can not use the scripts that I am learning in v2.
I do not have a virtual machine.
What is the problem?
Make sure you meet the system requirement of .net 4.0
Windows Management Framework 3.0 requires Microsoft .NET Framework 4.0"
The full release of PowerShell and the Windows Management Framework 3.0 has been released, I would suggest using it instead of the release candidate version you mentioned. You can find download links here: http://go.microsoft.com/fwlink/?LinkId=251995
The supported systems matrix is tighter than previous releases - you have to be running one of the following operating systems with the correct service pack level as well:
Windows 7 Service Pack 1 (32-bit & 64-bit)
Windows Server 2008 R2 Service Pack 1 (64-bit only, includes Server Core)
Windows Server 2008 Service Pack 2 (32-bit & 64-bit)
Also note, if you have any of the pre-release builds of v3 installed, you will have to remove them before installing the officially released version.

Windows 7 Credential Provider Sample

I'm trying to create a custom login for Windows 7 using Credential Provider. I use Windows 7 Professional, Windows SDK 7.0 and Visual Studio 2010 Ultimate. After i build the solution for SampleCredentialProvider from
the sample folder in SDK 7.0 my dll file is created, i copy the dll file into my Windows\System32 folder and i run the Register.reg but nothing is happening at login. According to the documentation in the login screen i should be able to see new users(Administrator and Guest). What have i done wrong? Is there a trick or something?
Thank you.
Are you on Windows 7 64-bit? If so, check to see whether you are building the Win32 version instead. Use the Build > Configuration Manager and make sure Active solution platform is x64, and the Active solution configuration is Release.
Windows SDK for Windows 7 have good Credential Provider samples

installing a program on w7, .NET version 2.0 required

I am tryng to install a program on windows 7 but when i run tha installer i get a error message sayng: Please install .NET Framework Version 2.0 before installing the tool.
As i know the .NET 2.0 should be installed with w7 allready. So what might be the problem? Maybe there is a way passbye the checking in the installation.. or extract it or do something.
Just for more info i think its a installshield setup launcher. I tried to extract it but its not possible, getting the .net 2.0 missing error. So what i managed to do is to extract the msi from exe. And now when i run the -msi with /passive option from cmd the it indeed bypasses the .net check and everything gets installed. Now the problem is that im getting all kind of errors in the application so looks like its still not installed correctly.
My first guess is the program you install doesn't detect .NET 2.0 correctly. As you correctly mentioned, .NET 2.0 is pre-installed on Windows 7. See this article for complete picture.
While .NET is part of Windows 7, it's an optional component, though - you can turn it off.
Open the "Windows features" dialogue (by pressing start and typing/selecting "Turn Windows features on or off"), and make sure the "Microsoft .NET framework 3.5.1" is indeed installed.
If you're seeing errors in your app then maybe there's a problem with your .NET installation, or you have a client profile or partial install. What's the application you're installing - is it a server application?

XBAP with FireFox and Windows 7

Firefox depends on an extension and plugin installed by the .NET 3.5 installer to run XBAPs. Unfortunately, in Windows 7 the .NET 3.5 runtime is already installed.
Does anyone know how to get a hold of these plugins/extensions so you can actually deploy XBAPs to FireFox on Windows 7?
Turn out, the answer is to copy the DLL of the extension out of another (presumably XP) machine that can run the .NET 3.5 runtime and deploy it.
I'm uncertain of the legality of this maneuver, but it works.

Resources