Install tool: dotnet tool install --global dotnet-outdated
Usage: On the solution/project folder, run dotnet outdated
param([string]$Name) | |
if([string]::IsNullOrEmpty($Name)) { | |
Write-Host "Fill in your migration name."; | |
return; | |
} | |
$MigrationProject = ""; | |
$StartupProject = ""; |
Install tool: dotnet tool install --global dotnet-outdated
Usage: On the solution/project folder, run dotnet outdated
If you don't have npm initialized in your project scope, run npm init -y
npm install sass --save-dev
Refer to: https://sass-lang.com/documentation/
Add, to your package.json, on the scripts object:
"scripts": { "sass": "sass" },
Create a new folder Styles, with an app.scss file there - this'll be your global styling solution
On your project's .csproj, add:
using Microsoft.Extensions.DependencyInjection; | |
public static class DependencyInjectionHelper | |
{ | |
public static IServiceCollection AddByType<T>(this IServiceCollection serviceCollection, ServiceLifetime serviceLifetime = ServiceLifetime.Transient) | |
{ | |
var types = typeof(T).Assembly.GetTypes() | |
.Where(x => !x.IsAbstract && x.IsClass && x.GetInterface(typeof(T).Name) == typeof(T)); | |
foreach (var type in types) |
public static class UriExtensions | |
{ | |
/// <summary> | |
/// Adds the specified parameter to the Query String. | |
/// </summary> | |
/// <param name="url"></param> | |
/// <param name="paramName">Name of the parameter to add.</param> | |
/// <param name="paramValue">Value for the parameter to add.</param> | |
/// <returns>Url with added parameter.</returns> | |
public static Uri AddParameterIfNotNull(this Uri url, string paramName, string paramValue) |