Posts

Showing posts with the label Windows 10

Donate

Visual Studio Error - This Emulator Does Not Have Hardware Acceleration Enabled In Xamarin And .NET MAUI

Image
Good day! After switching laptops and running some of my Xamarin Forms projects and simple .NET Maui applications, I encountered this error This Emulator Does Not Have Hardware Acceleration. Since this is a new laptop, I need to setup and enable the firmware virtualization and Hyper-V for Windows 10 operating system. First is I need to open the BIOS interface of the laptop and look for the Virtualization Technology under Security tab. By default, it's disabled Next is to enable it and then save changes. After modifying the BIOS settings for virtualization, you need to enable Hyper-V and Windows Hypervisor Platform checkboxes thru the Turn Windows Features On or Off application. Then restart your laptop or machine. Once I made those changes, I was able to run my applications using the Android emulator in Visual Studio. Cheers!

WPF Menu Item Drop Alignment Appears To The Left Instead Of Right In Windows 10

Image
Hello, I was assigned a new laptop and when I ran several of my WPF applications into this machine, I suddenly noticed that the menu items drop alignment appears to the left instead of right. Since this is a OS setting, we need to change some values in the registry. Open registry editor and navigate to this registry path -> Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows . Change the MenuDropAlignment value from 1 to 0 similar to the picture below. Once done changing the value, make sure to reboot your machine for this changes to take effect. After that, your menu item drop alignment changes from left to right. Output Cheers!

TypeScript Bug Or Error: tsc.ps1 cannot be loaded. tsc.ps1 is not digitally signed

Image
Hello, Another error that I encountered when running TypeScript programs is "tsc : File C:\Users\gregorye\AppData\Roaming\npm\tsc.ps1 cannot be loaded. The file C:\Users\gregorye\AppData\Roaming\npm\tsc.ps1 is not digitally signed. You cannot run this script on the current system." . The full description of the bug is presented below. tsc : File C:\Users\gregorye\AppData\Roaming\npm\tsc.ps1 cannot be loaded. The file C:\Users\gregorye\AppData\Roaming\npm\tsc.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1 + tsc -p d:\Greg\Typescript\Ch02\tsconfig.json + ~~~ + CategoryInfo : SecurityError: (:) [], PSSecurityException + FullyQualifiedErrorId : UnauthorizedAccess The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command tsc -...

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.

Image
Good Day Gents! During this free-time I started setting up Node.js on my machine as part of my career goals which is learning new frameworks in preparation for new projects. So the first thing I did was to install TypeScript language to get myself familiar with Angular 2+. After I finished setting up TypeScript, I then created a simple HelloWorld program and ran the application through Visual Studio Code using the "tsc: build - tsconfig.json" command. I encountered an error which says "The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." Below are the details on my machine and packages installed:   - Operating System: Windows 10 Pro   - Node.js: 14.16.0   - npm version: 6.14.11   - Typescript: 4.2.3 (using command: "npm install -g typescript") After doing some research and reading th...

Donate