Dec 15th, 2008 | No Comments

There are a few hidden gems in Visual Studio that are easy to overlook. One of those is the Code Definition Window (ctrl+\,ctrl+d or View – Code Definition Window).

The Code Definition Window will work in two different ways. The first is with your current code editing window. As you navigate your code, the Code Definition Window will display the definition of the objects currently under your cursor. For instance, if your cursor is currently over a class level variable, the Code Definition Window will display the location in the source file where the variable is declared. The same goes for methods and classes both within the current source file and in other source files within your current solution.

The second way the Code Definition Window can work is in conjunction with the Visual Studio Class View Window (ctrl+shift+c or View – Class View). The Class View Window is a handy tool window in its own right, giving a quick overview of the object model of the current solution and allowing fast navigation through namespaces, classes, and methods. If you double click on a method in the Class View Window, Visual Studio will open the appropriate source code file and scroll to that particular method. This is quite useful for larger projects and for projects that might have multiple class definitions in each file. However, if you single click on a method, the contents of that method will show in the Code Definition Window without opening the file in a text editing window.

codeview

Dec 10th, 2008 | No Comments

Microsoft has released an early version of an open-source content management platform that developers can use to build sophisticated blogs or large Web sites.

Called Oxite, its creators describe it as a standards-compliant and highly extensible content management platform. They built it not because there is a need for another blog engine, but because they were building the MIX Online site for Web designers and wanted to offer an example of a use for ASP.NET MVC, according to the Oxite Web site.

ASP.NET MVC lets developers use ASP.NET to build Web applications using an architecture called model-view-controller. Microsoft released a preview of the ASP.NET MVC framework, designed to make it easier for developers to test applications, late last year.

Oxite includes a number of important blog functions that can be complex to implement, according to Microsoft. The framework offers many features common in blogs, including pingbacks, trackbacks, anonymous or authenticated comments with the option to moderate comments, RSS feeds for any page and a Web administration panel.

It’s also designed for users to easily add new Web pages and sub-pages.

At first glance Oxite appears to compete with established blogging products including those from Six Apart. However, Microsoft says that Oxite is designed for developers, rather than less-technical Web users wanting to set up a blog.

“Oxite is targeted at developers who want to learn ASP.NET MVC,” according to a brief FAQ on the Oxite site. “If the community decides to build this to work well for consumers down the road we won’t stop it.”

The Oxite Web site calls this a sample, or alpha release. The code was posted on Friday and had been downloaded by 300 people late Monday afternoon. The MIX Online site is the only one listed so far among sites using the Oxite code base.