Content by Category
.NET 1.x
.NET 2.0
.NET 3.0
.NET 3.5
.NET 4.0
.NET 4.5
.NET Assemblies
.NET Framework
.NET Getting Started
Accessibility
ADO.NET
Advertorials
Agile Development
AJAX
Amazon Web Services
Analysis Services
Android
Architecture
Arduino
ASP .NET Web API
ASP.NET
ASP.NET MVC
ASP.NET WebForms
Azure
B2B (Business Integration)
BDD
Big Data
Bing
BizTalk
Book Excerpts
Build and Deploy
Business Intelligence
C#
C++
ClickOnce
Cloud Computing
Code Contracts
CODE Framework Info - non Technical
CODE on the Road!
COM+
Community
Conferences
Continuous Integration
Crystal Reports
CSLA.NET
CSS
Data
Debugger
Design Patterns
Development Process
Display Technologies
Distributed Computing
Document Database
DotNetNuke
DSL
Dynamic Languages
Dynamic Programming
Editorials
Enterprise Services ("COM+")
Entity Framework
Events
Expression Blend
F#
Fox to Fox
Frameworks
Functional Programming
Git
Graphics
HTML 5
Internet Explorer 8.0
Interviews
IOS
iPhone
Iron Ruby
Java
Java Script
JavaScript
jQuery
JSON
Lightswitch
LINQ
Linux
LUA
Mac OS X
MDX
Messaging
Metro
Microsoft Application Blocks
Microsoft Business Rules Framework
Microsoft Dynamics
Microsoft Expression
Microsoft Office
Mobile Development
Mobile PC
Mono
MsBuild
MVVM
MySQL
Network
NHibernate
node.js
NOSQL
Nuget
Object Oriented Development
Objective C
Odata
OLAP
Open Source
Opinion
Opinions
Oracle
ORM
Other Languages
Parallel Programming
Patterns
PHP
Podcasts
Post Mortem
PowerPoint
Print/Output
Prism
Product News
Product Reviews
Project Management
Prolog
Python
Q&A
Rails
Rake
Razor
Reporting Services
REST
RIA Services
Ruby
Ruby on Rails
Scheme
Search
Security
Services
SharePoint
SignalR
Silverlight
SOA
Social Networks
Software & Law
Software Business
Source Control
Speech-Enabled Applications
SQL Server
SQL Server 2000
SQL Server 2005
SQL Server 2008
SQL Server 2012
SQL Server CE/AnyWhere/Mobile/Compact
SSIS
Subversion
Sync Framework
Tablet PC
TDD
Team System
Techniques
Testing and Quality Control
TFS
Tips
TypeScript
UI Design
UML
User Groups
VB Script
VB.NET
Version Control
VFP and .NET
VFP and SQL Server
Virtual Earth
Vista
Visual Basic
Visual Basic 6 (and older)
Visual FoxPro
Visual Studio .NET
Visual Studio 11
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
Visual Studio 2011
Visual Studio 2012
Visual Studio Tools for Office
VSX
WCF
Web Development (general)
Web Services
WebMatrix
WF
Whitepapers
Windows 7
Windows 8
Windows Azure
Windows Live
Windows Phone 7
Windows Phone SDK
Windows Server
Windows Vista
WinForms
WinRT
Workflow
WPF
XAML
Xiine Documentation
XML
XNA
XSLT



LearnNow


XAMALOT
 


SSWUG

Reader rating:
Click here to read 3 comments about this article.
Article source: CoDe (2008 - Vol. 5 - Issue 1 - Extensibility)


Article Pages:  1  2 3 - Next >


VSMessenger: Taking the Extensibility Plunge

Visual Studio Extensibility can appear daunting to the uninitiated. This article will look at the blogging effort on VSSDK.com, as well as the VSMessenger sample application, and examine how they improve overall approachability to Visual Studio Extensibility.

