You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I install .NET SDK 8.0.402 on a fresh Mariner VM (in Azure cloud) and do dotnet --version, the version is printed and the command has an exit status of 0. However, if I install the latest version, 8.0.403, dotnet --version prints an error message and has an exit status of 150.
To Reproduce
Create a Mariner 2.0 VM in Azure from PowerShell:
$image = 'MicrosoftCBLMariner:cbl-mariner:cbl-mariner-2:latest'
$location = 'westus2'
$nsg = "${env:USERNAME}-nsg"
$prefix = "${env:USERNAME}-mariner2-1"
$rg = "${env:USERNAME}-rg"
$sshkeypath = "$env:USERPROFILE\.ssh\id_rsa.pub"
$subnet = "${env:USERNAME}-subnet"
$subscription = '<Azure subscription name>'
$vmsize = 'Standard_D4ds_v5'
$vnet = "${env:USERNAME}-vnet"
az login
az account set -s $subscription
az group create --name $rg --location $location
az network nsg create --resource-group $rg --name $nsg --location $location
az network vnet create --resource-group $rg --name $vnet --location $location --subnet-name $subnet --nsg $nsg
az network public-ip create --resource-group $rg --name $prefix-ip --location $location --sku standard
az network nic create --resource-group $rg --name $prefix-nic --location $location --public-ip-address $prefix-ip --vnet-name $vnet --subnet $subnet
az vm create --name $prefix-vm --resource-group $rg --location $location --size $vmsize --image $image --admin-username azureuser --ssh-key-values $sshkeypath --nics $prefix-nic
$ dotnet --version
You must install or update .NET to run this application.
App: /usr/share/dotnet/sdk/8.0.403/dotnet.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '8.0.10' (x64)
.NET location: /usr/share/dotnet/
The following frameworks were found:
8.0.8 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Learn more:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.10&arch=x64&rid=linux-x64&os=mariner.2.0
$ echo$?
150
The text was updated successfully, but these errors were encountered:
damonbarry
changed the title
dotnet command fails after installing .NET SDK 8.0.402 on Mariner 2.0
dotnet command fails after installing .NET SDK 8.0.403 on Mariner 2.0
Oct 22, 2024
Describe the bug
If I install .NET SDK 8.0.402 on a fresh Mariner VM (in Azure cloud) and do
dotnet --version
, the version is printed and the command has an exit status of 0. However, if I install the latest version, 8.0.403,dotnet --version
prints an error message and has an exit status of 150.To Reproduce
Create a Mariner 2.0 VM in Azure from PowerShell:
Then SSH into the VM and run:
The output of the last two commands:
Then run:
The output of the last two commands:
The text was updated successfully, but these errors were encountered: