.NET Articles

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

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

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:...

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);...

How to get a System.Net trace of your C# Web Job

Overview In Azure App Services C# based Web Jobs, you can see the network traffic that is using the System.Net socket and related .Net classes using this functionality.  This should be only used to temporarily grab traces as the log will grow quite large and it (as with any logging) will decrease performance slightly. Walkthrough...

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...

TypeScript

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

Writing Declaration Files for @types

A while back we talked about how TypeScript 2.0 made it easier to grab declaration files for your favorite library. Declaration files, if you’re not familiar, are just files that describe the shape of an existing JavaScript codebase to TypeScript. By using declaration files (also called .d.ts files), you can avoid misusing libraries and get... Read more

Announcing TypeScript 2.1

We spread ourselves thin, but this is the moment you’ve been awaiting – TypeScript 2.1 is here! For those who are unfamiliar, TypeScript is a language that brings you all the new features of JavaScript, along with optional static types. This gives you an editing experience that can’t be beat, along with stronger checks against... Read more

Orleans

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...