Fixes #3784. SelfContained and NativeAot projects should use the local package in the release mode. (#3785)

* Fixes #3784. SelfContained and NativeAot projects should use the local package in the release mode.

* Run dotnet restore before build.

* Using local_packages folder for CI.

* Add build_release_consumer.

* Remove build_release_consumer.

* Fix folder for CI.

* Fix System.Text.Json vulnerability.

* Fix local_packageslocation.

* Add package sources to the packageSourceMapping tag.

* Using the original configuration.

* Only add the Terminal.Gui pattern in the LocalPackages.

* Fix the path folder separator with unit style.

* Using pack instead of build.

* Create LocalPackages Directory

* Add local_packages source.

* Using scripts to build release for NativeAot and SelfContained.

* Trying to fix path.

* Again.

* Fix the path for the package,

* Need to build before pack.

* Needs also build before pack locally.

* Fix build path.
This commit is contained in:
BDisp
2024-10-11 02:31:55 +01:00
committed by GitHub
parent f789f6a872
commit 9c6a3058d4
10 changed files with 55 additions and 4 deletions

View File

@@ -90,7 +90,13 @@ jobs:
dotnet-version: 8.x
dotnet-quality: 'ga'
- name: Build Release
- name: Build Release Terminal.Gui
run: dotnet build Terminal.Gui/Terminal.Gui.csproj --configuration Release
- name: Pack Release Terminal.Gui
run: dotnet pack Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ./local_packages
- name: Build Release Solution
run: dotnet build --configuration Release