Skip to content

Instantly share code, notes, and snippets.

@jaredpar
Created November 15, 2023 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredpar/a4161bc9fee08953a173d5219c08ee6e to your computer and use it in GitHub Desktop.
Save jaredpar/a4161bc9fee08953a173d5219c08ee6e to your computer and use it in GitHub Desktop.
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM passing Newtonsoft.Json.dll 13.0.0.0 works fine and results in the expected:
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM arning CS8785: Generator 'Generator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentNullException' with message 'Value cannot be null.
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM Parameter name: source'
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM Loaded modules:
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM C:\temp\CscAnal\analyzer\bin\Debug\netstandard2.0\analyzer.dll
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM C:\temp\CscAnal\analyzer\bin\Debug\netstandard2.0\Newtonsoft.Json.dll (13.0.0.0)
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM C:\temp\CscAnal\analyzer\bin\Debug\netstandard2.0\Newtonsoft.Json.Schema.dll
C:\Users\jaredpar\code\PublicBugs\CscAnal>csc 1.cs /t:Library -analyzer:analyzer\bin\Debug\netstandard2.0\analyzer.dll -analyzer:NS.J-13\Newtonsoft.Json.dll
Microsoft (R) Visual C# Compiler version 4.7.0-3.23517.17 (9d4cc030)
Copyright (C) Microsoft Corporation. All rights reserved.
warning CS8785: Generator 'Generator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentNullException' with message 'Value cannot be null.
Parameter name: source'
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM passing Newtonsoft.Json.dll 12.0.0.0 fails with:
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM System.MissingMethodException: Method not found: 'Void Newtonsoft.Json.Schema.SchemaExtensions.Validate(Newtonsoft.Json.Linq.JToken, Newtonsoft.Json.Schema.JSchema, Newtonsoft.Json.Schema.SchemaValidationEventHandler)'.
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM Loaded modules:
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM C:\temp\CscAnal\analyzer\bin\Debug\netstandard2.0\analyzer.dll
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM C:\temp\CscAnal\analyzer\bin\Debug\netstandard2.0\Newtonsoft.Json.dll (13.0.0.0)
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM C:\temp\CscAnal\analyzer\bin\Debug\netstandard2.0\Newtonsoft.Json.Schema.dll
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM C:\temp\CscAnal\NS.J-12\Newtonsoft.Json.dll
C:\Users\jaredpar\code\PublicBugs\CscAnal>csc 1.cs /t:Library -analyzer:analyzer\bin\Debug\netstandard2.0\analyzer.dll -analyzer:NS.J-12\Newtonsoft.Json.dll
Microsoft (R) Visual C# Compiler version 4.7.0-3.23517.17 (9d4cc030)
Copyright (C) Microsoft Corporation. All rights reserved.
warning CS8785: Generator 'Generator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'MissingMethodException' with message 'Method not found: 'Void Newtonsoft.Json.Schema.SchemaExtensions.Validate(Newtonsoft.Json.Linq.JToken, Newtonsoft.Json.Schema.JSchema, Newtonsoft.Json.Schema.SchemaValidationEventHandler)'.'
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM not passing Newtonsoft.Json.dll fails with:
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0=12=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM Loaded modules:
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM C:\temp\CscAnal\analyzer\bin\Debug\netstandard2.0\analyzer.dll
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM C:\temp\CscAnal\analyzer\bin\Debug\netstandard2.0\Newtonsoft.Json.dll (13.0.0.0)
C:\Users\jaredpar\code\PublicBugs\CscAnal>REM C:\temp\CscAnal\analyzer\bin\Debug\netstandard2.0\Newtonsoft.Json.Schema.dll
C:\Users\jaredpar\code\PublicBugs\CscAnal>csc 1.cs /t:Library -analyzer:analyzer\bin\Debug\netstandard2.0\analyzer.dll
Microsoft (R) Visual C# Compiler version 4.7.0-3.23517.17 (9d4cc030)
Copyright (C) Microsoft Corporation. All rights reserved.
warning CS8785: Generator 'Generator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.'
C:\Users\jaredpar\code\PublicBugs\CscAnal
🍿🐻 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment