.NET Articles

News and insights on .NET technology, tools, and events.

.NET Core

How to create your own templates for dotnet new

You can now create your own templates for dotnet new. Creating and installing your own templates is an experimental feature at this point, but one that we are seeing significant interest in and that deserves more of your feedback before we enable it for broad use with .NET Core 2.0. The version of dotnet new... Read more

Prism and WPF

Prism for WPF License Announcement

Prism for WPF and it associated projects now use the Apache 2.0 license. The latest source code can be found on the following CodePlex sites: http://prism.codeplex.com Prism.Composition, Prism.Interactivity Prism.UnityExtensions Prism.MefExtensions http://pnpmvvm.codeplex.com Prism.Mvvm http://pnppubsub.codeplex.com Prism.PubSubEvents Prism.Mvvm and Prism.PubSubEvents are portable class libraries that now target Windows Phone 8.1. Prism.Mvvm targets: .NET framework 4.5 Windows 8 Windows...

Prism for Universal Apps available on Codeplex

Prism for Universal Apps is now available on CodePlex. Prism can now be used to develop apps for Windows 8.1, Windows Phone 8.1, and Universal Apps that run on both. The AdventureWorks Shopper reference implementation now also runs on both the Windows 8.1 and Windows Phone 8.1. AdventureWorks Shopper uses Prism.StoreApps, Prism.Mvvm, and Prism.PubSubEvents. In...

Mike Taulty Prism for Windows Runtime Video

Mike Taulty gave a great walkthrough of how to create an application using Prism for Windows Runtime 8.1. Check it out.

Prism 5.0 for WPF and .NET 4.5 Just Released

We are pleased to announce that the Microsoft patterns & practices team just released the Prism Library for WPF and .NET 4.5. As I mentioned when we started the project. the major themes of the release are: Provide Portable Class Library version of Prism library (where reasonable) Address high priority items identified on the CodePlex...

Updated PDF for Prism for the Windows Runtime is now available

An updated PDF for Prism for the Windows Runtime is now available at https://aka.ms/prism-winrt-pdf. This is the version I promised in my Just released Prism for the Windows Runtime on Windows 8.1 blog post.

Azure App Service

Posting a large file can fail if you enable Client Certificates

Overview If you require client certificates and POST or PUT a large amount of data, your request may fail.  This has been an issue that has existed with IIS for at least 10 years (this now applies to Azure App Services on the Windows platform as well since it uses IIS).    There is not much...

Publishing Azure Api App and it does not appear in the portal

Overview There have been some reports of people publishing an Azure API App and then they cannot find it in the portal Cause The most common cause is that you have not updated your Azure SDK and so you are publishing the old V1 Azure API Apps (which are no longer supported).  The UI is...

Enable client certificate for Azure web site fails with 400 Bad Request

  Problem: Customer follows this blog to use armclient to enable client certificate for his web site.  Issuing the armclient PUT command results in the following error: HTTP/1.1 400 BadRequest Pragma: no-cache Strict-Transport-Security: max-age=31536000; includeSubDomains x-ms-ratelimit-remaining-subscription-writes: 1199 x-ms-request-id: befeee1f-ac33-4d84-8f04-0ff36d9aa698 x-ms-correlation-request-id: befeee1f-ac33-4d84-8f04-0ff36d9aa698 x-ms-routing-request-id: WESTUS2:20170312T180143Z:befeee1f-ac33-4d84-8f04-0ff36d9aa698 Cache-Control: no-cache Date: Sun, 12 Mar 2017 18:01:42 GMT ETag: “1D29B57E7FD6890” Server:...

Deploying a web app with .NET

Overview A walkthrough on creating a new web app from a Console app using .NET. This is not to be confused with deploying new code to an existing web app, it is a programmatic way to create web apps in a similar fashion to ARM or creation through the portal. Walkthrough 1. To begin, create...

Azure Functions : NLog and Database

