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
Clarification about the .NET8 runtimes sub-folder (Google.Apis.Gmail.v1) #2722
Comments
I'll look at this on Monday - but it would be really helpful if you'd provide more information about your app's targets rather than the targets of the package. Ideally, provide a minimal but complete example so we can reproduce it. |
I don't know how to share it. But it is easily reproducible (at-least for me):
Navigate using File Explorer to here (relative to your root ofcourse):
|
Right, if that's all required, I should be able to reproduce that tomorrow. |
@jskeet Thank you. |
Okay, I've reproduced it. I would say that you should use I believe it's showing up as net7.0 because we're currently depending on version 7.0.2 of System.Management, and that only targeted as far as net7.0 - but as net8.0 is compatible with net7.0, it will still load that at execution time. If you want to move to the net8.0-targeted version, you can manually add a dependency on System.Management 8.0 yourself - then System.Management.dll will be in (Separately, I'll file an internal bug to update our dependency to 8.0.0.) |
I'll close this now as hopefully this has addressed everything for you - if you have further questions, add a comment and I can reopen if necessary. |
@jskeet I would like to keep my compiling process as simple as possible for my installer and not add anything else that I don’t need to add. Will you be able to update this ticket once the bug is resolved? Will it take long? |
I would encourage you to use
There's no bug here to resolve. There's a dependency which we can update, but the fact that it's a slightly old dependency isn't a bug - it's not like we know of a security problem within the older version. I don't know when we'll get to updating the dependency - we don't release new versions of the support library very often (there's about to be another one which won't include this change) and I wouldn't want to create a minor release just for an unnecessary dependency update. As I said before, if you really want the latest dependency, you can add it yourself directly to your own project. I'd also note that even with that change, the file will be under (This dependency is used for BIOS detection when running on Windows as part of Default Application Credentials detection, by the way. It's possible that if you're always specifying credentials via an environment variable or explicitly loading them, that the dependency being missing wouldn't be an issue anyway - but I wouldn't personally take that risk.) |
Thank you for the explanation and advice. 😊 |
I have also asked this question on StackOverflow:
https://stackoverflow.com/q/78321715/2287576
I have seen a few questions about this. Eg:
https://stackoverflow.com/q/67920055/2287576
I don't mind these DLL files being there, but I am concerned. This is my runtimes folder structure:
My application is meant for running on a Windows PC, but my concern is this
net7.0
reference. In my installer I only check for .NET8 Runtime dependency and not .NET7.The
System.Management.dll
is used byGoogle.Apis.Gmail.v1
:The
System.Security.Cryptography.Pkcs.dll
is used byMimekit
, but I am not worried about this one:Concerning the
Google.Apis.Gmail.v1
NuGet package it states:So, back to my concern ... my installer only checks for .NET8 runtime as that is my target platform. Should I be concerned about this reference to .NET7 runtime in the runtimes sub-folder?
The text was updated successfully, but these errors were encountered: