Thursday, July 25, 2013

Visual Studio RavenDB DataSource Explorer

Helping other developers being more productive at their daily work, is something that I enjoy. The last idea I got was trying to extend Visual Studio, by making a RavebDB DataSource Explorer prototype. This was fairly easy thanks to the documentation on msdn http://msdn.microsoft.com/en-us/library/bb165051(v=vs.100).aspx

It is still just a prototype, it needs validation and code cleaning. For now I can register new data sources by clicking on 

and the below dialog opens to create the datasource.


When RavenDB explorer is open I can right click on a datasource and connect to the server, or remove it from the explorer window.












When I have connected to the server it list all the databases




























When I double click on an item it opens an internet explorer window and goes directly to that document in the RavenDB Management Tool.
I have a bunch of ideas to this project, basic management options like, create new Database etc.
If you have any ideas/feature you think could be valuable, please let me know, I will love trying to implement them.

Sunday, July 14, 2013

Simple TypeScript Unit Test Project Templates

Inspired by John V. Petersen's latest post http://codebetter.com/johnvpetersen/2013/07/05/a-simple-jquery-qunit-based-javascript-unit-test-project-template/ I thought that TypeScript needed Unit Test project templates to.

I prefer using the Jasmine test framework, but knows that Qunit is popular, so I decided to make a project template for each of them. I have published them on the visualstudiogallery.

TypeScript Qunit Test Project
TypeScript Jasmine Test Project

After installing your preferred Test Project you can find it by choosing new project and go to "other langauges => TypeScript"














The basic structure for the jasmine project looks like this:



The Quint look almost the same, the only different is that I have installed the qunit.d.ts file via nuget instead of the jasmine.d.ts.
The reason for the d.ts files is placed in this structure "Scripts/typings/jasmine/jasmine.d.ts" is that, this is the basic structure when you install TypeScript definition files from nuget.

To get it working you also needs to install the chutzpah javascript runner

When this is done, the test will show up in the VS test explorer window.


Thanks John, for the inspiration. I now don't need to copy paste my TypeScript test projects.

Wednesday, July 3, 2013

2013 Microsoft® MVP Award! in Visual C#

A couple of month’s back I’ve got an email from Microsoft that I have been nominated for a MVP award, the only thing I should do was to fill out a word document. First I thought it was a spam mail and reread the mail. When I was sure it wasn’t spam I filled out the document, and then forgot all about it.
Then a few days ago I’ve got an email “Congratulations 2013 Microsoft MVP!”



I couldn’t believe it! And I still really can’t!.. But my MVP award should arrive on Monday, and when I have the award in my hand I’m sure that I believe it :o)

Today, there are more than 4,000 MVPs worldwide. They represent more than 90 countries, speak over 40 languages, answer more than 10 million questions a year, and are awarded in almost 90 Microsoft technologies.

And I must thanks for those that have nominated me and how proud I am to be a MVP.