17580ee22f
* Add .NET 7, drop .NET 5 * Add libssl3 to common-utils for jammy * Handle lts/latest hard coding * Fix, improve tests * Bump version * Fix situation where version could come from either MS repo or OS * Remove unused option * Bump common version * Remove unused function * Restore DOTNET_ROOT per feedback
21 lines
571 B
Bash
Executable file
21 lines
571 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Optional: Import test library
|
|
source dev-container-features-test-lib
|
|
|
|
# Definition specific tests
|
|
check "dotnet" dotnet --info
|
|
check "sdks" dotnet --list-sdks
|
|
check "version" dotnet --version
|
|
|
|
echo "Validating expected version present..."
|
|
check "some major version of dotnet 7 is installed" bash -c "dotnet --version | grep '7\.[0-9]*\.[0-9]*'"
|
|
|
|
# Verify current symlink exists and works
|
|
check "current link dotnet" /usr/local/dotnet/current/dotnet --info
|
|
check "current link sdk" ls -l /usr/local/dotnet/current/sdk
|
|
|
|
# Report result
|
|
reportResults |