-
Notifications
You must be signed in to change notification settings - Fork 643
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
[Feature]: Tool Packages should display differently than library packages #9015
Comments
Hey @jzabroski, thanks for the detailed bug report. I agree with your "tool taxonomy" 😃. .netcoreapp3.0 /
|
Id | Sample |
---|---|
NuGet.CommandLine | tools/NuGet.exe |
Microsoft.TestPlatform | tools/net451/Common7/IDE/Extensions/TestPlatform/testhost.net472.exe.config |
NUnit.Extension.NUnitV2ResultWriter | tools/net20.engine.addins |
NUnit.Extension.TeamCityEventListener | tools/teamcity-event-listener.dll |
NUnit.Extension.NUnitV2Driver | tools/nunit.core.dll |
NUnit.Extension.VSProjectLoader | tools/vs-project-loader.dll |
NUnit.Extension.NUnitProjectLoader | tools/nunit-project-loader.dll |
Microsoft.TestPlatform.Portable | tools/net451/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll |
FAKE | tools/FluentMigrator.Abstractions.resources.dll |
NuGet.Build | tools/NuGet.targets |
As you can see, there is a mix of having framework directory and not. There's a mix of asset types. I am not sure if NuGet.org could make a useful guess about what frameworks, OS, or platform these tool packages support.
The Wyam
package
Would it make sense to mark this package as DotnetTool
? It would get the Frameworks tab support then. I don't know much about this package or why it has no package type on it. I do see Wyam.Tool
which has the tab working well (at first glance):
https://www.nuget.org/packages/Wyam.Tool/
@joelverhagen Thanks for your thoughtful reply.
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@joelverhagen I added a new issue for SDK packages. So, this is sort of another category of Tools - Tool Frameworks - that I did not consider in the above. But I felt it was a separate issue and likely has dependencies on other teams. The lack of good nuget metadata really makes your job suck some days. Hopefully you can get buy in from teams at Microsoft to not just do whatever the heck they please, or at least write aggressive package validation rules that block people from hacking stuff left and right. |
@joelverhagen See also #9085 I don't understand why all these edge cases occur? |
Generally speaking, the Frameworks tab is built for Dependency packages and for Up until this point, we have not used the folder structure as a hint to what type of package it is. We only use package type for this purpose. Ideally, I'd like to keep it that way since any heuristics on folder structure would undoubtedly have their own edge cases. |
Unfortunately, you are probably right, especially given there are Nuget MSBuild variables that allow mucking with directory paths. I was actually thinking the right solution is to reify the relative paths into the metadata structure. It's honestly not something I care to explain, but, for example, you can specify |
Related Problem
If you go to nuget.org/packages/Wyam , you will see the following informational messages :
The Elevator Pitch
Nuget.org is really confusing even to people with 20 years experience like me. This is one example that always confuses and confounds me.
Additional Context and Details
There are likely at least 3 types of Tool packages:
DotNetCliToolReference
. Attempting to installDotNetCliToolReference
with local manifest json fails.<PackAsTool>true</PackAsTool>
The text was updated successfully, but these errors were encountered: