All fields

“SDK & Project Structure (csproj)” in Information Technology

65 questions across 2 technologies.

Information Technology

65 questions in 2 technologies

#QuestionTechnologyTopicLevel
1What is the structure and purpose of a .csproj file in a modern SDK-style .NET project? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
2What does `dotnet new` do, and how do you list available project templates? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Beginner
3How do global.json files pin a specific .NET SDK version for a project or repository? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
4How do project references (<ProjectReference>) differ from package references, and how do they affect build order? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
5What is the .NET SDK, and how does it differ from the .NET Runtime? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Beginner
6What is the dotnet CLI, and what are some of its most commonly used commands? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Beginner
7What does the `dotnet watch` command do, and how does it speed up local development? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Beginner
8What is a .sln (solution) file, and how does it relate to .csproj project files? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
9How does target framework moniker (TFM) selection, like net8.0 or net8.0-windows, affect what a project can do? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
10How do you add, remove, and list NuGet package references using the dotnet CLI? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
11What is Directory.Build.props, and how does it help manage shared MSBuild settings across multiple projects in a repository? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
12What is the difference between framework-dependent deployment (FDD) and self-contained deployment (SCD)? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
13What is the difference between dotnet build, dotnet publish, and dotnet run? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
14What are MSBuild properties and items, and how do they control the build process? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
15What is Native AOT (Ahead-of-Time) compilation, and what are its benefits and constraints? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
16Should a brand-new .NET project in 2026 ever target .NET Framework instead of modern .NET? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkBeginner
17What is the typical CI/CD pipeline structure for a .NET application? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentBeginner
18What are the official .NET Docker base images, and what's the difference between the sdk, aspnet, and runtime image variants? .NET › Docker & Containerization.NETDocker & ContainerizationBeginner
19How does packages.config differ from PackageReference, and which is used in Framework versus modern .NET projects? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkIntermediate
20How do you create and publish your own NuGet package from a class library project? .NET › Assemblies & NuGet.NETAssemblies & NuGetIntermediate
21What are NuGet package sources, and how do you configure a project to pull packages from a private/internal feed alongside NuGet.org? .NET › Assemblies & NuGet.NETAssemblies & NuGetIntermediate
22How does .dockerignore improve Docker build performance and image cleanliness for .NET projects? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
23How does the IExceptionHandler interface (introduced in .NET 8) provide a more structured alternative to the UseExceptionHandler lambda approach? .NET › Global Exception Handling & Middleware.NETGlobal Exception Handling & MiddlewareIntermediate
24How do you define a gRPC service contract using Protocol Buffers (.proto files), and how does code generation work in a .NET project? .NET › gRPC Services.NETgRPC ServicesIntermediate
25How would you optimize a Docker image build for a solution with multiple .NET projects sharing common dependencies, to maximize layer cache reuse? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
26What is the fundamental difference between .NET (formerly .NET Core) and .NET Framework? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkBeginner
27What is an assembly in .NET, and what does it contain? .NET › Assemblies & NuGet.NETAssemblies & NuGetBeginner
28What is NuGet, and what problem does it solve for .NET developers? .NET › Assemblies & NuGet.NETAssemblies & NuGetBeginner
29What is the difference between continuous integration (CI) and continuous deployment/delivery (CD)? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentBeginner
30What is the Generic Host in .NET, and what problem does it standardize across different application types? .NET › Generic Host.NETGeneric HostBeginner
31What is CIL (Common Intermediate Language), and what role does it play between source code and execution? .NET › CLR & Runtime.NETCLR & RuntimeBeginner
32What is .NET Standard, and why is it less relevant now compared to a few years ago? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkIntermediate
33Can .NET Framework and modern .NET applications be run side by side on the same machine, and how does that work? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkIntermediate
34How does language version support differ between .NET Framework and modern .NET, specifically regarding C# language features? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkIntermediate
35How does NuGet resolve version conflicts when two packages depend on different versions of the same transitive dependency? .NET › Assemblies & NuGet.NETAssemblies & NuGetIntermediate
36What is the difference between a NuGet package's dependency group targeting different frameworks, and why do multi-targeted packages need this? .NET › Assemblies & NuGet.NETAssemblies & NuGetIntermediate
37What is a NuGet lock file (packages.lock.json), and what problem does it solve for reproducible builds? .NET › Assemblies & NuGet.NETAssemblies & NuGetIntermediate
38How does Blazor WebAssembly's initial load performance compare to Blazor Server, and what techniques mitigate WASM's larger download size? .NET › Blazor (Server & WebAssembly).NETBlazor (Server & WebAssembly)Intermediate
39How do you configure a GitHub Actions workflow to build, test, and publish a .NET application? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
40What is the purpose of separate build and release pipelines (or stages), and why shouldn't you rebuild the application for each deployment environment? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
41How do you version and tag Docker images for a .NET application as part of a CI/CD pipeline? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
42What is the difference between dotnet publish's --self-contained and framework-dependent options in the context of container image builds? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
43What is JIT (Just-In-Time) compilation, and how does it differ from ahead-of-time (AOT) compilation? .NET › CLR & Runtime.NETCLR & RuntimeIntermediate
44What is user secrets (dotnet user-secrets), and why should it only be used for local development, never production? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
45How does the command-line configuration provider let you override settings via arguments when running an application? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
46How do third-party DI containers like Autofac integrate with ASP.NET Core's built-in DI abstractions? .NET › Dependency Injection.NETDependency InjectionIntermediate
47How does a multi-stage Dockerfile reduce the final image size for a .NET application, and what does each stage typically do? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
48How do you configure a .NET application inside a container to listen on the correct port, and what does ASPNETCORE_URLS control? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
49What is the difference between Host.CreateApplicationBuilder and the older Host.CreateDefaultBuilder? .NET › Generic Host.NETGeneric HostIntermediate
50What is the role of IHostLifetime, and how does it differ across console applications, Windows Services, and containers? .NET › Generic Host.NETGeneric HostIntermediate
51What is user secrets (dotnet user-secrets), and why should it be used only for local development, never production? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
52How does the command-line configuration provider let you override settings via arguments when running an application, and what's its precedence? ASP.NET Core › Configuration & Options PatternASP.NET CoreConfiguration & Options PatternIntermediate
53What are Minimal APIs in ASP.NET Core, and when would you choose them over traditional MVC controllers? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineIntermediate
54What is the release cadence and Long-Term Support (LTS) model for modern .NET, and how does it differ from Framework's release history? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkAdvanced
55How do minimal API endpoint filters (IEndpointFilter) compare to traditional middleware for cross-cutting logic? .NET › ASP.NET Core Middleware & Request Pipeline.NETASP.NET Core Middleware & Request PipelineAdvanced
56What is Central Package Management (CPM) in NuGet, and how does Directory.Packages.props centralize version control? .NET › Assemblies & NuGet.NETAssemblies & NuGetAdvanced
57How does semantic versioning apply to NuGet packages, and what do version range operators like [1.0,2.0) mean? .NET › Assemblies & NuGet.NETAssemblies & NuGetAdvanced
58What is the purpose of a multi-stage Dockerfile for .NET applications, and how does it reduce final image size? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentAdvanced
59Why does copying only the .csproj file before the rest of the source code in a Dockerfile improve build caching? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
60What is Native AOT's benefit for containerized .NET applications specifically, beyond the general startup time improvement? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
61What is a container health check (HEALTHCHECK instruction), and how does it differ from a Kubernetes liveness/readiness probe? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
62How do EF Core migrations work, and what is the recommended workflow for applying them safely in production? .NET › Entity Framework Core & Data Access.NETEntity Framework Core & Data AccessAdvanced
63How would you build a console application that supports both interactive command execution and long-running hosted service behavior using the Generic Host? .NET › Generic Host.NETGeneric HostAdvanced
64How does the Generic Host's DI container differ from a full-featured third-party container in terms of the features it deliberately omits? .NET › Generic Host.NETGeneric HostAdvanced
65How do third-party DI containers like Autofac integrate with ASP.NET Core's built-in DI abstractions, and why would a team choose one? ASP.NET Core › Dependency InjectionASP.NET CoreDependency InjectionAdvanced