Title: NuGet: `Microsoft.CodeAnalysis.*` dependencies should likely be private assets · Issue #69 · mycsharp/HttpUserAgentParser · GitHub
Open Graph Title: NuGet: `Microsoft.CodeAnalysis.*` dependencies should likely be private assets · Issue #69 · mycsharp/HttpUserAgentParser
X Title: NuGet: `Microsoft.CodeAnalysis.*` dependencies should likely be private assets · Issue #69 · mycsharp/HttpUserAgentParser
Description: Hi, First off, thank you for creating and maintaining such a great and performant library! I was looking at the NuGet package dependencies for MyCSharp.HttpUserAgentParser.AspNetCore and noticed it lists the following dependencies: Micro...
Open Graph Description: Hi, First off, thank you for creating and maintaining such a great and performant library! I was looking at the NuGet package dependencies for MyCSharp.HttpUserAgentParser.AspNetCore and noticed it...
X Description: Hi, First off, thank you for creating and maintaining such a great and performant library! I was looking at the NuGet package dependencies for MyCSharp.HttpUserAgentParser.AspNetCore and noticed it...
Opengraph URL: https://github.com/mycsharp/HttpUserAgentParser/issues/69
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NuGet: `Microsoft.CodeAnalysis.*` dependencies should likely be private assets","articleBody":"Hi,\n\nFirst off, thank you for creating and maintaining such a great and performant library!\n\nI was looking at the NuGet package dependencies for `MyCSharp.HttpUserAgentParser.AspNetCore` and noticed it lists the following dependencies:\n\n* `Microsoft.CodeAnalysis.CSharp >= 4.13.0`\n* `Microsoft.CodeAnalysis.CSharp.Workspaces >= 4.13.0`\n* `Microsoft.CodeAnalysis.Common >= 4.13.0`\n\nIt seems to me that these particular dependencies might not need to be delivered as dependencies of the NuGet package because they appear to be related to compile-time tasks (perhaps for analyzers used within the library?) rather than runtime requirements for consuming applications.\n\nListing these as regular dependencies can lead to version conflicts in consuming projects. In my specific case, my project already depends on `Microsoft.CodeAnalysis.*` version `4.8.x` (due to a dependency on `Microsoft.VisualStudio.Web.CodeGeneration.Design`). Because `MyCSharp.HttpUserAgentParser.AspNetCore` requires version `>= 4.13.0`, NuGet reported a version conflict and I was unable to install `MyCSharp.HttpUserAgentParser.AspNetCore` alongside my existing dependencies.\n\n\n\nCould you please consider marking these specific `\u003cPackageReference>` items with `PrivateAssets=\"all\"`?\n\nThis change would help ensure that users of `MyCSharp.HttpUserAgentParser.AspNetCore` only inherit the necessary runtime dependencies.\n\nThanks again for your work on this project!","author":{"url":"https://github.com/magicxor","@type":"Person","name":"magicxor"},"datePublished":"2025-04-26T07:01:04Z","url":"https://github.com/mycsharp/HttpUserAgentParser/issues/69"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b26337a6-383e-1a6e-3ec0-28aa587331cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B0DA:30B4F6:1FA5619:29E937F:6B0572FC |
| html-safe-nonce | 2c2b61f39447543a96115279616b8eb2994e5c58ce1d84a99f05b09b6f5c20d0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMERBOjMwQjRGNjoxRkE1NjE5OjI5RTkzN0Y6NkIwNTcyRkMiLCJ2aXNpdG9yX2lkIjoiODc1NjY5OTk3NDgwNjYzMTE2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 895f32f03bf66271a767aaf3c75ccdbc841673c6eeee2137660c65f4735e6b3d |
| hovercard-subject-tag | issue:3021569135 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mycsharp/HttpUserAgentParser/69/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b1abdd14c6e68200427612478c984e48b0242a391ede4336e94056f243a8d65f/mycsharp/HttpUserAgentParser/issues/69 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b1abdd14c6e68200427612478c984e48b0242a391ede4336e94056f243a8d65f/mycsharp/HttpUserAgentParser/issues/69 |
| og:image:alt | Hi, First off, thank you for creating and maintaining such a great and performant library! I was looking at the NuGet package dependencies for MyCSharp.HttpUserAgentParser.AspNetCore and noticed it... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | magicxor |
| hostname | github.com |
| expected-hostname | github.com |
| None | 507b2d62524c0f595c35a2a2ee8a6ec54b119f245b3c59eaa070013b70ed1ada |
| turbo-cache-control | no-preview |
| go-import | github.com/mycsharp/HttpUserAgentParser git https://github.com/mycsharp/HttpUserAgentParser.git |
| octolytics-dimension-user_id | 14853192 |
| octolytics-dimension-user_login | mycsharp |
| octolytics-dimension-repository_id | 367635805 |
| octolytics-dimension-repository_nwo | mycsharp/HttpUserAgentParser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 367635805 |
| octolytics-dimension-repository_network_root_nwo | mycsharp/HttpUserAgentParser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e7a883ae3b439b8952652eaa7803e2587f30e339 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width