Previous posts:
Tool of the week: Nuke
Nuke is a cross-platform build automation system with C# DSL, much like Cake. It features auto-completion, refactoring, and navigation in all IDEs. Nuke avoids complexity, and integrates as a normal project.
[Parameter] string MyGetApiKey;
Target Publish => _ => _
.Requires(() => MyGetApiKey)
.OnlyWhen(() => IsServerBuild)
.DependsOn(Pack)
.Executes(() => GlobFiles(OutputDirectory / "packages", "*.nupkg")
.ForEach(x => NuGetPush(s => s
.SetTargetPath(x)
.SetVerbosity(NuGetVerbosity.Detailed)
.SetApiKey(MyGetApiKey)
.SetSource("https://www.myget.org/F/nukebuild/api/v2/package"))));
Package of the week: Warden.NET
The System.Diagnostics.Process class while useful does not have a concept for parent applications; while Windows itself does track parents, it does not track grandparents and processes can quickly become orphaned. Which is where Warden comes in. Warden.NET is a simple to use library for managing processes and their states.
WardenManager.Initialize();
var wardenTest = await WardenProcess.Start("notepad.exe", string.Empty, ProcessTypes.Win32);
if (wardenTest != null)
{
wardenTest.OnStateChange += delegate (object sender, StateEventArgs args)
{
Console.WriteLine($"---\nName: {wardenTest.Name}\nId: {wardenTest.Id}\nstate changed to {args.State}\n---");
};
}
User group meeting of the week: .NET day in Bangalore
The .NET Bangalore user group has a full day event on Saturday, August 5 with a great agenda: ES6 for .NET developers, .NET Core WebAPI, ASP.NET Core, and AI with .NET.
.NET
- .NET Application Architecture Guidance by Cesar de la Torre.
- Testing a Cake Addin by Derek Comartin.
- Using .NET Core 2 to read serial data from an Arduino UNO over USB by Jeremy Lindsay.
- Top 5 .NET Exceptions by Liam Westley.
- Building a query parser over a weekendPart II by Ayende Rahien.
- Reflecting on performance testing by Andrey Akinshin.
ASP.NET
- Introducing Support for Brotli Compression by Denys Tsomenko.
- Peachpie – Open Source PHP Compiler to .NET and WordPress under ASP.NET Core by Scott Hanselman.
- Creating Web API With ASP.NET Core Using Visual Studio Code by Ahmed Abdi.
- In ASP.NET Core 1.1 by Jerrie Pelser.
- Customising ASP.NET Core Identity EF Core naming conventions for PostgreSQL by Andrew Lock.
- In-Memory ASP.NET Core Integration Tests with TestServer by Jason Roberts.
- ASP.NET Core MVC – Custom Tag Helpers by Ibrahim Šuta.
- ASP.NET Core Razor Pages – Handler Methods by Ibrahim Šuta.
- Redis InMemory Cache in ASP.net MVC Core by Gary Woodfine.
- Building a scheduled task in ASP.NET Core/Standard 2.0 by Maarten Balliauw.
- Run ASP.NET Core on OpenShift by Carlos Mendible.
- Validating user with cookie authentication in ASP.NET Core 2 by Gérald Barré.
C#
- Practical C# – Implementing Equality by Andrea Angella.
- If there is no difference between two options, choose the one that is easier to debug by Raymond Chen.
- Trying to set a readonly auto-property value externally (plus, a little BenchmarkDotNet) by Dan Roberts.
- Michael James – Developer by Michael James.
- Directly throw Exception as an Expression – Throw expressions in C# 7.0 by Abhijit Jana.
- Perusing C# 7.1 by David Pine.
- Suppress "Use ‘throw’ expression" suggestion by Gérald Barré.
F#
- F# Tutorial by Derek Banas.
- Experimenting with Partial Application by Shane Charles.
- Getting started with F# and .NET Core by Julien Blanchard.
- Does it make sense to invest into the stock market at all-time highs? Answered with F# on .NET Core by Gergely Kalapos.
- When to use a Discriminated Union vs Record Type in F# by Jose Gonzalez.
- Two Tetromino Tetris with Fable and F# by Tom Prior.
There is more content available this week in F# Weekly. If you want to see more F# awesomeness, please check it out!
Xamarin
- Xamarin.Android Proguard Notes by Jon Douglas.
- Xamarin.Tip – Borderless Picker by Alex Dunn.
- Xamarin.Tip – Borderless DatePicker by Alex Dunn.
- Stop toggling IsBusy with NotifyTask! by Nico.
- A Beginners Guide for Contributing to Xamarin.Forms by David Ortinau.
- Building the Xamarin.Forms NuGet by David Ortinau.
- Installing Visual Studio 2017 Made Easy by Mayur Tendulkar.
- Tracking Memory Leaks In Xamarin With The Profiler – Part 2 by Adam Pedley.
- Prism in Xamarin Forms Step by Step (Part. 2) by Charlin Agramonte.
- Announcing MvvmCross 5.1! by MvvmCross.
- Show Live Updates to Your Xamarin Grids by Infragistics.
Azure
- Calling a downstream web API from a web API using Azure AD by Jean-Marc Prieur.
- Run Console Apps on Azure Functions by Azure Team.
- Is Your Serverless Application Testable? – Azure Logic Apps by Justin Yoo.
UWP
- How to Restart your App Programmatically by Andrew Whitechapel.
- Creating a geographical map on the floor in your Hololens / Windows MR app by Joost van Schaik.
- Text-To-Speech with Windows 10 Iot Core & UWP on Raspberry Pi by Andrej Tozon.
- Login to your UWP with your MSA by Jerry Nixon.
And this is it for this week!
Contribute to the week in .NET
As always, this weekly post couldn’t exist without community contributions, and I’d like to thank all those who sent links and tips. The F# section is provided by Phillip Carter, the gaming section by Stacey Haffner, the Xamarin section by Dan Rigby, and the Azure and UWP section by Michael Crump.
You can participate too. Did you write a great blog post, or just read one? Do you want everyone to know about an amazing new contribution or a useful library? Did you make or play a great game built on .NET? We’d love to hear from you, and feature your contributions on future posts. Please add your posts, it takes only a second.
We pick the articles based on the following criteria: the posts must be about .NET, they must have been published this week, and they must be original contents. Publication in Week in .NET is not an endorsement from Microsoft or the authors of this post.
This week’s post (and future posts) also contains news I first read on The ASP.NET Community Standup, on Weekly Xamarin, on F# weekly, and on The Morning Brew.
0 comments