Challenge - 5 Problems
Master of .NET SDK Setup
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate1:30remaining
Output of .NET SDK Version Check Command
What is the output of running the command
dotnet --version after installing the .NET SDK version 7.0.100?Attempts:
2 left
💡 Hint
The
dotnet --version command prints only the version number of the installed SDK.✗ Incorrect
The
dotnet --version command outputs the exact version number of the installed .NET SDK, such as '7.0.100'. It does not print extra text or error messages if the SDK is installed correctly.🧠 Conceptual
intermediate1:30remaining
Understanding .NET SDK and Runtime Relationship
Which statement correctly describes the relationship between the .NET SDK and the .NET Runtime?
Attempts:
2 left
💡 Hint
Think about what you need to build and run apps versus just running them.
✗ Incorrect
The .NET SDK contains the .NET Runtime plus tools like the compiler and CLI commands. The Runtime alone is only for running apps, not building them.
🔧 Debug
advanced2:00remaining
Diagnosing .NET SDK Not Found Error
You installed the .NET SDK on Windows but running
dotnet --version returns 'dotnet: command not found'. What is the most likely cause?Attempts:
2 left
💡 Hint
Check if the system knows where to find the dotnet command.
✗ Incorrect
If the PATH variable does not include the SDK install folder, the system cannot find the dotnet command, causing this error.
📝 Syntax
advanced1:30remaining
Correct Command to Install a Specific .NET SDK Version
Which command correctly installs .NET SDK version 6.0.400 using the dotnet-install script on Linux?
Attempts:
2 left
💡 Hint
The official script uses the --version option with the bash command.
✗ Incorrect
The official dotnet-install script is run with bash and uses the --version option to specify the SDK version.
🚀 Application
expert2:30remaining
Determining Installed .NET SDKs Programmatically
You want to write a C# program that lists all installed .NET SDK versions on the machine. Which approach will reliably get this information?
Attempts:
2 left
💡 Hint
Think about a cross-platform way to get all SDK versions from the official tool.
✗ Incorrect
The
dotnet --list-sdks command lists all installed SDK versions on any platform. Running it and parsing output is reliable and cross-platform.