-
Notifications
You must be signed in to change notification settings - Fork 258
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
Warning NU5127 msbuild #8941
Comments
Hey @MarcoRossignoli Are you still waiting on for any of these questions? Thanks. |
I haven't fixed yet... tomorrow I'll give it another try and if issue is still present I'll come back |
Confirm the error is still present, to repro clone branch https://github.com/MarcoRossignoli/coverlet/tree/nugetissue |
I am hitting 5128 right now, is that you were seeing too? It's seeing lib/, but not dependencies entries whatsoever. cc @zivkan who's looking into these. |
My analysis of this issue:
So, this is an unusual package, as most packages are not intended to have only build assets. But it's a good scenario, so it's something we should make easier, or at the very least document guidance on how to create such a package without warnings. What would be helpful is a way to create arbitrary dependency groups, even if there are no dependencies for that group. Package authors can put arbitrary files in arbitrary locations in the package by using In any case, I don't consider this a bug with NU5128, the issue the warning is trying to reduce is impacting this package. But as stated previously, we need a way for package authors of these types of packages to be able to create their package without warnings. |
You are correct, there's no way to do that: #8133. At this point I'd suggest to rename this issue to call NU5128 and maybe mark it as blocked by 8133? Thoughts @zivkan? |
I think the root cause for this issue is an exact duplicate of 8133, it's just the learning to get to this understanding, or the customer scenario that leads to the same feature request, isn't detailed in the other issue. I know it wouldn't be ideal to the author of this issue, but depending on how we want to track issues, I'd be fine with either closing this issue as a duplicate, or marking the other one as blocking this one. It's just that once the other issue is fixed, then there's probably nothing to do in this issue, except maybe validate that this scenario is now unblocked. |
My preference would be to close it. It provides a better visibility of the backlog and it also gives us an opportunity to upvoet #8133 and increase it's priority as we discover more scenarios. |
Closing as duplicate of #8133 |
I'm upgrading some project to 3.1 and I get a warning from nuget pack command
I'm using msbuild to generage package https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package-msbuild
First question, is there way to generate empty folder using msbuild?
If I create correct structure under project with an empty file called
_._
and add<TfmSpecificPackageFile Include="$(ProjectDir)\lib\netstandard1.0\_._" PackagePath="lib\netstandard1.0\" />
the warning goes away, but I'm pretty sure that there is a better way to do it.BTW after update above I get another warning
and again the question above, is there a way to fix this warning adding a dependecy group using msbuild style?I didn't find anything on guide and I'm not using nuspec.
This is the project file https://github.com/tonerdo/coverlet/blob/master/src/coverlet.collector/coverlet.collector.csproj
The text was updated successfully, but these errors were encountered: