Skip to content

Visual Studio vs VS Code for .NET: one Web API with a slow and a fast endpoint on net10.0 - #2256

Open
vladimir-pecanac-main wants to merge 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/125671-visual-studio-vs-vs-code
Open

vladimir-pecanac-main wants to merge 2 commits into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/125671-visual-studio-vs-vs-code

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Adds visual-studio/VisualStudioVsVsCode, a new folder for the new article "Visual Studio vs VS Code for .NET Developers".

A small ASP.NET Core Web API on net10.0 with one slow endpoint (string concatenation in a loop) and one fast endpoint (StringBuilder) that return the same report, plus two xUnit tests. The article opens the same solution in both tools and finds the slow endpoint with Visual Studio's CPU Usage tool and with dotnet-counters and dotnet-trace in VS Code.

  • dotnet test runs the two tests.
  • The README lists the commands the article uses, including the VS Code Hot Reload user setting.

The article is not published yet. This PR stays open until the article goes live.

… Windows so VS Code Hot Reload finds the source

The C# Dev Kit build wrote the source paths into the PDB as d:\..., and Hot Reload then logged "doesn't match output PDB: no document" and applied nothing. Directory.Build.props sets PathMap from the project's drive letter, on Windows only. README notes the file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant