-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: error NU5039: The readme file 'readme.md' does not exist in the package. #11292
Comments
@zkat here you go. Pls, let me know if it's just me doing it the wrong way. |
Is this a duplicate of #10791 which has not yet been released GA? |
@zivkan it is imo, but I was asked to file it separately. Errorneous behavior is slightly different though, so it could be beneficial at least from the discoverability point. |
I don't know if it's a duplicate. This looks like it might be hitting a different code path? We'll see. |
I've confirmed that this is fixed in the latest 6.0, so I'm gonna close this. Thanks for bearing with my paranoia :) |
Removed Readme from NuGet (NuGet/Home#11292)
When you say this "is fixed in the latest 6.0", what exactly are you referring to? .NET 6.0? NuGet? Something else? Our Azure build pipelines are using dotnet pack, and this is still impacting us. When was this update released, and what update was it released in? I need to communicate this information to my superiors, as it's a blocking issue for us. |
This is not fixed. |
Just had this issue as well. I have selected the readme file through the project properties on Visual Studio 2022 17.1.1, which by default added this section to my .csproj
I have solved it by changing "Update" to "Include":
|
Thank you, it works. |
NuGet Product Used
dotnet.exe
Product Version
MSBuild 16.11.0+0538acc04; .NET SDK 5.0.401 4bef5f3dbf; OS Windows 10.0.19042 win10-x64;
Worked before?
No response
Impact
It's more difficult to complete my work
Repro Steps & Context
Steps:
publish.cmd
.Expected result:
dotnet pack
finishes successfully outputting bothnupkg
andsnupkg
in the output directory. Readme is embedded into thenupkg
and rendered atnuget.org
after the publish.Actual result:
dotnet pack
fails witherror NU5039: The readme file 'readme.md' does not exist in the package.
readme.md
is embedded into thenupkg
root directory though.Workaround:
Remove
SymbolPackageFormat
or don't try to include a readme file. Therefore it looks to me the same root cause as #10791Even the error stacktrace looks pretty much the same –
ValidateReadmeFile
during symbols package build.Sample solution contents:
Logs:
diag.log
Verbose Logs
Pls, don't ask for it this way. I just ended up with
Comment is too long (maximum is 65536 characters)
and all the data lost. It hurts.Attached a file above.
The text was updated successfully, but these errors were encountered: