Subscribed unsubscribe Subscribe Subscribe

Silver Light and Blue Sky

C# and Infrastructure. Code is everything.

resource file naming in ASP.NET Core localization

While I'm reading the document, I found difficulty in resource file naming. Globalization and localization | Microsoft Docs To summarize first: "name" property of the project.json uses as the assembly name of the .NET Core project. The top…

Static file authorization in ASP.NET Core MVC

When we want to serve static file ins ASP.NET Core, we should have to read this document. Working with Static Files | Microsoft Docs Let's imagine serving some static protected files with authorization. These files are only accessible by a…

Configure IDistributedCache and IDataProtection for session in ASP.NET Core

Background This blog describes two things. How to store session data out of the ASP.NET Core process How to separate the life cycle of session data from that of ASP.NET Core process and host In the background, ASP.NET Core app can run as a…

Update OpenShift ASP.NET Core s2i to .NET Core 1.1 Preview1

OpenShift provides ASP.NET Core s2i image. GitHub - openshift-s2i/s2i-aspnet: Source-to-Image template for ASP.NET applications GitHub - openshift-s2i/s2i-aspnet-example: Example projects for the ASP.NET builder image Now .NET Core 1.1 Pre…

P/Invoke in .NET Core on Red Hat Enterprise Linux

This post was originally published on Red Hat Developers, the community to learn, code, and share faster. To read the original post, click here. P/Invoke(Platform Invocation Service) is one of the features of CLI (Common Language Interface…

Azure PowerShell preview on Linux

PowerShell is now open sourced and can run on Linux. blogs.msdn.microsoft.com Azure PowerShell depends on full .NET Framework, so it can't run on Linux now. github.com However, preview version for .NET Core is released and I tried it.

How to queue and cancel build from C# code with VSTS Nuget library

Overview Visual Studio Team Services has an API, so we can queue and cancel build via API. Visual Studio Team Services and Team Foundation Server REST API Reference Here is an API about the build. Builds | REST API Reference for Visual Stu…

Getting session source information at RDP session by C#

I'd like to get the information of remote session source at the destination server with this function*1. WTSQuerySessionInformation function (Windows) It can be written by C# with DllImport. The value of WTS_CURRENT_SESSION is uint.MaxValu…

3 issues for using PSCmdlet binary module

I use PSCmdlet binary module code with C# in order to automate operation on Windows Server. Development with C# and execution speed are the pros for me. However there are issues I can't ignore. I will describe these issue and I wish PSCmdl…

Released OpenForPSCmdlet VS extension v1.1

OpenForPSCmdlet helps debugging your Cmdlet binary module writing C# or VB. OpenForPSCmdlet extensionvisualstudiogallery.msdn.microsoft.com After install this VS extension, you can right click "Open for PSCmdlet" in your Cmdlet class. Then…

Execute MSDeploy from C# program code like an API

I'm now working on constructing build & deploy ASP.NET applications to several IIS Web servers. I use MSBuild and MSDeploy commands. To be specific, making a zip package of ASP.NET application on CI server and deploy it to Web servers. A z…

How to show AWS RDS metrics on NewRelic using C#

I'd like to introduce how to show AWS RDS metrics on NewRelic using C#. There is an Amazon RDS Plugin devloped by Ruby, but I have developed by C# because I want to customize components. Here is a chat of this plugin. This plugin can show …

The English Blog has re-started

I have already started the English Blog here. But there are few articles. Now I have re-started English Blog in "Hatena Blog".