DeveloperWindows

Adding the Visual Studio Developer Command Prompt to Windows Terminal

The Windows Terminal was announced at Build 2019 and is open source and free. In this article I’ll show you how to add a new shell profile for the Developer Command Prompt for VS2019.

Getting Windows Terminal

Windows Terminal requires Windows 10 1903. You can get the Windows Terminal for free from the Store. For users who are unable to download from the Store, Windows Terminal builds can manually be downloaded from the repositories Release page.

JSON Syntax

The Windows Terminal settings is stored in a “Profiles.json” file. You can access this file from the Settings menu located in the dropdown menu to the right of the add new shell button as shown below.

Alternatively this file is located in the following path:

%USERPROFILE%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState

Editing the Profiles.json file is easy, but if your unfamiliar with the JSON syntax then there are few things you need to know.

  1. Do not use backslash (\) in file paths. These should be replaced with a forward slash (/).
  2. Always close files paths in double quotes.
  3. All lines must end in a comma except for the last line in a section or block.

Adding the Develper Command Prompt Profile

This section assumes that you have Visual Studio 2019 installed and have access to the Developer Command Prompt for VS 2019.

{
    "acrylicOpacity": 0.75,
    "closeOnExit": true,
    "colorScheme": "Campbell",
    "commandline": "cmd.exe /k \"C://Program Files (x86)//Microsoft Visual Studio//2019//Enterprise//Common7//Tools//VsDevCmd.bat\"",
    "cursorColor": "#FFFFFF",
    "cursorShape": "bar",
    "fontFace": "Consolas",
    "fontSize": 10,
    "guid": "{26b30263-74e9-4146-b80e-11632e86d42c}",
    "historySize": 9001,
    "icon": "ms-appdata:///roaming/vs2019-32.png",
    "name": "Developer Command Prompt for VS2019",
    "padding": "0, 0, 0, 0",
    "snapOnInput": true,
    "startingDirectory": "%USERPROFILE%",
    "useAcrylic": true
},

A couple things to note about the above profile that you might need to change based on your local system.

  1. For the “commandline” line, you will want to change “Enterprise” to the Visual Studio 2019 SKU you have, like “Professional” or “Community”.
  2. For the “icon” line, I downloaded a VS 2019 icon from https://visualstudio.microsoft.com/vs/ and resized it to 32×32 and saved it in my RoamingState folder %USERPROFILE%\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState
  3. For the “guid” line, you need to generate a new GUID and enter it in here.

Once you’ve saved these changes restart the Windows Terminal app and your new Developer Command Prompt for VS 2019 will be listed.

There are a number of other consoles you can add like “Python”, “Linux Bash”, “PowerShell Core, “Ubuntu”, and many more.

Enjoy!

References

Windows Terminal on GitHub

Download Windows Terminal from the Store

Windows Terminal Documentation

A new Console for Windows – It’s the open source Windows Terminal

ArchitectureAzureCloud

Learn all about Distributed Application Runtime (Dapr), Part 2 | Azure Friday

In this episode of Azure Friday, Aman Bhardwaj and Yaron Schneider join Scott Hanselman to talk about the actor model of Distributed Application Runtime (Dapr). Dapr is a portable, event-driven runtime that makes it easy for developers to build resilient, microservice stateless and stateful applications that run on the cloud and edge and embraces the diversity of languages and developer frameworks.

[00:01:36] – Demo

Source: Channel 9

Resources

ArchitectureAzureCloud

Learn all about Distributed Application Runtime (Dapr), Part 1 | Azure Friday

In this espisode of Azure Friday, Aman Bhardwaj and Yaron Schneider join Scott Hanselman to talk about the core concepts of Distributed Application Runtime (Dapr). Dapr is a portable, event-driven runtime that makes it easy for developers to build resilient, microservice stateless and stateful applications that run on the cloud and edge and embraces the diversity of languages and developer frameworks.

[00:02:19] – Demo

Source: Channel 9

Resources

Uncategorized

Prairie.Code() 2019 – SQL Server DevOps

Great presentation on SQL Server DevOps!

Scott Sauber's avatarScott Sauber

Note: Slides do not tell the whole story of the talk, so take the stand alone slides with a grain of salt. Things may be taken out of context.

Slides: PPTX or PDF

View original post

Uncategorized

Prairie.Code() 2019 – Building Large, Yet Maintainable, ASP.NET Core Applications

Great post on building and maintaining ASP.NET / ASP.NET Core applications.

Scott Sauber's avatarScott Sauber

Note: Slides do not tell the whole story of the talk, so take the stand alone slides with a grain of salt. Things may be taken out of context.

Slides: PDF or PPTX

View original post

Uncategorized

Azure Icon Update is Coming

New Azure icons are coming. Read more about this at

Azure Icon Update Coming (New Icon Images)

Azure

Buy Domain Names with Azure App Service Domain — Build Azure

There’s a feature for purchasing Internet Domain Names within Microsoft Azure that’s not very widely known. With the Azure App Service Domain feature, you can purchase and manage your domain names directly within Microsoft Azure. This is a sort of “hidden” feature since not many people know it exists, and it’s not talked about very…

Buy Domain Names with Azure App Service Domain — Build Azure
Uncategorized

Microsoft Learn is the new Microsoft Virtual Academy — Build Azure

Over the last few months I’ve seen a lot of comments about Microsoft Virtual Academy being retired, in addition to a fair amount of traffic going to an article I posted about Microsoft Virtual Academy (MVA) being retired January 31, 2019. It’s important to note that Microsoft hasn’t abandoned the learning community. They’ve actually been…

Microsoft Learn is the new Microsoft Virtual Academy — Build Azure
Uncategorized

A Lap around the WinUI TeachingTip Control

xamlbrewer's avatarXAML Brewer, by Diederik Krols

In this article we will run through a couple of scenarios using the UWP TeachingTip control. This relatively new control is an animated flyout that according to the documentation “draws the user’s attention on new or important updates and features, remind a user of nonessential options that would improve the experience, or teach a user how a task should be completed”.

The high quality of this official documentation made us decide to skip a high-level introduction and to immediately expose the TeachingTip control to some more challenging ‘enterprise-ish’ scenarios. Here are the things you can expect us to cover in this article:

  • programmatically creating a TeachingTip,
  • precision targeting a XAML control,
  • state management,
  • auto-hiding a TeachingTip on time-out and navigation, and
  • building an inherited control.

We also added a sample that expresses our concerns on the light dismiss behavior, and identified an interesting use case for the TeachingTip as ‘Form…

View original post 1,712 more words

AzureCommunityEvents

Hack the North Recap (2019)

Last week was Canada’s biggest hackathon called Hack the North, where 1,500 students from all around the world at the University of Waterloo to build something amazing over 36 hours. I had the opportunity to be a mentor and help these smart kids out with their creations.

This is my second hackathon, the first being the UofTHacks VI from earlier in the year. Both are very different from one another but had the same drive and passion from the students and it was amazing to see what they were building.

Here is a gallery of the day.

Hanging out in the mentor hub to share all things Azure, AI, and anything to help with this event.
Just hanging out with the gang. I love events like this!

That’s a wrap. I look forward to my next hackathon in 2020.

Resources

https://hackthenorth.com/