Visual Studio 2026 Insiders is here!
Wednesday, September 10, 2025
Announcing Visual Studio 2026: Insiders
Visual Studio 2026 Insiders is here!
Monday, February 10, 2025
Visual Studio 2022: HTTP Files and Request Variables
@HostAddress = http://localhost:5200
### CREATE
# @name createEmployee
POST {{HostAddress}}/employees
Content-Type: application/json
{
"firstName": "John",
"lastName": "Doe"
}
// @name createEmployee
{{<requestName>.(response|request).(body|headers).(*|JSONPath|XPath|<headerName>)}}
### GET by Id
GET {{HostAddress}}/employees/{{createEmployee.response.body.$.id}}
Accept: application/json
### UPDATE
PUT {{HostAddress}}/employees/{{createEmployee.response.body.$.id}}
Content-Type: application/json
{
"id": "{{createEmployee.response.body.$.id}}",
"firstName": "{{createEmployee.response.body.$.firstName}}",
"lastName": "Bloggs"
}
Use .http files in Visual Studio 2022
Tuesday, November 21, 2023
Visual Studio 2022 17.9.0 Preview 1.0: Experimental Control Styles
|
|
| Enable Experimental control styles |
Wednesday, September 27, 2023
Visual Studio 2022 17.8.0 Preview 1.0: Case Preserving Find and Replace
|
| Quick Replace (Ctrl + H) |
|
| Replace in Files (Ctrl + Shift + H) |
// EmployeeId
// employeeId
// employeeid
// EMPLOYEEID
// employeeId
// CustomerId
// customerId
// customerid
// CUSTOMERID
// customerId
Tuesday, September 19, 2023
Visual Studio 2022: HTTP Files and Variables
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
WebApplication app = builder.Build();
app.MapGet("/users/{userId}", (int userId) =>
{
return userId;
});
app.Run();
1. Use Inline Variables
@HostAddress = http://localhost:5179
@userId = 1
GET {{HostAddress}}/users/{{userId}}
Accept: application/json
{
"development": {
"userId": 2
},
"test": {
"userId": 3
}
}
|
|
| Environments |
|
|
| Environment: development |
|
|
| Environment: test |
3. Use a user-specific environment file
{
"development": {
"userId": 4
}
}
|
|
| User-specific environment file |
- Variable declared in the .http file
- Variable declared in the httpenv.json.user file
- Variable declared in the httpenv.json file
Jaliya
Friday, June 16, 2023
Visual Studio 2022 17.7.0 Preview 2.0: Improved File Comparisons
- Right-click on a single file, and select "Select for Compare". Then navigate to the second file in the Solution Explorer, right-click on that, and click on "Compare with <SelectedFile>".
- Right-click on a single file, and then click "Compare With…". This will open up the File Explorer. Now you can navigate to any file on disk and select it for comparison.
Monday, June 12, 2023
.NET Upgrade Assistant CLI
dotnet tool install -g upgrade-assistant
dotnet tool update -g upgrade-assistant
upgrade-assistant upgrade
|
|
| upgrade-assistant --help |
Wednesday, May 10, 2023
Visual Studio 2022: Apply File Scoped Namespaces using Code Cleanup Profile
In this post, let's see how we can apply File scoped namespaces to all the existing C# files using a Code Cleanup Profile.
Imagine you have an old .NET project that uses Block scoped namespaces and you are upgrading the project to the latest .NET and you need to use features like File scoped namespaces that got introduced as part of C# 10.0. If you have many files, you definitely don't need to be updating files one by one.
We can apply this change to all the files at once using a Visual Studio Code Cleanup profile.
First, we need to set Namespace declarations code style preference to File scoped (if you haven't already) by going into Tools -> Options -> Text Editor -> C# -> Code Style -> General.|
|
| Update Code Style |
|
|
| Configure Code Cleanup |
Hope this helps.
Happy Coding.
Regards,
Jaliya
Friday, March 17, 2023
Visual Studio 2022: Web API Endpoint Explorer
|
|
| Endpoints Explorer |
|
|
| Endpoints Explorer |
Jaliya
Wednesday, January 25, 2023
Visual Studio 2022: Sending HTTP Requests with .http Files
Do you know Visual Studio has this nice feature to send HTTP Requests using .http files. It's actually pretty neat.
We just have to create a file with .http extension.
|
| .http Files in Action |
Hope this helps!
Happy Coding.
Wednesday, January 18, 2023
Visual Studio 2022 Version 17.5 Preview 2: Text Visualizer Improvements
Tuesday, November 8, 2022
Visual Studio 2022: Enable Quick Add for Add New Items
| Add New Item |
|
|
| Add Multiple Items |
|
|
| Files Created |
Cool features in Visual Studio 2022
Saturday, July 16, 2022
Visual Studio 2022 Version 17.3 Preview 3: IEnumerable Debugger Visualizer Improvements
|
| IEnumerable Debugger Visualizer |
Tuesday, May 31, 2022
Visual Studio 2022 17.3.0 Preview 1.1: Introducing Port Tunneling for ASP.NET Core Projects
Last week, it's Microsoft Build week, and hope you have enjoyed it.
There were some nice announcements and one of my favorites out of them all is this nice feature that got released with Visual Studio 2022 17.3.0 Preview 1.1. That's introducing the private preview of port tunneling in Visual Studio for ASP.NET Core projects.
With this, I can run my Web Application locally and the URL it's running is public and can be accessed from outside of my local environment. With most of us working from home, I am finding this very helpful. I can do things like,
- Share the public URL with a colleague to test out the application.
- If it's a Frontend Web Application, access the URL from my mobile, and see how it's behaving.
- I don't have to deploy the application to test a Webhook with a third party etc
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:4367",
"sslPort": 44305
}
},
"profiles": {
"WebApplication1": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "https://localhost:7015;http://localhost:5015",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"createTunnel": true,
"tunnelAuthentication": "public",
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
- "createTunnel": true
- "tunnelAuthentication": "public"
- private - only the user who created the tunnel can access it after signing in.
- org - only users in the organization can access it after signing in.
- public - the tunnel is accessible by anyone and no sign-in is needed.
Regards,
Jaliya
Monday, May 2, 2022
Visual Studio 2022: Temporary Breakpoints
|
|
| Insert Temporary Breakpoint |
Friday, February 4, 2022
Visual Studio 17.1 Preview 5: Streamlined File Scoped Namespacing
This is a quick post on a very nice feature that got introduced with Visual Studio Version 17.1.0 Preview 5.0 (released on February 1, 2022).
I am using .NET 6/C# 10.0 in most of my projects and I have been updating the source files to use File Scoped Namespaces. I have been adding a semicolon at the end of the namespace name and then I had to manually delete unnecessary curly braces. And that was tiring.
|
|
| Converting to File Scoped Namespaces |
But I no longer have to do that, Hooray! With the Visual Studio Version 17.1.0 Preview 5.0, I can just add the semicolon at the end of the namespace name, and Visual Studio takes care of the rest automatically. I just love this!
If you are planning on migrating your code to use File Scoped Namespaces, I would highly recommend doing so with the latest Visual Studio 2022 Preview, it's going to save you a lot of time.
Happy Coding.
Thursday, January 6, 2022
Great Start to the Year: Visual Studio 17.1 Preview 2 is Now Available
- .NET Productivity
- Git Tooling
- Code Editor
- IDE
- Test tools
- And more
.NET Productivity: Go to Definition, Navigate to the Original Source File
|
| Go to Definition in Visual Studio 17.1 Preview 2 |
|
| Go to Definition in Earlier Version of Visual Studio |
Git Tooling: Enable line-staging support
Editor: Code Cleanup on Save
Happy Coding and Happy New year everyone!
Tuesday, November 9, 2021
Visual Studio 2022 and CI/CD Using GitHub Actions Workflows
Finally Visual Studio 2022 (the first-ever 64-bit version of Visual Studio) is released with great features, such as Hot Reload for .NET and C++ (Web, WPF, Windows Forms, you name it), cross-platform testing, etc.
In this post let's see the seamless integration Visual Studio 2022 provides with GitHub actions.
I have a repo hosted in GitHub and I wanted to enable CI/CD to deploy to an Azure App Service. I can do that with very few steps and even without leaving Visual Studio. Let's see how.
First I am right-clicking on the project and selecting Publish.
|
| Publish |
|
| Azure |
|
| Azure App Service (Linux) |
|
| Select the App Service |
|
| API Management - Skipping |
|
| CI/CD using GitHub Actions workflows (generated yml file) |
|
| CI/CD |
Jaliya

















