Reputation: 587
I'm doing some Ms excel automation in my app, however upon polling DocumentFormat.OpenXml Nuget package many dependencies were downloaded along with it such as:
And many other in spite the the fact that I'm targeting .Net framework not .Net core or standard. in fact I don't need those extra references in my class library project. Why those dependencies were installed? and is their any method that allows download only the specified package without those dependencies?
Upvotes: 0
Views: 1171
Reputation: 76790
Why those dependencies were installed? and is their any method that allows download only the specified package without those dependencies?
This is the issue about the nuget package itself. When you check the dependencies of the package on the nuget.org:
We could to know the package add wrong dependencies (.NET Standard 1.3) to the .net framework
project.
I have ever reported the similar issue on the github.
To resolve this issue, you can use the version 2.7.2 instead of 2.8.1 or just remove those extra references.
Note: To solve this issue finally, we need to report this issue to the author and wait author update this package:
https://github.com/OfficeDev/Open-XML-SDK/issues
Hope this helps.
Upvotes: 1