How should I enhance my technical skills

I am dotnet programmer and have 6.5 years of experience. I have switched multiple companies but unfortunately every time I am enrolled in Most older projects of companies where there are no learning opportunities. Now I am feeling like dump and no use of switching the company. I used to learn new things from internet but can't do it daily till there is no real time assignment/project.

Please someone guide me what should I do.