CoreCLR is the runtime component that loads and executes managed .NET code.
Incorrect! Try again.
13Which package manager is commonly used to add libraries to .NET projects?
Overview of the .NET Core Platform
Easy
A.NuGet
B.Maven
C.Composer
D.RubyGems
Correct Answer: NuGet
Explanation:
NuGet is the standard package manager used to distribute and install .NET libraries.
Incorrect! Try again.
14Who developed the C# programming language?
Introduction to C#
Easy
A.Microsoft
B.Adobe
C.Oracle
D.Mozilla
Correct Answer: Microsoft
Explanation:
Microsoft developed C# as a modern programming language for the .NET platform.
Incorrect! Try again.
15Which programming style is directly supported by C#?
Introduction to C#
Easy
A.Markup-only programming
B.Object-oriented programming
C.Query-only programming
D.Assembly-only programming
Correct Answer: Object-oriented programming
Explanation:
C# directly supports object-oriented concepts such as classes, objects, inheritance, and polymorphism.
Incorrect! Try again.
16Which C# version introduced the async and await keywords?
History of C# Version
Easy
A.C# 5.0
B.C# 2.0
C.C# 3.0
D.C# 4.0
Correct Answer: C# 5.0
Explanation:
C# 5.0 introduced async and await to simplify asynchronous programming.
Incorrect! Try again.
17Which C# version introduced nullable reference types?
History of C# Version
Easy
A.C# 8.0
B.C# 5.0
C.C# 7.0
D.C# 6.0
Correct Answer: C# 8.0
Explanation:
C# 8.0 introduced nullable reference types to help developers identify possible null-related problems.
Incorrect! Try again.
18What does the C# compiler normally produce from C# source code?
C# Code Execution
Easy
A.Database query code
B.Native assembly source
C.HTML markup code
D.Intermediate Language code
Correct Answer: Intermediate Language code
Explanation:
The C# compiler converts source code into Intermediate Language, which the .NET runtime executes.
Incorrect! Try again.
19What does the Just-In-Time compiler do during C# program execution?
C# Code Execution
Easy
A.Converts IL into native code
B.Converts images into binary files
C.Converts data into SQL tables
D.Converts HTML into C# code
Correct Answer: Converts IL into native code
Explanation:
The JIT compiler translates Intermediate Language into native machine code for execution.
Incorrect! Try again.
20Which Visual Studio workload is commonly selected for creating C# console applications?
Installing and Configuring C# in Visual Studio
Easy
A..NET desktop development
B.Python development
C.Linux kernel development
D.Node.js development
Correct Answer: .NET desktop development
Explanation:
The .NET desktop development workload installs the tools and templates needed for C# console and desktop applications.
Incorrect! Try again.
21A team wants the same ASP.NET Core web application to run behind IIS on Windows and Nginx on Linux. Which ASP.NET Core feature most directly supports this requirement?
Introduction to ASP.NET Core and its features
Medium
A.Built-in Web Forms controls
B.Cross-platform runtime support
C.Automatic database replication
D.Windows-only process hosting
Correct Answer: Cross-platform runtime support
Explanation:
ASP.NET Core is cross-platform, so applications can run on Windows, Linux, and macOS with appropriate web server integration.
Incorrect! Try again.
22An ASP.NET Core application needs a different email service implementation during automated testing. Which built-in feature is best suited to this requirement?
Introduction to ASP.NET Core and its features
Medium
A.Dependency injection
B.Razor compilation
C.Response compression
D.Static file middleware
Correct Answer: Dependency injection
Explanation:
Built-in dependency injection allows services to be replaced with test implementations without changing the consuming classes.
Incorrect! Try again.
23A legacy project targets ASP.NET Core 2.2. The team wants to move to the first ASP.NET Core release that followed the unified .NET naming introduced after .NET Core 3.1. Which target should it choose?
ASP.NET Core Version History
Medium
A.ASP.NET Core 3.5
B.ASP.NET Core 5.0
C.ASP.NET Core 4.0
D.ASP.NET Core 6.0
Correct Answer: ASP.NET Core 5.0
Explanation:
ASP.NET Core 5.0 shipped with .NET 5, which introduced the unified .NET naming after .NET Core 3.1.
Incorrect! Try again.
24A company prioritizes a longer support period for a production ASP.NET Core application. Which release type should it normally select?
ASP.NET Core Version History
Medium
A.A current STS release
B.The oldest available release with all historical compatibility packages installed
C.A preview release
D.A Long Term Support release
Correct Answer: A Long Term Support release
Explanation:
Long Term Support releases receive fixes and security updates for a longer period than Standard Term Support releases.
Incorrect! Try again.
25An existing application depends heavily on ASP.NET Web Forms and Windows-specific libraries. Which platform is the most practical target if the application will remain Windows-only and cannot be substantially rewritten?
Difference Between .NET Framework and .NET Core
Medium
A.Mono WebAssembly
B..NET Framework
C..NET Standard
D..NET Core 1.0
Correct Answer: .NET Framework
Explanation:
.NET Framework supports legacy technologies such as ASP.NET Web Forms, while modern .NET does not provide direct Web Forms support.
Incorrect! Try again.
26Two applications on one Linux server must use different runtime versions without changing the machine-wide runtime. Which capability of .NET Core or modern .NET best addresses this?
Difference Between .NET Framework and .NET Core
Medium
A.Global Assembly Cache registration
B.Application pool recycling
C.Windows Registry configuration
D.Side-by-side runtime deployment
Correct Answer: Side-by-side runtime deployment
Explanation:
.NET Core and modern .NET support side-by-side versions, allowing applications to use different runtime versions on the same machine.
Incorrect! Try again.
27After installing VS Code and the C# extension, a developer opens a new terminal but the dotnet command is not recognized. What is the most likely missing component?
Setting up a development environment with VS Code
Medium
A.The NuGet desktop client
B.The SQL Server extension
C.The IIS server role
D.The .NET SDK
Correct Answer: The .NET SDK
Explanation:
The dotnet command is installed with the .NET SDK. A VS Code extension provides editor support but does not replace the SDK.
Incorrect! Try again.
28A developer can edit C# files in VS Code but cannot build or debug a newly cloned project. Which sequence is the most appropriate first check?
Setting up a development environment with VS Code
Medium
A.Run dotnet --info, restore dependencies, and build the project
B.Install IIS, register every assembly, and restart the operating system
C.Convert the project to Web Forms and add a web.config file
D.Open only the source file and execute it through a browser
Correct Answer: Run dotnet --info, restore dependencies, and build the project
Explanation:
dotnet --info verifies the installed SDK, while restore and build reveal missing dependencies or compilation problems.
Incorrect! Try again.
29A developer has modified package references in a project file and wants to download the required NuGet packages without compiling the project. Which command should be used?
Introduction to .NET CLI and .NET CLI Commands
Medium
A.dotnet publish
B.dotnet build
C.dotnet restore
D.dotnet run
Correct Answer: dotnet restore
Explanation:
dotnet restore resolves and downloads project dependencies without performing a full compilation.
Incorrect! Try again.
30A team needs deployment-ready output containing the application and its required files in a selected folder. Which command is designed for this task?
Introduction to .NET CLI and .NET CLI Commands
Medium
A.dotnet publish
B.dotnet clean
C.dotnet format
D.dotnet test
Correct Answer: dotnet publish
Explanation:
dotnet publish produces deployment-ready output and can target a specific configuration, runtime, and output directory.
Incorrect! Try again.
31A library author wants one compiled API contract to be usable by multiple compatible .NET implementations. Which concept was designed to define that shared API surface?
Overview of the .NET Core Platform
Medium
A..NET Standard
B.Kestrel
C.The Global Assembly Cache
D.Entity Framework migrations
Correct Answer: .NET Standard
Explanation:
.NET Standard defines a common API contract that compatible .NET implementations can support.
Incorrect! Try again.
32Which component executes managed .NET code and provides services such as garbage collection and exception handling?
Overview of the .NET Core Platform
Medium
A.The code editor
B.The project template
C.The runtime
D.The package source
Correct Answer: The runtime
Explanation:
The .NET runtime executes managed code and supplies core services including memory management, type safety, and exception handling.
Incorrect! Try again.
33A method must accept objects that provide a Save() operation, even when their classes do not share a base implementation. Which C# construct best expresses this contract?
Introduction to C#
Medium
A.An interface
B.A namespace
C.An enumeration
D.A sealed class containing several overloaded methods and a static constructor
Correct Answer: An interface
Explanation:
An interface defines a contract that unrelated classes can implement while supplying their own behavior.
Incorrect! Try again.
34What is the result of the following C# code?
int x = 7;
int y = 2;
double result = x / y;
Introduction to C#
Medium
A.A compilation error
B.4.0
C.3.5
D.3.0
Correct Answer: 3.0
Explanation:
Both operands are integers, so x / y performs integer division and produces 3; that value is then converted to double.
Incorrect! Try again.
35A developer wants to use nullable reference type annotations such as string? to improve null-safety analysis. In which C# version was this feature introduced?
History of C# Version
Medium
A.C# 6.0
B.C# 9.0
C.C# 7.0
D.C# 8.0
Correct Answer: C# 8.0
Explanation:
Nullable reference types were introduced in C# 8.0 to provide compiler-assisted analysis of possible null values.
Incorrect! Try again.
36A project uses record declarations to model immutable data-oriented types with value-based equality. Which language version first introduced records?
History of C# Version
Medium
A.C# 10.0
B.C# 9.0
C.C# 8.0
D.C# 7.3
Correct Answer: C# 9.0
Explanation:
Records were introduced in C# 9.0 and provide concise syntax for data-oriented types with value-based equality.
Incorrect! Try again.
37When a C# project is built, what does the C# compiler normally produce before the runtime executes the program?
C# Code Execution
Medium
A.Java bytecode and a manifest
B.A text script interpreted line by line
C.CIL and assembly metadata
D.Native code for every processor
Correct Answer: CIL and assembly metadata
Explanation:
The C# compiler normally produces Common Intermediate Language and metadata in an assembly, which the runtime later loads and executes.
Incorrect! Try again.
38A .NET application starts running a method for the first time. Which process commonly converts that method's intermediate language into native machine instructions?
C# Code Execution
Medium
A.Static file bundling
B.Just-in-time compilation
C.Package restoration
D.Source code formatting
Correct Answer: Just-in-time compilation
Explanation:
The JIT compiler converts intermediate language into native machine code for execution on the current platform.
Incorrect! Try again.
39During Visual Studio installation, a student wants the templates and tools needed to build ASP.NET Core applications. Which workload should be selected?
Installing and Configuring C# in Visual Studio
Medium
A.ASP.NET and web development
B.Game development with Unity
C.Desktop development with C++
D.Linux and embedded C++ development
Correct Answer: ASP.NET and web development
Explanation:
The ASP.NET and web development workload installs the relevant .NET SDKs, project templates, and web development tools.
Incorrect! Try again.
40Visual Studio opens a C# project but reports that its target framework cannot be found. What is the most appropriate corrective action?
Installing and Configuring C# in Visual Studio
Medium
A.Disable IntelliSense and remove the project file
B.Install a database server and recreate the solution as a database project
C.Install the matching .NET SDK or targeting pack
D.Rename every .cs file to use a .cpp extension
Correct Answer: Install the matching .NET SDK or targeting pack
Explanation:
Visual Studio needs the SDK or targeting pack corresponding to the framework declared in the project file.
Incorrect! Try again.
41An ASP.NET Core app must serve static files without authentication, authenticate MVC requests, and ensure endpoint-specific authorization policies are evaluated. Which middleware order is correct?
Introduction to ASP.NET Core and its features
Hard
Static files bypass authentication when placed first. Routing selects the endpoint, authentication establishes the user, and authorization then evaluates endpoint metadata before controller execution.
Incorrect! Try again.
42A singleton service constructor receives a scoped DbContext. Scope validation is enabled. What is the correct diagnosis and redesign?
Introduction to ASP.NET Core and its features
Hard
A.The dependency is valid; scoped services automatically inherit the singleton service lifetime.
B.The dependency is invalid; inject a scope factory and resolve the context inside a created scope.
C.The dependency is invalid; register the context as transient so each database call gets one.
D.The dependency is valid; the container creates a new context whenever a singleton method runs.
Correct Answer: The dependency is invalid; inject a scope factory and resolve the context inside a created scope.
Explanation:
A singleton cannot capture a scoped dependency because the scoped object could outlive its intended scope. Creating an explicit scope preserves the scoped lifetime.
Incorrect! Try again.
43An ASP.NET Core app behind a TLS-terminating reverse proxy repeatedly redirects HTTPS requests back to HTTPS. The proxy forwards X-Forwarded-Proto: https, but the app observes HTTP. Which change most directly addresses the loop?
Introduction to ASP.NET Core and its features
Hard
A.Configure forwarded headers before HTTPS redirection and trust the known proxy.
B.Configure static files before HTTPS redirection and disable unknown file types.
C.Configure response compression before HTTPS redirection and enable MIME mappings.
D.Configure endpoint routing before HTTPS redirection and require an authorization policy.
Correct Answer: Configure forwarded headers before HTTPS redirection and trust the known proxy.
Explanation:
Forwarded Headers Middleware must update the request scheme before HTTPS redirection runs. Restricting trusted proxies prevents clients from spoofing forwarded headers.
Incorrect! Try again.
44A legacy application targets ASP.NET Core 2.1 and relies on running either on .NET Core or on the full .NET Framework. A team proposes upgrading directly to ASP.NET Core 3.0 while keeping the full .NET Framework target. What blocks that plan?
ASP.NET Core Version History
Hard
A.ASP.NET Core 3.0 requires IIS in-process hosting, which is unavailable in .NET Framework.
B.ASP.NET Core 3.0 runs only on .NET Framework 4.8, not on .NET Core.
C.ASP.NET Core 3.0 runs only on .NET Core 3.0 or later, not on .NET Framework.
D.ASP.NET Core 3.0 requires Web Forms hosting, which is unavailable in .NET Framework.
Correct Answer: ASP.NET Core 3.0 runs only on .NET Core 3.0 or later, not on .NET Framework.
Explanation:
ASP.NET Core 2.x could target .NET Framework in some scenarios, but ASP.NET Core 3.0 ended that compatibility and runs on .NET Core 3.0 or later.
Incorrect! Try again.
45Which migration issue most specifically reflects the routing change introduced with ASP.NET Core 3.0?
ASP.NET Core Version History
Hard
A.Authorization middleware must run after route matching so it can inspect endpoint metadata.
B.Authentication middleware must run before exception handling so it can inspect failures.
C.Authentication middleware must run after controller execution so it can inspect results.
D.Authorization middleware must run before static files so it can inspect MIME metadata.
Correct Answer: Authorization middleware must run after route matching so it can inspect endpoint metadata.
Explanation:
ASP.NET Core 3.0 introduced endpoint routing as the standard model. Authorization must execute after routing has selected an endpoint and exposed its metadata.
Incorrect! Try again.
46A Windows-only ASP.NET MVC 5 application heavily uses System.Web, but a new Linux service must reuse its platform-neutral business rules. Which architecture is most viable?
Difference Between .NET Framework and .NET Core
Hard
A.Retarget the MVC 5 project to .NET Standard and retain all existing controllers unchanged.
B.Copy System.Web into the Linux runtime and preserve the existing request pipeline.
C.Reference the MVC 5 web project directly and deploy the complete solution on Linux.
D.Move platform-neutral rules into a compatible library and rewrite the web layer in ASP.NET Core.
Correct Answer: Move platform-neutral rules into a compatible library and rewrite the web layer in ASP.NET Core.
Explanation:
System.Web and classic ASP.NET are tied to .NET Framework and Windows. Portable business logic can be extracted, while the hosting and web layers must be migrated.
Incorrect! Try again.
47Two applications on one server require incompatible runtime patch levels and must be deployed without changing the machine-wide .NET installation. Which .NET capability best satisfies this requirement?
Difference Between .NET Framework and .NET Core
Hard
A.Register both applications in IIS using the same installed CLR configuration.
B.Compile each application with CodeDOM against the machine-wide framework version.
C.Install both applications into the Global Assembly Cache with binding redirects.
D.Publish each application as self-contained with its selected runtime version.
Correct Answer: Publish each application as self-contained with its selected runtime version.
Explanation:
Self-contained deployment includes the selected .NET runtime with each application, allowing side-by-side runtime versions without relying on a machine-wide installation.
Incorrect! Try again.
48A repository contains Api/Api.csproj and Tests/Tests.csproj, but no solution file. VS Code is opened at the repository root, and a build task runs dotnet build with no arguments. The CLI reports that it cannot determine which project to use. What is the most maintainable fix?
Setting up a development environment with VS Code
Hard
A.Install separate SDK versions per project and make the task select either installation.
B.Create a solution containing both projects and make the task build that solution.
C.Delete the test project during debugging and make the task restore the API project.
D.Move both project files to the repository root and make the task build the folder.
Correct Answer: Create a solution containing both projects and make the task build that solution.
Explanation:
A solution provides an explicit build graph for multiple projects. The VS Code task can target the solution consistently without depending on the current directory.
Incorrect! Try again.
49A VS Code debugger successfully launches an ASP.NET Core project, but the app uses Production settings even though launchSettings.json defines ASPNETCORE_ENVIRONMENT=Development. The debug configuration launches the compiled DLL directly. What best explains the behavior?
Setting up a development environment with VS Code
Hard
A.VS Code ignores environment variables for .NET processes; pass the value as a controller argument.
B.Direct DLL launch does not automatically apply a launchSettings.json profile; configure the environment in launch.json.
C.Direct DLL launch always forces Production; change the environment only in appsettings.json.
D.ASP.NET Core reads the environment only during compilation; rebuild the DLL with a debug symbol file.
Correct Answer: Direct DLL launch does not automatically apply a launchSettings.json profile; configure the environment in launch.json.
Explanation:
A debugger configuration that starts a DLL does not inherently consume project launch profiles. The required environment variable must be supplied by the active VS Code debug configuration.
Incorrect! Try again.
50A CI pipeline runs dotnet restore --locked-mode followed by dotnet build --no-restore. A developer changes a package reference without updating the lock file. What should happen?
Introduction to .NET CLI and .NET CLI Commands
Hard
A.Restore fails because locked mode detects that dependency resolution would change the lock file.
B.Restore succeeds because locked mode ignores direct package references during dependency resolution.
C.Build succeeds because the existing assets file takes precedence over the changed project reference.
D.Build updates the lock file because --no-restore suppresses only remote package downloads.
Correct Answer: Restore fails because locked mode detects that dependency resolution would change the lock file.
Explanation:
Locked mode enforces the existing dependency lock file. A project change requiring a different graph causes restore to fail instead of silently rewriting the lock.
Incorrect! Try again.
51Which command publishes a Linux x64 application with its own runtime and permits execution on a compatible host without a separately installed .NET runtime?
Introduction to .NET CLI and .NET CLI Commands
Hard
dotnet publish prepares deployable output, the runtime identifier selects Linux x64 assets, and self-contained mode includes the runtime.
Incorrect! Try again.
52A repository requires every developer and CI agent to use the same version of a custom dotnet tool without installing it globally. Which setup provides reproducible tool resolution?
Introduction to .NET CLI and .NET CLI Commands
Hard
A.Commit a local tool manifest, declare the version, and run dotnet tool restore.
B.Commit the SDK workload cache, declare the feature band, and run dotnet workload repair.
C.Commit the global tools directory, declare the path, and run dotnet restore.
D.Commit the NuGet HTTP cache, declare the source, and run dotnet nuget locals.
Correct Answer: Commit a local tool manifest, declare the version, and run dotnet tool restore.
Explanation:
A local tool manifest records tool IDs and versions in the repository. dotnet tool restore installs those declared tools for consistent local and CI use.
Incorrect! Try again.
53A framework-dependent application targets net8.0. A machine has only .NET 9 installed, and the application's runtime configuration uses the default roll-forward behavior. What is the expected result?
Overview of the .NET Core Platform
Hard
A.Startup always fails because framework-dependent apps require the exact runtime patch version.
B.Startup normally succeeds because framework-dependent apps select any higher major runtime.
C.Startup always succeeds because the SDK recompiles the app against the installed runtime.
D.Startup normally fails because default roll-forward does not select a new major runtime.
Correct Answer: Startup normally fails because default roll-forward does not select a new major runtime.
Explanation:
Framework-dependent execution uses runtime roll-forward policy. The default policy accepts suitable updates within the expected version family, but it does not normally jump to a new major version.
Incorrect! Try again.
54A project builds successfully with .NET SDK 8, but running its framework-dependent output on a server fails with a message that the required framework is missing. Which statement reconciles these facts?
Overview of the .NET Core Platform
Hard
A.The compiler resolved NuGet dependencies at build time, while the server still needs the NuGet cache.
B.The SDK embedded the complete runtime during compilation, while the server still needs the same SDK.
C.The compiler produced native machine code for the server, while the server still needs Roslyn installed.
D.The SDK supplied reference assemblies for compilation, while the server still needs a compatible shared runtime.
Correct Answer: The SDK supplied reference assemblies for compilation, while the server still needs a compatible shared runtime.
Explanation:
Compilation and execution have different requirements. A framework-dependent build can compile against SDK reference assets, but execution requires the corresponding shared framework on the target machine.
Incorrect! Try again.
55Consider var actions = new List<Action>(); for (int i = 0; i < 3; i++) actions.Add(() => Console.Write(i));. What is printed when all actions execute after the loop?
Introduction to C#
Hard
A.333, because the closures share the captured loop variable whose final value is 3.
B.123, because each closure captures the value after the loop increment operation.
C.222, because the loop variable stops changing after the final successful iteration.
D.012, because each closure receives a separate copy of the loop variable automatically.
Correct Answer: 333, because the closures share the captured loop variable whose final value is 3.
Explanation:
The lambda captures the for loop variable itself, not its value at each iteration. After the loop, the shared variable equals 3.
Incorrect! Try again.
56A library targets netstandard2.0 but is compiled with a modern SDK. The team wants to use C# records while preserving the same target framework. Which statement is most accurate?
History of C# Version
Hard
A.Language version and target framework are separate, though records may require compatibility support such as IsExternalInit.
B.Records require changing the target to net5.0 because syntax versions are fixed by the runtime target.
C.Records require installing .NET Framework 4.8 because record metadata is emitted only by its compiler.
D.Language version follows the operating system, so records work only when compilation occurs on Windows.
Correct Answer: Language version and target framework are separate, though records may require compatibility support such as IsExternalInit.
Explanation:
The compiler language version is distinct from the target framework. Records can target older frameworks when required supporting types are available, although runtime API availability still follows the target.
Incorrect! Try again.
57A project enables nullable reference types and changes string Name to string? Name. Which consequence is most accurate for ordinary .NET execution?
History of C# Version
Hard
A.The compiler changes null-state analysis and emits annotations, but the CLR still represents both as System.String references.
B.The compiler inserts a mandatory runtime null check on every read and changes the field's underlying CLR type.
C.The CLR prevents null assignment through verifier rules even when the assignment originates from older assemblies.
D.The CLR creates a distinct nullable string value type and throws whenever it receives an unwrapped reference.
Correct Answer: The compiler changes null-state analysis and emits annotations, but the CLR still represents both as System.String references.
Explanation:
Nullable reference types are primarily a compile-time analysis feature represented through metadata annotations. They do not create a new CLR reference type.
Incorrect! Try again.
58A release build calls a generic method M<T> with both string and object, then with both int and double. Which JIT behavior is generally expected?
C# Code Execution
Hard
A.All instantiations must share one native body because generic type information is erased before JIT compilation.
B.Reference-type instantiations can share native code, while value-type instantiations generally receive specialized code.
C.All instantiations must receive separate native bodies because metadata stores a complete method copy for each type.
D.Value-type instantiations can share native code, while reference-type instantiations always receive specialized code.
Correct Answer: Reference-type instantiations can share native code, while value-type instantiations generally receive specialized code.
Explanation:
The CLR can share generic native code across reference-type arguments because references have a common representation. Value types generally require specialized code for their layouts.
Incorrect! Try again.
59Which sequence best describes normal execution of a framework-dependent C# application without ahead-of-time native compilation?
C# Code Execution
Hard
A.The C# compiler emits CIL and metadata; the CLR loads assemblies; the JIT compiles invoked methods to native code.
B.The C# compiler emits JVM bytecode; the CLR translates each assembly into CIL and then interprets every instruction.
C.The C# compiler emits source tokens; the CLR invokes Roslyn for every method call and caches the resulting syntax tree.
D.The C# compiler emits native code and metadata; the CLR converts native methods back into CIL before execution.
Correct Answer: The C# compiler emits CIL and metadata; the CLR loads assemblies; the JIT compiles invoked methods to native code.
Explanation:
Normal C# compilation produces managed assemblies containing CIL and metadata. At runtime, the CLR loads them and JIT-compiles methods as needed.
Incorrect! Try again.
60Visual Studio can open an existing net8.0 project as text, but reports that the target framework is unsupported and cannot build it. The machine has an older Visual Studio release and only a .NET 6 SDK. What is the correct remediation?
Installing and Configuring C# in Visual Studio
Hard
A.Install a newer C# extension because Visual Studio delegates all project builds to VS Code extensions.
B.Install a Visual Studio version that supports .NET 8 and add the .NET 8 SDK or targeting components.
C.Install only the .NET 8 runtime because Visual Studio derives reference assemblies from the running CLR.
D.Install only the C++ desktop workload because it supplies targeting packs for every managed framework.
Correct Answer: Install a Visual Studio version that supports .NET 8 and add the .NET 8 SDK or targeting components.
Explanation:
Building requires both IDE support for the target and the appropriate SDK or targeting assets. A runtime alone is insufficient for compilation.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →