Category: Environment

‘Property Declarations’ can only be used in a .ts file (Visual Studio Code)

Visual Studio Code is fast lightweight code editor, but there’s one problem that totally bugs me.

This generates a bunch of malformed errors in syntax detection in the image shown below. If you are facing this issue in Visual Studio Code (v1.5.2), it is because of TS1.8.1. Here’s how to solve it: Install typescript into your project workspace

Read more →

Github Commands

Just keeping track of frequently used git commands:

Read more →

SOLN – 403 Forbidden on alias directory with Apache

Here’s to add an alias directory for Apache 2.4 in Windows. Remember to restart your Apache service. NOTE: If it doesn’t work plain-vanilla for you, try using a folder outside of C:\Users\username\.

Read more →

Disappearing Nested User Controls in VS2005

When trying to nest usercontrols, the child usercontrol sometimes disappears off the parent usercontrol. This is a commonly reported bug on the internet, and there’s a hotfix FIX:#842706 for vs2003 but not for vs2005, and its extremely annoying. What happens is that after placing the MyControl on your MyForm.designer.cs, it just disappears when you save MyParentControl in wysiwyg mode.

For me, the problem occurs because the Component Designer auto-validates & re-generates your MyParentControl.designer.cs code again. And, if your MyControl constructor requires initializing parameters, vs2005 will just delete that instantiation in MyParentControl.designer.cs. Read more →