Dotnet pack -c debug

Ricardo Cadete 0 Reputation points
2024-07-18T13:06:55.6233333+00:00

In this tutorial,

https://learn.microsoft.com/en-gb/training/modules/blazor-build-reusable-components/5-nuget-package

there is the instruction to run 'dotnet pack' but this does not create the the file at

My.FirstClassLibrary.0.1.0.nupkg to your bin/Debug folder

but at

My.FirstClassLibrary.0.1.0.nupkg to your bin/Release folder

The correct instruction should be:

'dotnet pack -c Debug'

then the following instructions should work

This question is related to the following Learning Module

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
8 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pradeep M 3,830 Reputation points Microsoft Vendor
    2024-07-19T10:41:58.4866667+00:00

    Hi Ricardo Cadete,

    Thank you for reaching out to Microsoft Q & A forum.

    We acknowledge that the warnings regarding the nullable properties (Title and ChildContent) and the missing readme file are minor issues. These warnings do not hinder the successful creation of the NuGet package (FirstClassLibrary.1.0.0.nupkg). Instead, they serve as informative suggestions for improving the quality and completeness of the package.

    The dotnet pack command efficiently packages your library, ensuring it can be distributed and utilized by other developers. While addressing these warnings is beneficial for adhering to best practices and enhancing clarity, they do not affect the functionality or availability of the package.

    We appreciate your attention to this matter. Recognizing the importance of maintaining high package quality, we will update the command and package contents in future releases to provide a more polished and informative package for users.

    Please feel free to contact us if you have any additional questions.    

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.       

    Thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.