[PR #847] [MERGED] Add /no-restore and SelfContained property support in CLI #1319

Open
opened 2026-01-29 16:59:37 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ElectronNET/Electron.NET/pull/847
Author: @gorsheninmv
Created: 4/29/2024
Status: Merged
Merged: 4/29/2024
Merged by: @FlorianRappl

Base: developHead: feat-introduce-new-cli-args


📝 Commits (1)

  • 91714f5 feat: CLI: add /no-restore arg and SelfContained propeprty support

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 src/ElectronNET.CLI/Commands/BuildCommand.cs (+9 -1)

📄 Description

/no-restore
It's that MSBuild doesn't have property to control restore policies. These command are implemented in dotnet cli but not in MSBuild.
/no-restore option can be useful for flexlible control in CI\CD pipelines.

SelfContained
Optional --self-contained arg will be useful to reduce package size if the required .net runtime is expected to be installed.

The new options maintain backward compatibilty.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ElectronNET/Electron.NET/pull/847 **Author:** [@gorsheninmv](https://github.com/gorsheninmv) **Created:** 4/29/2024 **Status:** ✅ Merged **Merged:** 4/29/2024 **Merged by:** [@FlorianRappl](https://github.com/FlorianRappl) **Base:** `develop` ← **Head:** `feat-introduce-new-cli-args` --- ### 📝 Commits (1) - [`91714f5`](https://github.com/ElectronNET/Electron.NET/commit/91714f5807f909b3a1c6be7cc0f799455efed682) feat: CLI: add /no-restore arg and SelfContained propeprty support ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/ElectronNET.CLI/Commands/BuildCommand.cs` (+9 -1) </details> ### 📄 Description `/no-restore` It's that MSBuild doesn't have property to control restore policies. These command are implemented in dotnet cli but not in MSBuild. /no-restore option can be useful for flexlible control in CI\CD pipelines. `SelfContained` Optional --self-contained arg will be useful to reduce package size if the required .net runtime is expected to be installed. The new options maintain backward compatibilty. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:59:37 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1319