Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • May 07 2020 13:24
    clairernovotny unassigned #7
  • May 07 2020 13:24
    BillWagner added as member
  • May 07 2020 13:24
    BillWagner removed as member
  • May 07 2020 13:22
    clairernovotny closed #182
  • May 07 2020 13:22
    clairernovotny commented #182
  • May 07 2020 13:21
    clairernovotny closed #192
  • May 07 2020 13:21
    clairernovotny commented #192
  • May 04 2020 08:11
    MarcoRossignoli opened #192
  • Apr 30 2020 15:40
    NextTurn closed #154
  • Apr 30 2020 02:54
    NextTurn commented #191
  • Apr 29 2020 15:53

    clairernovotny on master

    Fix broken links Split from dot… Merge pull request #191 from Ne… (compare)

  • Apr 29 2020 15:53
    clairernovotny closed #191
  • Apr 29 2020 15:53
    clairernovotny commented #191
  • Apr 29 2020 15:39
    NextTurn opened #191
  • Apr 29 2020 14:06

    clairernovotny on master

    Fix broken links Split from #154 Merge pull request #190 from Ne… (compare)

  • Apr 29 2020 14:06
    clairernovotny closed #190
  • Apr 29 2020 14:06

    clairernovotny on master

    Fix broken links Split from #154 Merge pull request #189 from Ne… (compare)

  • Apr 29 2020 14:06
    clairernovotny closed #189
  • Apr 16 2020 15:55
    NextTurn opened #190
  • Apr 15 2020 15:55
    NextTurn opened #189
