Uncategorized

Debugging Multiple ASP.NET Core Projects in a Single Solution

We recently setup a new solution with multiple ASP.NET Core projects and wanted to debug them all at the same time.  This ended up being far more difficult than we expected.  Not because its actually hard but without some context it can be super confusing and the errors aren’t helpful.  So I decided to write …

Debugging Multiple ASP.NET Core Projects in a Single Solution Read More »

Swagger-UI QuickTip – swagger.json link is about:blank FIX

I was writing a REST API with ASP.NET Core 2.1 and the Swashbuckle Nuget package using the Microsoft docs and everything was working well locally.  Then I deployed it to the cloud where we had a reverse proxy routing requests with virtual paths prefixes and the Swagger-UI couldn’t find the swagger.json file. After much research …

Swagger-UI QuickTip – swagger.json link is about:blank FIX Read More »

Visual Studio Quick Tip: Only unit tests in Test Explorer

My team recently consolidated several test projects which resulted in both unit and integration tests in the same project.  Unfortunately some of our integration tests rely on resources not available locally so they fail: Thankfully Visual Studio allows you to filter your tests in the Test Explorer.  There are many options but its positive matching …

Visual Studio Quick Tip: Only unit tests in Test Explorer Read More »

Error Installing .NET Core 2.1 on Ubuntu 18.04.1 Server – Unmet dependencies

I recently tried to install .NET Core 2.1 on Ubuntu 18.04.1 using the Microsoft download page instructions. Unfortunately I hit the following error: The following information may help to resolve the situation: The following packages have unmet dependencies:  dotnet-sdk-2.1 : Depends: dotnet-runtime-2.1 (>= 2.1.2) but it is not going to be installed                   Depends: aspnetcore-runtime-2.1 (>= …

Error Installing .NET Core 2.1 on Ubuntu 18.04.1 Server – Unmet dependencies Read More »

Integration Testing with SQL LocalDb on your build server

I recently needed to verify some LINQ code would work correctly against an EF IQueryable data source.  Instead of setting up a full SQL database server for testing only, I setup a LocalDB which is simply a .mdf file that serves as your SQL database.  I believe the SQL Server LocalDB Engine is installed with …

Integration Testing with SQL LocalDb on your build server Read More »

VSTS Quick Tip: PowerShell Task with VSTS Variable Not Working!

If you are at your wits’ end trying to get a specific VSTS variable working inside a PowerShell task and just can’t get it, this quick tip may be helpful to you. I setup a PowerShell task similar to below and no matter what I did this particular variable would be empty in my PowerShell …

VSTS Quick Tip: PowerShell Task with VSTS Variable Not Working! Read More »

Deploy DacPac to SQL Server 2017 using WebDeploy/MSDeploy.exe

I’ve used WebDeploy/MSDeploy for many years to automate the deployment of almost everything I build. This week I hit an issue in our automated release pipeline where the deployment of SQL database failed with following errors (each from a different build agent): Error Code: ERROR_EXECUTING_METHOD More Information: Could not deploy package. Internal Error. The database …

Deploy DacPac to SQL Server 2017 using WebDeploy/MSDeploy.exe Read More »

C# Fluent API Design: Get property name from a Func<T>

Have you ever wondered how all those cool fluent APIs use anonymous functions (Func<T>) to get property names?  We were building some helper extensions methods internally and had this exact need.  It wasn’t immediately clear how to accomplish this but after some research it wasn’t too complicated to understand. Code Basically you accept the Func<T> …

C# Fluent API Design: Get property name from a Func<T> Read More »

Developer Perspective: AWS Lambda vs Azure Functions – First Impressions

We recently performed a general cloud evaluation between AWS and Azure to decide which cloud we would use for the foreseeable future.  A big part of the evaluation was serverless capabilities specifically AWS Lambda vs Azure Functions.  We built a similar POC in each cloud using a serverless architecture and learned a lot.  So I …

Developer Perspective: AWS Lambda vs Azure Functions – First Impressions Read More »