Challenge - 5 Problems
Project Structure Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
Understanding the default output path in a .csproj file
Given this snippet from a .csproj file:
What is the folder where the compiled DLL will be placed when building in Debug mode?
<PropertyGroup> <OutputPath>bin\Debug\net7.0\</OutputPath> </PropertyGroup>
What is the folder where the compiled DLL will be placed when building in Debug mode?
Attempts:
2 left
💡 Hint
Look at the OutputPath element and the build configuration.
✗ Incorrect
The OutputPath element specifies the folder where the build output goes. Here, it is bin\Debug\net7.0\ for Debug builds.
❓ Predict Output
intermediate2:00remaining
Effect of TargetFramework in a .csproj file
What will be the target framework of the project given this .csproj snippet?
<PropertyGroup> <TargetFramework>net6.0</TargetFramework> </PropertyGroup>
Attempts:
2 left
💡 Hint
The TargetFramework element specifies the version of .NET to target.
✗ Incorrect
The value net6.0 means the project targets .NET 6.0.
❓ Predict Output
advanced2:00remaining
Determining the number of project references
Given this .csproj snippet:
How many project references does this project have?
<ItemGroup> <ProjectReference Include="..\Library1\Library1.csproj" /> <ProjectReference Include="..\Library2\Library2.csproj" /> </ItemGroup>
How many project references does this project have?
Attempts:
2 left
💡 Hint
Count the ProjectReference elements inside ItemGroup.
✗ Incorrect
There are two ProjectReference elements, so the project references two other projects.
❓ Predict Output
advanced2:00remaining
Output type effect on build output
What will be the output file type if the .csproj file contains:
<PropertyGroup> <OutputType>Exe</OutputType> </PropertyGroup>
Attempts:
2 left
💡 Hint
OutputType controls the kind of output assembly produced.
✗ Incorrect
OutputType set to Exe means the build produces an executable file (.exe).
🧠 Conceptual
expert3:00remaining
Understanding SDK attribute in .csproj
What is the purpose of the SDK attribute in the <Project> element of a .csproj file like:
<Project Sdk="Microsoft.NET.Sdk">?
Attempts:
2 left
💡 Hint
Think about what the SDK attribute controls in the build process.
✗ Incorrect
The SDK attribute tells MSBuild which SDK to use, which includes build tools, targets, and default settings.