Can’t get AWS Elastic Beanstalk Command Line Tool to work on Windows 8. Get the following PowerShell error?

Add-Type : Cannot add type due to the following exception: Compiler executable
file csc.exe cannot be found.. Verify that version 3.5 of the Microsoft .NET
Framework is installed. On 64-bit versions of Windows, the WOW64 component is
also required.
At C:UsersAlbertDocumentsWindowsPowerShellModulesAWSDevToolsAWSDevTools.
ps1:315 char:1
+ Add-Type -Language CSharpVersion3 -TypeDefinition $awsSource
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-Type], InvalidOperationEx
ception
+ FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Power
Shell.Commands.AddTypeCommand

PATH set to %SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;%SYSTEMROOT%System32WindowsPowerShellv1.0;C:wampbinphpphp5.4.3;C:Program FilesJavajre7bin;C:Program Files (x86)Gitbin;C:Program Files (x86)Gitcmd;C:Program FilesAWS-ElasticBeanstalk-CLI-2.4.0ebwindows;C:WindowsMicrosoft.NETFramework64v4.0.30319;C:WindowsMicrosoft.NETFrameworkv4.0.30319

I’m following this tutorial online

Thanks

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

You need to install .NET 3.5 on your Windows 8 machine as it isn’t installed by default. Open up the Control Panel, select Programs then Program and Features. Select the “Turn Windows Features on or off” link on the left and select .NET Framework 3.5 and press OK.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x