In retrospect, some aspects of my initial transition from classic ASP to ASP.NET were brutally difficult. Sadly, a primary contributor to much of the difficulty during that transition stemmed from my lack of familiarity with object-oriented programming (OOP). In fact, when I got started with the .NET Framework (during initial beta stages of the 1.0 Framework) I was really nothing more than a self-taught scripter. Sure, I’d had plenty of experience coding with Visual Basic, VBA, VBScript, and even PHP-and while I loved using “classes” in PHP and VBScript 3.0, I really still didn’t fully understand all of the true benefits of OOP.

A perfect example of one of the times that I really wondered what in the world was going on with the .NET Framework was when I went to add a new ListItem to an ASP.NET DropDownList control that had already been populated from a database (i.e., imagine a drop-down with a list of all 50 U.S. states pulled from a database and wanting to add something like “Other” to the list without modifying the database). Using Classic ASP this would have been a trivial task; I would have just needed to emit more markup using whatever mechanism I had just used to populate the previous entries. In ASP.NET, adding this additional custom option was much harder. Not only did I have to get the timing of my “addition” right (otherwise I would overwrite my initial data-binding), but the whole process of programmatically creating a new ListItem instance, populating it with text, and then adding it to the collection of Items used by the DropDownList control just seemed like an incredibly huge amount of work for something that had been so trivial before.

"
In a large way, I think that my transition to ASP.NET from Classic ASP was very similar to what many developers go through when they make their first foray into Visual Studio Extensibility (VSX).
"

In a large way, I think that my transition to ASP.NET from Classic ASP was very similar to what many developers go through when they make their first foray into Visual Studio Extensibility (VSX). Take, for example, what is required to output some simple text in a Message Box from within a VSPackage:

IVsUIShell uiShell = 
   (IVsUIShell)GetService(typeof(SVsUIShell));
Guid clsid = Guid.Empty;
Guid clsid = Guid.Empty;
int result;
uiShell.ShowMessageBox(
           0,
           ref clsid,
           null,
           "This is a message.",
           string.Empty,
           0,
           OLEMSGBUTTON.OLEMSGBUTTON_OK,
           OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST,
           OLEMSGICON.OLEMSGICON_INFO,
           0,        // false
           out result);

Merely scanning that code shows that it takes a lot more development and coding to output some simple text in a message box than what would be required of any .NET Windows Forms developer:

MessageBox.Show("This is a message");

Note too that both of these examples are in managed code; but the VSX code looks an awful lot more complex. It can also look a bit daunting or even intimidating if you’re not familiar with all of the arguments and enumerations. However, if you’ve spent much time doing VSX and are used to the underlying paradigms involved, then the message box code above is really trivial.

&

By: Michael Campbell

Michael K. Campbell is an avid .NET developer and SQL Server wonk. He spends most of his time engaged in technical evangelism and consulting. You can contact him from any of his sites listed at www.overachiever.net.

mike@overachiever.net

Fast Facts

VSSDK.com chronicles the real-life adventures of VSX developers and contains insights, resources, and even screen-casts to help get you started on your own path to Visual Studio Extensibility.


VSX Team Member


Mariano Blanco

Software Engineer

Visual Studio Ecosystem Team

I’ve recently joined the Ecosystem team and have been working on improving the Visual Studio Shell experience. I’m looking forward to seeing what innovations our community will bring to the Visual Studio platform with the advent of the VS Shell and the continual improvements to the VS SDK.



Article Pages:  1  2 3 - Next Page: 'Some of the Pitfalls of VSX' >>

Page 1: VSMessenger: Taking the Extensibility Plunge
Page 2: Some of the Pitfalls of VSX
Page 3: Enter VSMessenger

How would you rate the quality of this article?
1 2 3 4 5
Poor      Outstanding

Tell us why you rated the content this way. (optional)

Average rating:
3.5 out of 5

11 people have rated this article.

TOWER 48

      Sharepoint TechCon

 

LearnNow