Here are steps to write NLog to Database in Azure Functions   1. via Config (NLog.config) <?xml version=“1.0“ encoding=“utf-8“ ?> <nlog xmlns=“http://www.nlog-project.org/schemas/NLog.xsd“       xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance“>   <targets>     <!–<target name=”logfile” xsi:type=”File” fileName=”file.txt” />–>     <target name=“logfile“ xsi:type=“Database“ connectionstring=“Server=dbservername.database.windows.net,1433;Initial Catalog=dbname;Persist Security Info=False;User ID=dbuser;Password=password; MultipleActiveResultSets=False; Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;“>       <commandText>         insert into LogTable(time_stamp,level,logger,message) values(@time_stamp, @level, @logger, @message);...

Bots and Cognitive Services

Using the Cognitive Recommendations API in Bots and Websites

Anyone that has ever shopped on Amazon or listened to music on Spotify will be familiar with the concept of recommendations where the user is offered recommendations of items based on browsing history, purchase history and other indicators of how the user has interacted with a product, artist etc. Recommendations often take one of these...

The Artificial Intelligence track at Future Decoded 2016

If you have been to or watched any event this year from Microsoft such as Build, Ignite or TechDays Online, you’ll know that Artificial Intelligence (AI) is core to Microsoft’s overall vision for how we’ll help every person and organisation on the planet achieve more. Microsoft’s vision include is about three bold ambitions: Reinventing Productivity...

The many features of Cognitive Services – Part 1 – Vision

Microsoft Cognitive Services is a set of 21 REST APIs that enable developers of any platform or language to add machine learning smarts to their applications. Whilst there are 21 APIs, many of the APIs have several distinct functions within them. For example, the Computer Vision API facilitates the following capabilities: Analyse an image: Gives...

Smart image re-sizing with Azure Functions and Cognitive Services

A few days ago I blogged about Generating thumbnails with the Cognitive Services Computer Vision API. The article talked about how we can use the Computer Vision API to do smart image resizing in C# and JavaScript. Today I’m going to progress this idea with Azure Functions. We’ll explore how to automatically create thumbnail images...


Announcing TypeScript 2.3

Today we’re excited to bring you our latest release with TypeScript 2.3! For those who aren’t familiar, TypeScript is a superset of JavaScript that brings users optional static types and solid tooling. Using TypeScript can help avoid painful bugs people commonly run into when writing JavaScript by type-checking your code. TypeScript can actually report issues... Read more

Announcing TypeScript 2.3 RC

The TypeScript 2.3 Release Candidate is here today! This release brings more ECMAScript features, new settings to make starting projects easier, and more. To get started with the release candidate, you can grab it through NuGet or over npm through npm install -g typescript@rc You can also get TypeScript for Visual Studio 2015 (if you... Read more

TypeScript’s New Release Cadence

One of the things we love about the TypeScript community is the enthusiasm around new features and rapid adoption of new TypeScript releases. Because of this, we have been focusing on increasing the velocity and consistency of TypeScript releases so that you can get your hands on the latest features even more quickly and predictably.... Read more

Announcing TypeScript 2.2

Today our team is happy to present our latest release with TypeScript 2.2! For those who haven’t yet heard of it, TypeScript is a simple extension to JavaScript to add optional types along with all the new ECMAScript features. TypeScript builds on the ECMAScript standard and adds type-checking to make you way more productive through... Read more

Announcing TypeScript 2.2 RC

TypeScript 2.2 is just around the corner, and today we’re announcing its release candidate! If you’re first hearing about it, TypeScript is a language that just takes JavaScript and adds optional static types. Being built on JavaScript means that you don’t have to learn much more beyond what you know from JavaScript, and all your... Read more


Latest release – 1.3.1

On November 15th we published our latest release – 1.3.1. It is a patch release with a number of bug fixes and improvements that have been merged into master since 1.3.0. There were two main reasons for 1.3.1. 343 Industries needed a release with a couple of improvements to streaming and the EventHub stream provider...