Open XML SDK 2.7 for .NET Core release

For people who play a lot with Office documents, and as a SharePoint developer (app, migration tools, etc) this is a day as usual, the Open XML SDK is a powerful companion.

The latest update of this nice SDK was released a year ago with a great upgrade, thanks to Eric White which replaced the System.IO.Packaging implementation. Last week was released the official SDK 2.7 which now moved to using Windows Base and supports .NET Standard 1.3, so it now works with .NET Core and .NET CLI.

image

And you know what ?!? It works like a charm !

Here is a sample code to generate a Word Document from a .NET Core (as well as for any .NET app) :

[code language= »csharp »]

using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Wordprocessing;

namespace CoreTest
{
public class Program
{
public static void Main(string[] args)
{
GenerateHelloOOXMLDocument("test.docx");
}

public static void GenerateHelloOOXMLDocument(string docName)
{
using (WordprocessingDocument package =
WordprocessingDocument.Create(docName, WordprocessingDocumentType.Document))
{
package.AddMainDocumentPart();
package.MainDocumentPart.Document =
new Document(
new Body(
new Paragraph(
new Run(
new Text("Hello Open XML for .NET Core !")))));

package.MainDocumentPart.Document.Save();
}
}
}
}

[/code]

and the project.json file :

[code]

{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},

"dependencies": {
"DocumentFormat.OpenXml": "3.0.0-*",
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.1"
}
},

"frameworks": {
"netcoreapp1.0": {
"imports": "dnxcore50"
}
}
}

[/code]

Microsoft Most Valuable Professional again … 10 ans !

image

C’est toujours avec beaucoup de plaisir que l’on reçoit le mail de renouvellement de notre titre MVP (Most Valuable Professional) de la part de Microsoft (merci Soyoung !). C’est donc pour la 10ème année consécutive que je suis renouvelé et reste donc dans la famille des 285 MVPs spécialistes SharePoint / Office 365 présents aux quatre coins du globe.

Ce renouvellement se fait selon la nouvelle catégorisation MVP (anciennement SharePoint Server) : Office Servers and Services (qui regroupe SharePoint et Office 365) et Visual Studio and Development Technologies pour moi cette année.

Plus d’infos sur le titre MVP : https://mvp.microsoft.com/fr-fr/Overview

A bientôt sur les prochains Afterworks autour d’une SharePint !

Réaffichage de l’export des clefs produits MSDN

Alors que la fonctionnalité d’export des clefs MSDN au format XML existait depuis longtemps et rendait très pratique l’utilisation des clefs produits MSDN hors connexion. La version française ne propose plus l’option :

image

Qu’à cela ne tienne, utilisez l’URL de la version américaine pour voir réapparaitre la fonctionnalité : https://msdn.microsoft.com/en-us/subscriptions/keys/

image