This package make a time bomb from comment.
$ dotnet add package RSCG_TimeBombCommentReference the nuget package
<PackageReference Include="RSCG_TimeBombComment" Version="2023.12.19.1802" PrivateAssets="all" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
Just add :
//TB: 2021-09-13 this is a comment transformed into an error
and you will see the error!
The general form is
//TB: yyyy-MM-dd whatever here
Also,you can have this on methods
[Obsolete("should be deleted", TB_20210915)]
static string Test1()
{
return "asdasd";
}
Also, when you want to test something in your code, but give error if compiled with release
//Just for debug: if(args.length>0) throw new ArgumentException();
//JFD: test
will raise error if compiled with
dotnet build -c release
Now you can add
//TODO this is just appearing in task list and as a warning
//TODO 2025-09-23 and this is going to warning