You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
- You will also need to ensure you're running .NET 4.7.2 or 4.8, since otherwise the code is unable to default to TLS 1.2 through OS settings. Are you?Jeroen Mostert– Jeroen Mostert2022-08-08 14:39:26 +00:00Commented Aug 8, 2022 at 14:39
- By default this example I tested it uses net 6.0. But I see this error also when I try to use Nuget package manager console in Visual Studio (2022). Where should I check this for IDE itself?cicatrix– cicatrix2022-08-08 14:40:26 +00:00Commented Aug 8, 2022 at 14:40
- Visual Studio 2022 itself is still a .NET 4.x application, so it should use the version of the .NET 4.x framework that's installed (there's only one and it's global). That said, if .NET 6 doesn't work it's probably not going to work there either, since 6 should definitely default to the OS, and I'm not sure what version of NuGet/framework would be used to restore packages if you're building a .NET 6 app -- VS is only the shell and I'd imagine the build system is the .NET 6 SDK throughout, including NuGet.Jeroen Mostert– Jeroen Mostert2022-08-08 14:51:25 +00:00Commented Aug 8, 2022 at 14:51
- This is what baffles me. Even if the fact that devenv.exe is still a .Net 4.x app, why my core 6 app from the original question still throws an exception under windows 7? It works fine with Win 10 though. I think the issue is not with Visual Studio itself but with the OS and some missing update, I think. Nevertheless, the nuget url opens fine with a browser. I wonder if the old outdated IE would open it though.cicatrix– cicatrix2022-08-08 17:22:26 +00:00Commented Aug 8, 2022 at 17:22
- It seems that the version of the package in this source( apiint.nugettest.org/v3-index/index.json) has not been updated, maybe you can try to use this source" api.nuget.org/v3/index.json".Jingmiao Xu-MSFT– Jingmiao Xu-MSFT2022-08-10 05:01:19 +00:00Commented Aug 10, 2022 at 5:01
| Show 2 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-cs