2

I fell to the pitfall described in this question and answer: https://stackoverflow.com/a/60661593/1236401

Where some of my code was using System.Text.Json.Serialization.JsonIgnore instead of Newtonsoft.Json, probably due to choosing wrong package when ReSharper suggested missing refernces:

resharper

Is there a way to disable suggestion of the specific attribute or namespace?

Is there a way to prevent referencing this namespace in general?

That is besides text search in the code files.

Mugen
  • 8,301
  • 10
  • 62
  • 140

1 Answers1

0

I ended up adding the following verification to the CI pipeline.

! grep --include=\*.cs -rnw . -e "System.Text.Json.Serialization"
Mugen
  • 8,301
  • 10
  • 62
  • 140