Skip to main content

visual studio 2008

just last week our company already had the licensed copy of visual studio 2008, thats what you get being a MS gold partner. we have to use it right away to migrate some projects that we developed using the beta 2 release . the look and feel did npt change a bit but i bet there are a lot of changes that are waiting to be discovered.

one of the most notable changes was on VSTO (Visual Studio Tools for Office). VSTO has been around since VS2005 and we had no problem migrating it to beta 2 of VS2008. well things have changed and there are new features in 2008 plus changes in assembly names. so here are the things that we got and the workarounds that we made :




The following assemblies are no longer supported in VS 2008 Release. Remove it from the reference list.
Microsoft.VisualStudio.Tools.Applications.AddInBase.dll
Microsoft.VisualStudio.Tools.Applications.Common.dll
Microsoft.VisualStudio.Tools.Office.dll
Microsoft.VisualStudio.Tools.Office.Common.dll

Replace above with the following assemblies
Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll
Microsoft.VisualStudio.Tools.Office.Runtime.v9.0.dll
Microsoft.Office.Tools.v9.0.dll
Microsoft.Office.Tools.Common.v9.0.dll

In Ribbons ExcelRibbon, WordRibbon, etc.. is replaced by one object which is OfficeRibbon. In your ribbon class you need to change the base class from XXXXRibbon to OfficeRibbon (see snippet below). Then open the ribbon and change the RibbonType property to any office solutions you wish your ribbon to support …

SNIPPET

Old:
public partial class MyRibbon : WordRibbon
{
…..
}

New:

public partial class MyRibbon : OfficeRibbon
{
….
}




feel free to comment on this and add new changes that you may have run into.

Comments

Popular posts from this blog

Getting Started with Stateless : A Lightweight Workflow Library Alternative for .NET

Image Credit: https://www.pioneerrx.com A year ago, I was looking for a simple workflow manager for a project I was working. Its a medium sized application that involves tracking the state of assets in the system. Back in 2008, Microsoft (MS) introduced new technologies along with the release of Visual Studio 2008: Windows Presentation Foundation (WPF), Windows Communication Foundation (WCF), and  Windows Workflow Foundation (WF). Having worked in a company utilizing mostly MS products for development, my first option was to go with WF. After doing some time reading and studying the library, I paused and decided it was too complex for my requirement. Using WF would be an overkill and the fact that it has, a rather, steep learning curve, there has to be another option. My mind toyed with the idea of developing a simple workflow library myself. It would be a learning experience but it might end up consuming a lot of time. Why reinvent the wheel? So I started querying the ...

Hiding Unwanted Python Folders and Files in Visual Studio Code

Visual Studio Code is a universal editor and pretty good at it. However, the explorer view maybe cluttered with the automatically generated folders and files confusing developers. Python is no different. Below are example files and folders generated by Python. The __pycache__ folder and *.pyc files  are totally unnecessary to the developer. To hide these files from the explorer view, we need to edit the settings.json for VSCode. Add the folder and the files as shown below: Copy and paste the lines below : "**/*.pyc" : { "when" : "$(basename).py" }, "**/__pycache__" : true

Cyber-bullying : The "good", the bad and the ugly

Image courtesy of http://www.digitalesq.com/ Cyber-bullying is defined as  the willful and repeated use of cell phones, computers, and other electronic communication devices to harass and threaten others. With the advent of social media, the incidents has increased in numbers and the victims does not even know what is hitting them. For the past years, we have heard of  depressions and deaths because of this. Yet, there has never been a strong drive to increase public awareness and promote support groups to help victims outside of the schools.  Campaigns and programs has never gained mainstream presence enough to make an impact.