What is Blazor? It’s a framework for browser-based (client-side) applications written in .NET, running under WebAssembly. It gives you all the benefits of a rich, modern single-page application (SPA) platform while letting you use .NET end-to-end, including sharing code across server and client. The announcement post covers more about the intended use cases, timescales, and so on.
Source: Blazor: a technical introduction
Follow this link to setup daily start and stop of your Azure VMs (saves money for dev or test environments that only needs to be active during workhours for instance).
Start/Stop VMs during off-hours solution (preview) | Microsoft Docs
(Goto Marketplace and select Start/Stop VMs during off-hours [Preview] from the search results.)
When done, the above steps have created daily start and stops, to set monday-friday 07:00-19:00 (and off during holiday) go to Resource group -> Automation account -> Schedules.
Deactivate “Scheduled-StartVM” and “Scheduled-StopVM”. Edit “Sequenced-StartVM” and “SequencedStopVM” and set weekdays schedule using these.
A very usable keyboard shortcut when working with html in Visual Studio.
Visual Studio 2015 comes with a new shortcut, Shift+Alt+W wraps the current selection with a div. This shortcut leaves the text “div” selected, making it seamlessly changeable to any desired tag. This coupled with the automatic end tag replacement makes for a quick solution. UPDATE This shortcut is available in Visual Studio 2017 as well, but you must have the “ASP.NET and Web Development” workload installed. Example Shift+Alt+W > p > Enter
Source: How do I wrap a selection with an HTML tag in Visual Studio? – Stack Overflow
In TFS / Visual Studio 2012, you have a few options.
Rollback to a specific version
In Source Control Explorer:
- Right Click the branch you wish to roll back
- Click Rollback…
- Choose Rollback to a specific version
- Enter the changeset number you wish to roll back to.
Rollback a single changeset (you can do this through the dialog loaded above too)
- Right click the changeset you wish to rollback
- Choose Rollback entire changset
Checkin the rollback.
Source: visual studio – Rollback a changeset in tfs – Stack Overflow
Error in Visual Studio 2017 in output window from task manager:
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 5.x
Found bindings for the following environments:
– Windows 64-bit with Node.js 8.x
For VS 2015
- Go to: Tools > Options > Projects and Solutions > External Web Tools
For VS 2017(.3)
- Tools > Options > Projects and Solutions > Web Package Management > External Web Tools (per @nothrow)
- Reorder so that $(PATH) is above $(DevEnvDir)\Extensions\Microsoft\Web Tools\External
See stackoverflow here:
Source: node.js – Node Sass could not find a binding for your current environment – Stack Overflow
This is a super simple extension that adds shortcuts to Tools menu to attach to IIS, IIS Express, as well as any exe files found within the currently loaded solution (Attach To Solution).
Source: Attach To All The Things – Visual Studio Marketplace
Find a compiled list of 5 tools for bundling and minification in ASP.NET Core.
Source: Tools for bundling and minification in ASP.NET Core
When using deployment slots in Azure Web Apps the appsettings and connectionsstrings are changed when swapping slots.
E.g. the production environment slot has the “production” version of appsettings and connectionstrings and the pre production slot has its own version of those settings in the web.config file.
This is default behaviour, unless you use the app settings in the Azure portal for the environments (overrides web.config file) or check the “Slot setting”. (setting will “stick” with the swap).
Read more here:
Set up staging environments for web apps in Azure App Service | Microsoft Docs
Configure web sites: