Commit Graph

1 Commits

Author SHA1 Message Date
Philipp Grathwohl 5505b52d75 feat(manager/nuget): Support single file package directives (#40040)
* Add nuget capability to read packages from cs files

This is useful for dotnet source files that make use
of the .NET 10 feature to have single file projects,
where packages and sdks can be defined in a source
file.

* Add tests to validate that the nuget.config file is respected for single csharp files

* Apply PR linter suggestion for prettier code

* Remove unnecessary try-catch to increase code coverage

* Update phrasing in documentation

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>

* Use codeblock instead of fixture

* Remove unused import

* Remove unnecessary fixtures and only verify required methods are called

* Fix imports in single-chsarp-file.ts

* Fix import ordering

* Increase code block indent

---------

Co-authored-by: RahulGautamSingh <rahultesnik@gmail.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-02-19 18:06:30 +00:00