Jonas Nyrup

Results 305 comments of Jonas Nyrup

Note: It seems that error message is only used for: * `ImmutableQueue.Peek()` * `ImmutableQueue.PeekRef()` * `ImmutableStack.Peek()` * `ImmutableStack.PeekRef()` https://github.com/dotnet/corefx/search?q=InvalidEmptyOperation&unscoped_q=InvalidEmptyOperation

Here's how others are negating expressions: https://github.com/JosefPihrt/Roslynator/blob/9098bd81a98e5b57ce65546628cb8d8349ca888f/source/Core/CSharp/Helpers/LogicalNegationHelper.cs

Here's an example of a net472 console application that uses FluentFtp 40.0.0 and Microsoft.Extensions.Logging.Abstractions 6.0.2. [ConsoleApp67.zip](https://github.com/robinrodricks/FluentFTP/files/9640737/ConsoleApp67.zip) The error snippet you're including suggests to me that you're not using an SDK...

My example application also works when _not_ upgrading `Microsoft.Extensions.Logging.Abstractions`. These kinds of problems are commonly referred to as [Dependency Hell](https://en.wikipedia.org/wiki/Dependency_hell). Using SDK style project alleviates a bunch of these problems,...

The modernized/new style of csproj that consolidates `packages.config` and many parts of `app.config` into csproj. old style csproj ```csproj Debug AnyCPU {7CA92B8A-5197-4FF7-94C3-D188B06B7694} Exe Properties ConsoleApp68 ConsoleApp68 v4.7.2 512 true full...

Do you build the published nugets locally? I'd recommend using e.g. Github Actions (or any other build agent) to avoid e.g. locally defined nuget feeds to interfere.

Feel free to copy from FluentAssertions, we use [NUKE](https://nuke.build/) by Matthias Koch which makes build pipelines _much_ less painful to work with. https://github.com/fluentassertions/fluentassertions/blob/develop/.github/workflows/build.yml https://github.com/fluentassertions/fluentassertions/tree/develop/Build

Since the original purpose of this issue is solved, I'm closing it.

Are there any assertions in `GenericCollectionAssertions`, `StringAssertions` or their base classes that would return inconsistent/meaningless results? Some examples: * `[Not]BeSameAs` as two value types can't have referential equality. * `[Not]BeNull`...

> I had to search the Internet for the error, found this GitHub site, read the code, realized I was dumb and should have used `Be()`. For my understanding of...