check the release note of net6 preview5
regarding sdk workload especially
and there's also a part in vs2022 release not IIRC
Rui Oliveira
Is this channel adequate for general .net discussion?
how to convert c# to php
you don’t “convert” you rewrite it
and you probably have to learn how to read c# and how to write php
it’s not translatable 1 to 1
it needs human interaction
Stephen A. Imhoff
That, and your biggest problem is going to be that you almost certainly need to learn different frameworks, instead of just a different language.
.... and as a side note, it feels like you're going the wrong way.
How to write instant data to file
For example i want to write datetime to excel with every seconds
Stephen A. Imhoff
Do you mean "to excel program", "to excel file" (which might not be supported on non-windows platforms), or "to a file excel can read" (at which point you'd probably do CSV)
But your description makes me think you're dealing with something that's being logged, at which point you'd be better off using a dedicated logging/reporting library, many of which can output a CSV file (or to some other relevant format or storage, like maybe a database or splunk aggregator).
I mean,
For example: write every second to a file
Stephen A. Imhoff
..... write what every second to a file?
Stephen A. Imhoff
If it's only dates, ISO format it and write it out as normal, and just manually create the dates.
If it's the date/time + some other info - like, "this is the time this happened" - that's logging, and you should use a library that handles that for you.
If the actual current time is relevant, you're logging, and you should be using a library.
Because if you're dealing with something in a web context, you're going to be writing way more than 1Hz at some points, and you don't want to be only an excel file, and the log should probably be sent off the machine, and a few other things.
I'm getting mssql registry error.
computer then restarts
how can I fix it
Stephen A. Imhoff
@BgR8 - look up the registry error code, see what bing/google returns.
We're not a tech support board, but you might get lucky. That aside "it gave me an error" isn't sufficient information to reasonably diagnose from (:glares at blender:)
3 replies
Craig Freeman
If anyone has experience with streaming id really appreciate some insight on file uploads using streams. The sample apps on the docs show how to stream but then convert to a byte array anyway in order to read the file size for security reasons. So are there even any benefits if I have to read the stream to a byte array anyway?
sorry you posted in 2 channel it’s disturbing
you may have to ask the question also
Ahmed Rezk
Hey. I just got the new Macbook pro M1 ship. I need to install dotnet 3,5,6.
version 6 is working fine but not 3 or 5. Is there anyway to get them installed and working?
Daniel Hughes
Why has dotnet run decided that I need a very exact version of the .net 5 framework

It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '5.0.14' (x64) was not found.

  • The following frameworks were found:
    3.1.18 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    5.0.8 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    5.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    6.0.2 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

Why cannot it use 5.0.8 or 5.0.9 which I do have installed.
I can't see anywhere that I specify I want 5.0.14, (this started happening when I installed .net 6)

Hello Everyone. I am trying to integrate a cookie generated from .net core application into a .net framework 4.6.1 application. I have followed along everything I could in the resources available online....
1 - https://docs.microsoft.com/en-us/aspnet/core/security/cookie-sharing?view=aspnetcore-6.0
2 - dotnet/AspNetCore.Docs#21987

But it appears for some reasons the instance of dataprotector in .net framework cannot unprotect the cookie.

Anyone who has done it and can share some thoughts, it will be great.
Dotnet core Startup.cs:
                .PersistKeysToFileSystem(new DirectoryInfo(Path.Combine("C:", "temp-keys")))


                .AddCookie("My-Cookie", options =>
                    options.ExpireTimeSpan = TimeSpan.FromMinutes(120);
                    options.Cookie.Name = "mta";
                    options.Cookie.Path = "/";
                    options.CookieManager = new ChunkingCookieManager();

services.Configure<CookiePolicyOptions>(options =>
                //options.MinimumSameSitePolicy = SameSiteMode.Strict;
                //options.HttpOnly = Microsoft.AspNetCore.CookiePolicy.HttpOnlyPolicy.Always;
                //options.Secure = CookieSecurePolicy.Always;
ASP.NET Startup.Auth.cs:
app.UseCookieAuthentication(new CookieAuthenticationOptions
                AuthenticationType = "My-Cookie",
                CookieName = "mta",
                CookiePath = "/",
                ExpireTimeSpan = TimeSpan.FromMinutes(120),
                TicketDataFormat = new AspNetTicketDataFormat(
                                new DataProtectorShim(
                                    DataProtectionProvider.Create(new DirectoryInfo(Path.Combine("C:", "temp-keys")),
                                        (builder) => { builder.SetApplicationName("SSO"); })
                                        "Microsoft.AspNetCore.Authentication.Cookies." +
                CookieManager = new ChunkingCookieManager()

Alright this was resolved the issue was:
DataProtectionProvider.Create(new DirectoryInfo(Path.Combine("C:", "temp-keys"))

In .NET Framework Path.Combine is somehow not attaching a trailing slash to the "C:".

Ciara Carey

Not sure if this is right channel but I attended a OpenSSF working group on Securing Software Repositories
and there wasn't much representation from the NuGet or Powershell communities

Just thought I post about it here in case anyone is interested in it:
Join the OpenSSF Slack: https://slack.openssf.org/
Join the #securing_software_repos channel: https://app.slack.com/client/T019QHUBYQ3/C034CBLMQ9G

OpenSSF is a foundation under the Linux Foundation to help make open source software more secure

I'm from Cloudsmith, which is a private repository that hosts all formats- I was at that meeting to just listen as securing the supply chain is a big concern for us

I need help quickly from some .NET Dev (I am a dev myself)
Here I have a web application on which I changed .NET 5 TargetFramework in .NET 6, which is running fine on a IIS Server with a .NET 5.0.6 Runtime install. How this is possible? Shouldn't it require .NET 6 installed on the server?
Basically I can deploy the Asp.NET MVC application using .NET 6 in a IIS Server where .NET5 is installed
and it works....
Shouldn't be .NET 6 be required or throw some error?
I like how reponsive this chat is
you can die before getting an answer

@Porkechebure: The .NET Gitter channels are usually pretty quiet. Good discussion, but just not as active. You may want to try the Discord channel.

Many features in .NET are forward-compatible. If you have something written for .NET 6 that doesn't depend on any runtime features from .NET 6, it can be run on previous framework versions. The features in your ASP.NET Core application (or at least the ones that it requires to start) may only be using features from .NET 5, and therefore, it is able to start.

However, running that way is generally not supported, because it's not guaranteed that ASP.NET Core 6 won't change something in a future release that depends on .NET 6.0+ runtime features.

A Jensen-Waud
John Moreno
I’m on the possibly mistaken impression that a vsix analyzer/codefix can be included in a project as a nuget package, but can’t find any instructions on this. Am I wrong, and if not, any example or tutorial on doing so?
Salil Ratna Bajracharya
Hello everyone