
NuGet Package Management
NuGet packages, package sources, versioning, dependency resolution, package creation
1What is a NuGet package?
What is a NuGet package?
Risposta
A NuGet package is a ZIP archive with the .nupkg extension containing compiled code (DLL), associated files, and a manifest describing the package content and metadata. It is the standard mechanism for distributing and sharing reusable code in the .NET ecosystem. Packages can be hosted on nuget.org or on private feeds to facilitate reuse within an organization.
2What is the recommended format for managing package references in modern .NET projects?
What is the recommended format for managing package references in modern .NET projects?
Risposta
PackageReference is the modern NuGet package management format, introduced with .NET Core and recommended for all new projects. Unlike packages.config, it stores references directly in the .csproj file, providing better transitive dependency management, faster restores, and native MSBuild integration. This format also simplifies package updates and reduces merge conflicts.
3What is the default public NuGet package source?
What is the default public NuGet package source?
Risposta
nuget.org is the official public NuGet package gallery, hosting hundreds of thousands of free and open-source packages. It is the default source configured in .NET tools and Visual Studio. Developers can also configure private feeds like Azure Artifacts or GitHub Packages to host packages internal to their organization.
How to add a NuGet package to a project using the .NET CLI command line?
What is a transitive dependency in the NuGet context?
+13 domande da colloquio
Altri argomenti di colloquio .NET
C# Basics
LINQ & Delegates
C# Language Essentials
ASP.NET Core Fundamentals
ASP.NET Core Request Lifecycle
Configuration & Settings
Application Lifecycle
Dependency Injection
Entity Framework Core
Minimal APIs
Web API Development
Async in ASP.NET Core
Authentication & Authorization
HttpClient & Networking
JSON Serialization
Entity Framework Core Advanced
C# Advanced Features
Clean Architecture
Logging, Monitoring & Observability
Unit Testing & xUnit
Integration Testing
Docker & Containerization
Memory Management & GC
Reactive Programming
Async/await & Patterns
.NET Design Patterns
Performance Optimization
Security & Best Practices
SignalR & Real-time
Microservices Architecture
Padroneggia .NET per il tuo prossimo colloquio
Accedi a tutte le domande, flashcards, test tecnici, esercizi di code review e simulatori di colloquio.
Inizia gratis