Build, Restore and Clean .NET Project ran dotnet as a background task of the .NET tool window, with no Build window output, no status bar progress and no notification; the output appeared only in the NuGet Packages window afterwards. They now run through a new build_dotnet_command host command on the shared .NET build runner, so output and errors stream into the Build window, Stop Build cancels, Rerun repeats, and a notification reports the result. The selected project is re-evaluated (and audited after a restore) only when the command succeeds.
Fixes#7853
A .NET Project run configuration gains a Run with dotnet watch option: dotnet watch --non-interactive in the same Run tab, with launch profiles still applied and the terminal emulated so Stop ends the watcher; Debug and tests run without it.
C#, F# and Visual Basic projects gain Publish .NET Project...: choose a folder publish profile (server and container profiles are not listed), or set configuration, framework, runtime, self-contained and output folder. dotnet publish streams into the Build tool window, can be cancelled and rerun, through a new build_dotnet_publish command sharing the dotnet format runner.
Closes#7900
Co-authored-by: wildcatDownstairs <[email protected]>
The .NET feature listed dotnet.sources and dotnet.sourceChange twice (added by #7424 and again by #7434); the identical second copy is removed. No behaviour change.
A .NET project node in the Project view's solution tree was a leaf for its .csproj holding only Dependencies. It now lists the project's folder (bin and obj left out) below Dependencies, keeps the project's .NET context actions, and Select Opened File reveals files of a project in the solution tree. The project file opens from the node's Edit '<name>.csproj' menu item.
Closes#7859
Co-authored-by: Inf1mum <[email protected]>
Tool windows that borrowed coloured file, status, action or vendor icons (Documentation, Find Usages, GitHub Actions, Logcat, Python Console, NuGet, Python Packages, Jupyter Variables, Ports, the Flutter DevTools windows, Coverage) get dedicated monochrome icons at 16 and 20 px; the coloured originals stay where trees, badges and VCS use them. Database Consoles and Query Workspace get a console icon instead of the table grid, and data source entries use the database cylinder.
Icons in the project view, trees, tabs, menus and several popups take --fg-icon instead of --fg-muted / --fg-subtle, so monochrome icons have the same contrast in dark themes.
In a project that uses CSharpier (a dotnet tool manifest entry, or a .csharpierrc* / .csharpierignore with CSharpier installed), Reformat Code and format on save of a whole .cs file run CSharpier; selections and other projects keep the language server. CSharpier 0.x uses its pipe protocol. Solutions and projects get Run dotnet format and Verify dotnet format (No Changes) in the Project view and Find Action, with output in the Build window. The real SDK tests are ignored by default.
Closes#7626
Co-authored-by: wildcatDownstairs <[email protected]>
After a successful restore, packages are audited for known vulnerabilities, deprecations and newer versions; findings show as markers in project and Directory.Packages.props files and as Problems entries.
Audits distinguish resolved versions, combine diagnostics for shared central package files, compute multi-line UTF-16 spans correctly, and run only after the actual target restored.
Closes#7439
Co-authored-by: wildcatDownstairs <[email protected]>
The NuGet Packages window reads Directory.Packages.props: each package shows where its version is defined or pinned and any VersionOverride, and Check NuGet Package Updates offers an update to the newest version.
Metadata and update checks are scoped to the selected project, configuration and framework and run independently; one-click updates are withheld when compatibility across target frameworks is not verified.
Co-authored-by: wildcatDownstairs <[email protected]>
A Package sources panel lists NuGet sources and adds, enables, disables or removes them through dotnet nuget, writing to a chosen NuGet.Config under the workspace or the user-wide file.
Edits go only to the config file that defines a source, stale work is cancelled when the project or selection changes, and URL credentials are redacted from errors. CI installs SDK 10 and 11 for the real-CLI tests.
Co-authored-by: wildcatDownstairs <[email protected]>
Solution folders from .sln and .slnx files appear as nested nodes under the solution, holding their projects and solution items; projects outside every folder follow.
Parent folders an SLNX file only implies are created, literal slashes in legacy folder names are kept, and uppercase .SLNX extensions are accepted.
Co-authored-by: wildcatDownstairs <[email protected]>
Each .NET project lists its packages, project references, framework references and analyzers under a Dependencies node.
Expandable .csproj rows keep their file behaviour (open, rename, context menu), same-named references and analyzers stay distinct, and the evaluated target framework is labelled.
Co-authored-by: wildcatDownstairs <[email protected]>
Add Existing Project, Add/Remove Project Reference and Remove from Solution on .NET solution and project nodes, running dotnet sln/reference one at a time.
Queued edits are cancelled when the workspace changes, the tree refreshes after a partially failed CLI edit, and solution paths are normalized before comparing them.
Co-authored-by: wildcatDownstairs <[email protected]>
Since #6224 the Project view listed every discovered .NET solution and standalone project above the project folder, so a polyglot repository with many solutions in subfolders got dozens of root nodes ahead of its own folder. Only solution and project files directly in a content root (the project root, or each workspace member folder) now get a node there; nested ones stay in their folders, where they already showed.
Fixes#6803
While the .NET workspace scan runs, or after it failed, the Project view showed nothing where the solutions would appear. One placeholder .NET root now carries the state as grey detail text (Scanning… / Scan failed); idle and empty still registers no root, and a failed scan still retries on next use.
Refs #5635
Co-authored-by: Inf1mum <[email protected]>
The Project view lists the discovered .NET workspace above the project folder: a Solution '<name>' group per solution with a leaf per project, and standalone projects as roots of their own. Each leaf is the real project file, so run/debug, build, selection and Select In work on it, and the same file still shows in its own folder.
The shared workspace scan starts only when the file index holds .sln, .slnx or project files; the check retries once the index settles, so a fresh open still gets the nodes, and a workspace without .NET is never scanned at open. Project view roots gain an optional file leaf for this.
Co-authored-by: Inf1mum <[email protected]>
Removes the standalone .NET tool window, its stripe button and dotnet.show. NuGet package search / install / update / remove move to a bottom "NuGet Packages" tool window (stripe onUse) opened by dotnet.packages. Build / Restore / Clean / Test act on the project of the current context: the Project view's selected .csproj / .fsproj / .vbproj / .sln, else the active editor's project, else the solution (the NuGet-selected project without one); an unloaded workspace model is scanned once, shared between concurrent actions and the NuGet window, and retried after a failure. Build / Restore / Clean join the Project view context menu for project and solution files.
Review fixes: the context target reads the workbench projectViewSelection() instead of importing the project-tree store; the NuGet window loads the model through the shared scan; the menu uses the same path helpers as the target resolution.
Refs #5635
Co-authored-by: Inf1mum <[email protected]>
* feat(run): show .NET test results and rerun failed methods
* feat(dotnet): add workspace, NuGet and editor test workflows
* fix(dotnet): discard cancelled queries and scan test targets linearly