Skip to content

Add .NET detection with console app and framework detection#2

Closed
dariuszparys wants to merge 1 commit intomicrosoft:mainfrom
dariuszparys:feat/dotnet-detection
Closed

Add .NET detection with console app and framework detection#2
dariuszparys wants to merge 1 commit intomicrosoft:mainfrom
dariuszparys:feat/dotnet-detection

Conversation

@dariuszparys
Copy link
Copy Markdown

This pull request enhances the repository analysis service to better detect .NET projects and their frameworks. It adds deep scanning for .NET project files (.csproj, .fsproj, .sln), recognizes NuGet as a package manager, and parses project files to identify specific .NET frameworks (like ASP.NET Core, Blazor, MAUI, etc.). Additionally, the tech stack identification instructions are updated to include .NET-related files.

.NET and NuGet support:

  • Added detection for .NET project signals (e.g., .csproj, .fsproj, .sln, global.json, packages.lock.json) throughout the repository, not just in the root. This enables more accurate language and framework identification for C# and F# projects. [1] [2]
  • Included packages.lock.json as a NuGet package manager indicator and updated package manager detection logic to recognize NuGet for .NET projects. [1] [2]

.NET framework detection:

  • Implemented recursive parsing of project files to detect frameworks such as ASP.NET Core, Blazor, Entity Framework, MAUI, Xamarin, WPF, Windows Forms, and common .NET test frameworks (xUnit, NUnit, MSTest). [1] [2]

Tech stack identification improvements:

  • Updated copilot instruction generation to include .NET-specific files (.csproj, .fsproj, .sln, global.json) when identifying the tech stack.

@0902cs231028-sys
Copy link
Copy Markdown

Sure buddy that I will do first thing when I resume working on this after few days

digitarald pushed a commit that referenced this pull request Mar 15, 2026
… signals

- Add F# language detection via .fsproj files
- Add .NET framework detection by parsing project file contents
  (ASP.NET Core, Blazor, Entity Framework, MAUI, Xamarin, WPF,
  WinForms, xUnit, NUnit, MSTest, Console)
- Expand .NET signal detection to include global.json and Directory.Build.props
- Add packages.lock.json to PACKAGE_MANAGERS for NuGet lock file detection
- Update instructions prompt to include .fsproj and global.json
- Add 7 new tests covering all new detection paths

Cherry-picked and improved from #2.
@digitarald
Copy link
Copy Markdown
Collaborator

Pulled into #60

@digitarald digitarald closed this Mar 15, 2026
digitarald added a commit that referenced this pull request Mar 15, 2026
… signals (#60)

- Add F# language detection via .fsproj files
- Add .NET framework detection by parsing project file contents
  (ASP.NET Core, Blazor, Entity Framework, MAUI, Xamarin, WPF,
  WinForms, xUnit, NUnit, MSTest, Console)
- Expand .NET signal detection to include global.json and Directory.Build.props
- Add packages.lock.json to PACKAGE_MANAGERS for NuGet lock file detection
- Update instructions prompt to include .fsproj and global.json
- Add 7 new tests covering all new detection paths

Cherry-picked and improved from #2.

Co-authored-by: Harald Kirschner <digitarald@gmail.com>
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.

3 participants