What’s New in .NET 4 and VS 2010 for Office Developers?

Well, now that .NET 4 and Visual Studio 2010 are out in Beta form I thought it would be a good time to begin covering some of the new features that are available to Office developers.  This first video covers two of the new .NET 4 features that Office developers can use right away…and one of them is a real timesaver! 

Have you ever been writing your Word add-in and wanted to have the add-in save the current document?  If you have you’ve probably noticed that the Save requires a LOT of code, something like this:

    1: doc.SaveAs(
    2:     ref saveAsFileName, 
    3:     ref missing, ref missing, ref missing, 
    4:     ref missing, ref missing, ref missing, 
    5:     ref missing, ref missing, ref missing, 
    6:     ref missing, ref missing, ref missing,
    7:     ref missing, ref missing, ref missing
    8: );

 

With .NET 4 this will become a whole lot easier, check out the video for more info and other changes that will benefit you.  I’ll have another video tomorrow showing a new feature in VS 2010 that will help with distribution of your add-in too!