Kamron Batman
186fc9ae17
Resolve global.json latestMajor to the newest active release instead of LTS ( #803 )
...
* Resolve global.json latestMajor to the newest active release, not LTS
rollForward: latestMajor cleared the version, which createChannelArgument mapped to the LTS channel. When the declared sdk.version belongs to an STS release, the LTS channel is older than the declared version and the installed SDK does not satisfy global.json. Resolve it from the releases index to the newest active release of either support type, still GA only.
* Limit latestMajor resolution to global.json and enforce the minimum version
An empty version without rollForward latestMajor (for example a global.json
without sdk.version) resolves to the LTS channel again. After an online
install, the action fails if the installed SDK is older than the global.json
minimum version. The installer tests now mock the releases index instead of
calling the live service.
2026-11-30 11:28:00 -06:00
v-mahabaleshwars
84bc3a3451
Add support for installing .NET runtimes alongside SDKs ( #806 )
...
* Add support for installing .NET runtimes alongside SDKs
* Add tests for preview runtime pairing and fallback logic in installer
2026-11-20 08:13:57 -06:00
Priya Gupta
6ec5c6b286
Add fallback install directory when default is not writable ( #785 )
...
* Add fallback install directory when default is not writable
* Refactor macOS install directory handling to warn when default is not writable
2026-10-30 08:13:43 -05:00
Chiranjib Swain and chiranjib-swain
349aa191ae
Add skip-lts-prepass input to optimize .NET SDK installation process ( #791 )
...
- Introduced `skip-lts-prepass` input to allow users to skip the LTS runtime pre-pass during installation.
- Updated documentation to explain the new input and its usage.
- Enhanced tests to verify the behavior of the `skip-lts-prepass` functionality.
Co-authored-by: chiranjib-swain <chiranjib-swain@github.com >
2026-10-21 16:53:54 -05:00
v-mahabaleshwars and mahabaleshwars
074373ff88
Add check-latest input to reuse a locally installed .NET SDK and skip network calls ( #774 )
...
* check-latest-input feature implemented
* e2e test update
* e2e-tests.yml updated
* update documentation
* fix: align local SDK matching with the online resolver
* implement review comments
* implement review comments
* implement review comments
* implement review comments
* implement review comments
* implement review comments
* implement review comments
---------
Co-authored-by: mahabaleshwars <147705296+mahabaleshwars@users.noreply.github.com >
2026-09-28 09:46:01 -05:00
Priya Gupta
6df8cefd14
Migrate to ESM and upgrade dependencies ( #752 )
...
* Migrate to ESM and upgrade dependencies
* Address review: use type-only import for QualityOptions
* update version to 6.0.0 in package.json and package-lock.json
* Add ESM migration note to README for V6
* Update test imports for ESM and clean up devDependencies (ts-node, @types/jest)
* Pin @types/node to 24.x and refine tsconfig/README wording
2026-07-15 15:41:57 -05:00
Jason Ginchereau
4406a635cd
Bump @actions/cache to 5.1.0, log cache write denied ( #746 )
...
* Bump @actions/cache to 5.1.0, log cache write denied
* Add cache save failure test case
* Update dist
* Resolve high-severity audit issues
2026-06-22 13:33:08 -05:00
Priya Gupta
95a3f8b067
Validate global.json SDK version before rollForward optimization ( #742 )
2026-06-16 12:26:42 -05:00
js6pak
98af08bf64
Support global.json's rollForward latest* variants ( #538 )
...
* Rename toolcache directory instead of moving to tmp
This further enhances time savings seen in #213 , down from a few minutes to seconds.
* Remove branch constraint on workflows used for testing
This means you are going to be notified of CI issues quicker, especially if you have to wait for a confirmation before running the workflows on your PR.
* Support global.json's rollForward latest* variants
* Remove e2e-test's dependency on Microsoft.NET.Test.Sdk
The newer versions are net8.0/net462+ only, making older .NET sdks more annoying to test
* Revert "Remove e2e-test's dependency on Microsoft.NET.Test.Sdk"
This reverts commit 14839a662649cdea79ccecc3a7ce9a91386185b4.
* Don't run unsupported versions in global.json tests
* Revert "Remove branch constraint on workflows used for testing"
This reverts commit d9dae35030 .
2026-05-26 17:43:27 -05:00
Alexander Köplinger and Copilot
f1970f5ca3
Don't download releases-index.json to resolve major version ( #560 )
...
* Don't download releases-index.json to resolving major version
Starting with .NET 5 the minor version is always zero.
The earlier releases don't get new versions anymore so we can hardcode the minor version instead of downloading releases-index.json to do the lookup.
* Remove unused variable
* Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Commit dist/setup/index.js
* Refresh after copilot commits
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-05-11 12:11:45 -05:00
mahabaleshwars
af9211b136
Add dotnet-version: latest support with dotnet-channel input ( #730 )
...
* feat: add dotnet-version: latest keyword with dotnet-channel support (#497 )
* restore test-proxy container image
* update e2e-tests.yml and documentation
* fix(tests): correct release-type and support-phase values in latest-version test mocks
2026-04-27 13:24:18 -05:00
priya-kinthali
02574b18e2
Add support for optional architecture input for cross-architecture .NET installs ( #700 )
...
* fix basic validation with npm command
* Revert "fix basic validation with npm command"
This reverts commit 27a0803a2a .
* add architecture support
* updated installdir logic
* update architecture resolution
* update normalizeArch
2026-02-26 13:17:54 -06:00
gowridurgad and gowridurgad
131b410979
Add support for workloads input ( #693 )
...
* Add workloads input
* fix typo
* resloves conflicts
* Doc update
---------
Co-authored-by: gowridurgad <gowridurgad@gmail.com >
2026-01-28 18:12:03 -06:00
83c0c1a6c8
v4 - Remove azureedge.net fallback logic and update install scripts (#572 )
...
* Remove logic for azureedge.net fallback in preparation for install script changes
* remove extra spacing
* Update README.md (#587 )
* upgrade cache from 3.2.4 to 4.0.0 (#586 )
* upgrade cache to 4.0.0
* license update
* failure fix
* e2e failure fix
* Configure Dependabot settings (#585 )
* Create dependabot.yml
* update latest install scripts
* Bump actions/publish-immutable-action from 0.0.3 to 0.0.4 (#590 )
Bumps [actions/publish-immutable-action](https://github.com/actions/publish-immutable-action ) from 0.0.3 to 0.0.4.
- [Release notes](https://github.com/actions/publish-immutable-action/releases )
- [Commits](https://github.com/actions/publish-immutable-action/compare/0.0.3...v0.0.4 )
---
updated-dependencies:
- dependency-name: actions/publish-immutable-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump @actions/http-client from 2.2.1 to 2.2.3 (#592 )
* Bump @actions/http-client from 2.2.1 to 2.2.3
Bumps [@actions/http-client](https://github.com/actions/toolkit/tree/HEAD/packages/http-client ) from 2.2.1 to 2.2.3.
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/http-client/RELEASES.md )
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/http-client )
---
updated-dependencies:
- dependency-name: "@actions/http-client"
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix for the check failures
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com >
* Bump undici from 5.28.4 to 5.28.5 (#596 )
* Bump undici from 5.28.4 to 5.28.5
Bumps [undici](https://github.com/nodejs/undici ) from 5.28.4 to 5.28.5.
- [Release notes](https://github.com/nodejs/undici/releases )
- [Commits](https://github.com/nodejs/undici/compare/v5.28.4...v5.28.5 )
---
updated-dependencies:
- dependency-name: undici
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix for the check failures
* fix for licensed check failure
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com >
* Remove old URLs from E2E tests workflow
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: Ben Wells <benwells@github.com >
Co-authored-by: aparnajyothi-y <147696841+aparnajyothi-y@users.noreply.github.com >
Co-authored-by: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com >
2025-02-12 08:36:58 -06:00
Dylan
87b7050bc5
V4 - Use new .NET CDN URLs and update to latest install scripts ( #566 )
...
* Use new .NET CDN URL
* Update to latest install-dotnet scripts
* Use signed version of new `install-dotnet.ps1`
* Add fallback to old CDN URL
2024-12-26 16:21:39 -06:00
John Wesley Walker III
3e891b0cb6
Revise isGhes logic ( #556 )
...
* Revise `isGhes` logic
* `isGhes` should not be exported
* ran `npm run format` and `npm run build`
* ran `npm run update-installers`
2024-10-21 13:32:55 -05:00
HarithaVattikuti
4d6c8fcf3c
Upgrade Node to v20 ( #484 )
...
* Node Version upgrade to 20
* 4.0.0
* Action Files upgrade to 20
* Updated version for outdated
* Update Format check
* Auth Test file update
2023-12-04 19:47:27 +05:30
Nikolai Laevskii
9b40770825
Merge pull request #433 from akv-platform/sequential-version-install-fix
...
Sequential version install fix
2023-06-06 13:43:07 +02:00
Nikolai Laevskii
70fa3206c9
Merge pull request #431 from akv-platform/allow-json-comments
...
Allow json comments
2023-06-06 13:17:59 +02:00
Nikolai Laevskii
d1c99df34e
Parse global.json with JSON5
2023-05-31 12:27:52 +02:00
Nikolai Laevskii
8f71719d12
Add dotnet runtime installation before main script run
2023-05-31 11:21:29 +02:00
Nikolai Laevskii
6019612129
Merge remote-tracking branch 'github/main' into refactor-installer
2023-05-31 11:18:52 +02:00
Nikolai Laevskii
addb470701
Make setup script functions synchronous
2023-05-30 13:19:37 +02:00
Nikolai Laevskii
820f30d332
Make assigning of the script path intuitive
2023-05-30 12:54:41 +02:00
Nikolai Laevskii
89b480a0df
Call addToPath method on DotnetInstallDir directly
2023-05-30 12:19:28 +02:00
Nikolai Laevskii
defac2491f
Rename initialize to setEnvironmentVariable
2023-05-30 12:18:10 +02:00
Nikolai Laevskii
916aec40c9
Rename DotnetInstallDir.path to DotnetInstallDir.dirPath
2023-05-30 12:14:34 +02:00
3447fd6a9f
feat: Cache NuGet global-packages folder ( #303 )
...
* feat: cache NuGet global-packages folder
* fix: remove unused files
* docs: fix incorrect action
* ci: add e2e test for cache
* docs: accept suggested changes on README
* docs: add simple cache example
* build: change main script path
* fix: change relative path to install scripts
* fix: change relative path to problem matcher
* refactor: accept changes on cache-utils
* fix: revert main script path changes
* test: fix cache-utils unit test
* test: fix cache-utils unit test
* feat: add `cache-dependency-path` variables
* build: change main script dist path
* ci: add `cache-dependency-path` e2e test & missing lock file
* fix: accept change suggestions
* ci: copy NuGet lock file to root
to pass "test-setup-with-cache" e2e test
* docs: change README guide
* fix: apply suggestions from code review
Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com >
* test: fix some failed unit tests
- fix `restoreCache()` test for 9703c8
- update installer script
* build: rebuild dist
* Update unit-tests
- Additional unit test were added to setup-dotnet.test.ts
* Update unit tests for unix systems
* Format and lint unit tests
* fix: avoid use '/' on `path.join`
* fix: rebuild dist
* fix: apply suggestions from code review
Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com >
* build: add `DisableImplicitNuGetFallbackFolder` option
also add guide on README
* docs: highlight warnings and notes
* docs: update note about handling NU1403
---------
Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com >
Co-authored-by: IvanZosimov <ivanzosimov@github.com >
2023-05-29 12:43:18 +02:00
Nikolai Laevskii
80a318b8b8
Change PLATFORM to constant instead of function
2023-05-25 13:11:13 +02:00
Nikolai Laevskii
5c7ae4f903
Apply consistent naming
2023-05-24 16:59:05 +02:00
Nikolai Laevskii
b7461a1b69
Remove excessive whitespace
2023-05-24 16:41:16 +02:00
Nikolai Laevskii
cce8e1bad1
Merge branch 'main' into refactor-installer
2023-05-24 16:40:29 +02:00
Nikolai Laevskii
df506c2d9c
Refactor convertInstallPathToAbsolute
2023-05-24 15:28:40 +02:00
Nikolai Laevskii
7e164d3c3b
Fix DOTNET_INSTALL_DIR enviornment variable
2023-05-24 15:27:12 +02:00
Nikolai Laevskii
3dfe2673eb
Format: Refactor installer
2023-05-24 15:22:01 +02:00
IvanZosimov
b05a3f26b3
Fix review points, rebuild solution
2023-05-22 12:27:33 +02:00
IvanZosimov
38b49fb717
Fix informational and debug messages
2023-05-18 12:39:22 +02:00
IvanZosimov
3cf3e230c1
Fix informational message
2023-05-18 12:01:55 +02:00
IvanZosimov
83a1653fa3
Update regular expresiion for isLatestPatchSyntax()
2023-05-18 11:46:40 +02:00
IvanZosimov
2f028bc044
update unit and e2e tests
2023-05-18 11:11:51 +02:00
IvanZosimov
21cf89aa73
Remove commented lines of code
2023-05-16 15:13:18 +02:00
IvanZosimov
fefaa59d2e
update logic of outputting dotnet-version
2023-05-16 14:58:18 +02:00
IvanZosimov
0bc43909e0
Update mechanic of outputting installed dotnet version
2023-05-15 11:45:07 +02:00
Nikolai Laevskii
aa85432603
Refactor installer
2023-05-12 16:28:16 +02:00
Nikolai Laevskii
6d92b9bd53
Refactor install dir computation
2023-05-12 14:07:46 +02:00
IvanZosimov
c5a57b219c
Update unit-tests
2023-05-05 10:44:54 +02:00
IvanZosimov
6adeb768ce
Update docs
2023-05-05 10:43:09 +02:00
IvanZosimov
559e47b01b
Fix review points
2023-04-13 10:33:52 +02:00
IvanZosimov
7358a44590
Update unit tests
2023-04-12 16:44:51 +02:00
IvanZosimov
34c30d0e81
Refactor logic
2023-04-12 15:44:03 +02:00