-
Notifications
You must be signed in to change notification settings - Fork 391
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
Show content files from nuget packages as a distinct group in solution explorer #603
Comments
Before showing them in Solution Explorer, other than under packages, I already discussed with NuGet that we should move the adding of these files so that we can pick them up during evaluation time and not requiring design-time builds. One way we could do this is by generating static |
Everything shown in the source tree today other than dependencies are evaluation time. |
Synced with @yishaigalatzer - NuGet will work on doing static generation of the content includes so that we can pick them up during evaluation time. (Otherwise the UX would be bad since the tree will jump around based on design time builds for different projects completing at different times). We'll need to mark these files as readonly for now and real editing and overriding will be enabled with #604. One approach to that could be that while generating the items for the files, NuGet can add some metadata to them that tells us that we need to make them readonly. |
Currently because NuGet includes the content files statically in the generated props file, they show up in the tree as being included from the NuGet folder and this is confusing.. See #1506. We should give a different visual treatment for these or group them differently under a virtual node. |
Also it is not straight forward anyway - all packages with their dependencies are received form a designtime build events (not evaluation which gets only top level packages), you would have to change designtime targets and tasks that generate nuget package hierarchy and follow rules that we have for packing data there. Also - is it really ok to show content files under Dependencies node ? We show there "dependencies" binary of client "packages" , not a content files ... |
In this case, these DLLs are native (not managed) and must be included as 'ContentFiles' to get the build to copy them to the output directory.
As @srivatsn indicated: "We should give a different visual treatment for these or group them differently under a virtual node." This is why I gave two examples and attempted to confirm the intended design here. |
Sounds good. I personally like the second sample since it shows what is brought by each package, which could be a pattern for the future and other dependency providers could follow it. However let's wait for @srivatsn and @davkean votes. (if we chose second option later we could add a Filter View that would show all content files brought by dependencies which would do same thing as sample 1 essentially) Implementation wise those sample would be pretty different though. |
What about source files that are brought in via ContentFiles? It would be weird to find those inside the Dependencies tree, since they are actually compiled as part of the project. |
Content files are currently shown in the solution explorer. Does this issue need re-titling? |
Changed the title to track showing them in some distinct groups |
@davkean |
Nope please file a new bug for that. |
This has been fixed in the dependencies-tree-performance branch which will merge for 16.7. |
EDIT: Ok, I see that the data.txt is still displaying. I overlooked that originally. Glad to see that is unchanged. In that case, any chance of #2141 being prioritized? |
Content files from packages are either source files passed to the compiler or other files treated as content.
In either case it would be good to show them in the solution explorer. One way to represent them might be similar to a readonly linked file (maybe a different icon to distinguish) along with the rest of the files.
It may also be nice to show them under the package node itself but maybe unnecessary and maynot even be obvious.
The text was updated successfully, but these errors were encountered: