Click here to close now.


Microsoft Cloud Authors: Elizabeth White, Andreas Grabner, Jim Kaskade, Pat Romanski, David Bermingham

Related Topics: Microsoft Cloud

Microsoft Cloud: Article

Extending Visual Studio 2005

Build and integrate new features into Visual Studio 2005

The Visual Studio 2005 Beta 2 SDK allows you to build rich, deeply integrated new features into Visual Studio. The functionality you have access to through the SDK is identical to the functionality used by many teams within the Visual Studio organization here in Microsoft to develop new features for Visual Studio. Essentially, using our SDK will give you the same access to the Visual Studio Platform that is used to build in the majority of cool new features you'll find in Visual Studio 2005.

Have you ever thought of a killer feature you would love to see in Visual Studio? Maybe you want to add support for a new programming language, or you have an idea for a new GUI designer tool. You can add support for virtually anything to Visual Studio through the SDK.

This article will get you up to speed on downloading, installing, and familiarizing yourself with the Visual Studio SDK. We will walk through the fundamental parts of the SDK, and then build our first Package, which will be a customized version of the Visual Studio Task List.

The Task List (see Figure 1) stores several types of data. First, it stores tasks you create, like Outlook. Second, it parses your solution's source code for special tokens in comments like "TODO," "HACK," "UNDONE," and "UnresolvedMergeConflict," and dynamically adds these to its list.

The Visual Studio SDK provides deep, feature-rich access to virtually every part of Visual Studio. This includes all of the data used by the Task List, which we will end up using later on.

To get started you will need the Visual Studio 2005 Beta 2 SDK. Go to and look for the link entitled Download Visual Studio 2005 SDK 2005 Beta 2. Once you have downloaded the SDK, go ahead and install it.

The SDK installer will add several new components to Visual Studio. A new SDK help collection will be added to Visual Studio's Help System to provide you with conceptual information and specific technical details on using all of the functionality in the SDK. Several new project templates will be added to Visual Studio; these can be accessed through the New Project Dialog's Project Types tree under Other Project Types:Extensibility. Finally, a new entry will be added to the Start Menu.

After installing the SDK, the Start Menu will have two shortcuts to Visual Studio. One is entitled Visual Studio 2005 Beta 2, and the other is Microsoft Visual Studio 2005 Experimental. The normal version - the same one you use for Winforms and ASP.Net apps - is where you will write your extensions to Visual Studio. The Experimental version is where you will go to test them.

The Experimental version isolates its Registry data from the rest of Visual Studio 2005. If you examine the Registry hive HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio you will find a hive for 8.0 and one for 8.0Exp, an exact clone used for VS SDK development. This "sandbox" gives you the freedom to experiment without worrying about destroying your normal VS installation.

You can launch the Experimental version of Visual Studio in three different ways. First, by running Visual Studio with the command line switch "/RootSuffix Exp," like this: Devenv /RootSuffix Exp. Second, when you debug an SDK Project it will load up under the Experimental version by default. Third, you can choose the Start Menu link to Visual Studio 2005 Experimental.

Visual Studio Extensibility Methods
There are three means by which you can extend Visual Studio. The first is by writing a Macro. They are created through the Macros IDE, which is available under the Tools menu inside Visual Studio. Macros are written in Visual Basic.

Second, you can write an Add-in. These are built as DLLs, and can be written in several different languages, including C#, Visual Basic, and native C++. You can create a new Add-in by choosing the Visual Studio Add-in project type in the New Project Dialog.

Both Macros and Add-ins use Visual Studio's Automation Object Model to customize Visual Studio. The Automation system can be used to add new commands to toolbars and menus, create new tool windows, or automate certain tasks that you perform regularly in Visual Studio.

The third way in which you can extend Visual Studio is by creating a Visual Studio Package. The Package approach allows you to integrate far more deeply into Visual Studio. For example, it gives you the ability to add new programming languages to Visual Studio. For our purposes here we will be working at the Package level.

Creating Your Package
Launch the normal, non-Experi-mental, version of Visual Studio 2005. First, you will want to create a new Visual Studio Package. Open the New Project Dialog (File -> New -> New Project). Drill down into the Project Types tree view by expanding the Other Project Types node and selecting Extensibility. You will find four Project Templates available in this category:

  • Visual Studio Add-in lets you create an Add-in for Visual Studio, as discussed above
  • Shared Add-in lets you create an Add-in that usable inside of Microsoft Office
  • Visual Studio Language Package gives you the ability to integrate new languages into Visual Studio
  • Visual Studio Integration Package creates a new Package in either native C++ or managed C# that can be used to build custom editors, tool windows, or anything else that you can imagine adding to Visual Studio.
For our purposes, we will create a new Visual Studio Integration Package. Select the Visual Studio Integration Package project type, as shown in Figure 2. Give it the name Tasklist Sample, and press OK.

Next we'll walk through the Visual Studio Integration Package wizard. The first page of the Wizard introduces you to the SDK development experience; press Next. The Wizard's second page asks you to choose the programming language you want to use for development. Select C# here. The default options for assembly signing are sufficient (see Figure 3).

The third page will ask you for detailed information about your project. Enter an appropriate company name in the provided field. Under VSPackage name, enter "Tasklist Sample." VSPackage version can be left at 1.0. Minimum Visual Studio edition allows you to choose which editions of Visual Studio your Package will work under. For our purposes, this should be set to Standard, but if your project depended on functionality only available in certain editions, you would be able to set this restriction here. Finally, enter some descriptive text in the Detailed information textbox, which will be shown in the Help.About dialog. Press Next.

More Stories By Aaron Brethorst

Aaron Brethorst is a program manager on the Visual Studio Core team, where he is responsible for Accessibility and User Experience across the Visual Studio IDE. Aaron joined Microsoft in 2003 after graduating from the University of Minnesota with a degree in Computer Science. When he's not developing software, you can usually find him in a Seattle coffee shop with a good book.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.

@ThingsExpo Stories
“The Internet of Things transforms the way organizations leverage machine data and gain insights from it,” noted Splunk’s CTO Snehal Antani, as Splunk announced accelerated momentum in Industrial Data and the IoT. The trend is driven by Splunk’s continued investment in its products and partner ecosystem as well as the creativity of customers and the flexibility to deploy Splunk IoT solutions as software, cloud services or in a hybrid environment. Customers are using Splunk® solutions to collect and correlate data from control systems, sensors, mobile devices and IT systems for a variety of Ind...
Apps and devices shouldn't stop working when there's limited or no network connectivity. Learn how to bring data stored in a cloud database to the edge of the network (and back again) whenever an Internet connection is available. In his session at 17th Cloud Expo, Bradley Holt, Developer Advocate at IBM Cloud Data Services, will demonstrate techniques for replicating cloud databases with devices in order to build offline-first mobile or Internet of Things (IoT) apps that can provide a better, faster user experience, both offline and online. The focus of this talk will be on IBM Cloudant, Apa...
As enterprises capture more and more data of all types – structured, semi-structured, and unstructured – data discovery requirements for business intelligence (BI), Big Data, and predictive analytics initiatives grow more complex. A company’s ability to become data-driven and compete on analytics depends on the speed with which it can provision their analytics applications with all relevant information. The task of finding data has traditionally resided with IT, but now organizations increasingly turn towards data source discovery tools to find the right data, in context, for business users, d...
Clearly the way forward is to move to cloud be it bare metal, VMs or containers. One aspect of the current public clouds that is slowing this cloud migration is cloud lock-in. Every cloud vendor is trying to make it very difficult to move out once a customer has chosen their cloud. In his session at 17th Cloud Expo, Naveen Nimmu, CEO of Clouber, Inc., will advocate that making the inter-cloud migration as simple as changing airlines would help the entire industry to quickly adopt the cloud without worrying about any lock-in fears. In fact by having standard APIs for IaaS would help PaaS expl...
Organizations already struggle with the simple collection of data resulting from the proliferation of IoT, lacking the right infrastructure to manage it. They can't only rely on the cloud to collect and utilize this data because many applications still require dedicated infrastructure for security, redundancy, performance, etc. In his session at 17th Cloud Expo, Emil Sayegh, CEO of Codero Hosting, will discuss how in order to resolve the inherent issues, companies need to combine dedicated and cloud solutions through hybrid hosting – a sustainable solution for the data required to manage I...
SYS-CON Events announced today that IBM Cloud Data Services has been named “Bronze Sponsor” of SYS-CON's 17th Cloud Expo, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. IBM Cloud Data Services offers a portfolio of integrated, best-of-breed cloud data services for developers focused on mobile computing and analytics use cases.
SYS-CON Events announced today that ProfitBricks, the provider of painless cloud infrastructure, will exhibit at SYS-CON's 17th International Cloud Expo®, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. ProfitBricks is the IaaS provider that offers a painless cloud experience for all IT users, with no learning curve. ProfitBricks boasts flexible cloud servers and networking, an integrated Data Center Designer tool for visual control over the cloud and the best price/performance value available. ProfitBricks was named one of the coolest Clo...
Learn how IoT, cloud, social networks and last but not least, humans, can be integrated into a seamless integration of cooperative organisms both cybernetic and biological. This has been enabled by recent advances in IoT device capabilities, messaging frameworks, presence and collaboration services, where devices can share information and make independent and human assisted decisions based upon social status from other entities. In his session at @ThingsExpo, Michael Heydt, founder of Seamless Thingies, will discuss and demonstrate how devices and humans can be integrated from a simple clust...
As more and more data is generated from a variety of connected devices, the need to get insights from this data and predict future behavior and trends is increasingly essential for businesses. Real-time stream processing is needed in a variety of different industries such as Manufacturing, Oil and Gas, Automobile, Finance, Online Retail, Smart Grids, and Healthcare. Azure Stream Analytics is a fully managed distributed stream computation service that provides low latency, scalable processing of streaming data in the cloud with an enterprise grade SLA. It features built-in integration with Azur...
You have your devices and your data, but what about the rest of your Internet of Things story? Two popular classes of technologies that nicely handle the Big Data analytics for Internet of Things are Apache Hadoop and NoSQL. Hadoop is designed for parallelizing analytical work across many servers and is ideal for the massive data volumes you create with IoT devices. NoSQL databases such as Apache HBase are ideal for storing and retrieving IoT data as “time series data.”
SYS-CON Events announced today that HPM Networks will exhibit at the 17th International Cloud Expo®, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. For 20 years, HPM Networks has been integrating technology solutions that solve complex business challenges. HPM Networks has designed solutions for both SMB and enterprise customers throughout the San Francisco Bay Area.
Mobile messaging has been a popular communication channel for more than 20 years. Finnish engineer Matti Makkonen invented the idea for SMS (Short Message Service) in 1984, making his vision a reality on December 3, 1992 by sending the first message ("Happy Christmas") from a PC to a cell phone. Since then, the technology has evolved immensely, from both a technology standpoint, and in our everyday uses for it. Originally used for person-to-person (P2P) communication, i.e., Sally sends a text message to Betty – mobile messaging now offers tremendous value to businesses for customer and empl...
SYS-CON Events announced today that MobiDev, a software development company, will exhibit at the 17th International Cloud Expo®, which will take place November 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. MobiDev is a software development company with representative offices in Atlanta (US), Sheffield (UK) and Würzburg (Germany); and development centers in Ukraine. Since 2009 it has grown from a small group of passionate engineers and business managers to a full-scale mobile software company with over 150 developers, designers, quality assurance engineers, project manage...
The broad selection of hardware, the rapid evolution of operating systems and the time-to-market for mobile apps has been so rapid that new challenges for developers and engineers arise every day. Security, testing, hosting, and other metrics have to be considered through the process. In his session at Big Data Expo, Walter Maguire, Chief Field Technologist, HP Big Data Group, at Hewlett-Packard, will discuss the challenges faced by developers and a composite Big Data applications builder, focusing on how to help solve the problems that developers are continuously battling.
SYS-CON Events announced today that Cloud Raxak has been named “Media & Session Sponsor” of SYS-CON's 17th Cloud Expo, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. Raxak Protect automates security compliance across private and public clouds. Using the SaaS tool or managed service, developers can deploy cloud apps quickly, cost-effectively, and without error.
Who are you? How do you introduce yourself? Do you use a name, or do you greet a friend by the last four digits of his social security number? Assuming you don’t, why are we content to associate our identity with 10 random digits assigned by our phone company? Identity is an issue that affects everyone, but as individuals we don’t spend a lot of time thinking about it. In his session at @ThingsExpo, Ben Klang, Founder & President of Mojo Lingo, will discuss the impact of technology on identity. Should we federate, or not? How should identity be secured? Who owns the identity? How is identity ...
SYS-CON Events announced today that Solgeniakhela will exhibit at SYS-CON's 17th International Cloud Expo®, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. Solgeniakhela is the global market leader in Cloud Collaboration and Cloud Infrastructure software solutions. Designed to “Bridge the Gap” between Personal and Professional Social, Mobile and Cloud user experiences, our solutions help large and medium-sized organizations dramatically improve productivity, reduce collaboration costs, and increase the overall enterprise value by bringing ...
Sensors and effectors of IoT are solving problems in new ways, but small businesses have been slow to join the quantified world. They’ll need information from IoT using applications as varied as the businesses themselves. In his session at @ThingsExpo, Roger Meike, Distinguished Engineer, Director of Technology Innovation at Intuit, will show how IoT manufacturers can use open standards, public APIs and custom apps to enable the Quantified Small Business. He will use a Raspberry Pi to connect sensors to web services, and cloud integration to connect accounting and data, providing a Bluetooth...
SYS-CON Events announced today that Micron Technology, Inc., a global leader in advanced semiconductor systems, will exhibit at the 17th International Cloud Expo®, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. Micron’s broad portfolio of high-performance memory technologies – including DRAM, NAND and NOR Flash – is the basis for solid state drives, modules, multichip packages and other system solutions. Backed by more than 35 years of technology leadership, Micron's memory solutions enable the world's most innovative computing, consumer,...
Nowadays, a large number of sensors and devices are connected to the network. Leading-edge IoT technologies integrate various types of sensor data to create a new value for several business decision scenarios. The transparent cloud is a model of a new IoT emergence service platform. Many service providers store and access various types of sensor data in order to create and find out new business values by integrating such data.