You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner. It is now read-only.
For this project, the build in VS 2015 Update 1 fails with the following errors:
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithSingleCallToSingleOrDefaultAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithOfTypeWhereAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithSingleCallToLastAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithOfTypeSingleOrDefaultAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithOfTypeLongCountAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithSingleCallToFirstOrDefaultAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithOfTypeSingleAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ConvertConditionalTernaryToNullCoalescingAnalyzer' threw an exception of type 'System.IO.FileNotFoundException' with message 'Could not load file or assembly 'Microsoft.CodeAnalysis.Workspaces, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithSingleCallToLongCountAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithOfTypeLastAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithOfTypeFirstAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithOfTypeLastOrDefaultAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithSingleCallToCountAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithSingleCallToLastOrDefaultAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithOfTypeFirstOrDefaultAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.SimplifyConditionalTernaryExpressionAnalyzer' threw an exception of type 'System.IO.FileNotFoundException' with message 'Could not load file or assembly 'Microsoft.CodeAnalysis.Workspaces, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithSingleCallToAnyAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithOfTypeCountAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithSingleCallToFirstAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithSingleCallToSingleAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.ReplaceWithOfTypeAnyAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
1>CSC : error AD0001: Analyzer 'RefactoringEssentials.CSharp.Diagnostics.RedundantExplicitNullableCreationAnalyzer' threw an exception of type 'System.TypeInitializationException' with message 'The type initializer for 'RefactoringEssentials.TypeExtensions' threw an exception.'.
Let me know if there are additional info I can provide you.
The text was updated successfully, but these errors were encountered:
Reproducible with any simple project and the NuGet analyzer package. The only difference is that with a new empty project I see those messages as warnings, not as errors. It only affects compiling, analyzers work inside of VS code editor (means that the VSIX doesn't suffer that problem).
It looks like the reason is related to what is described here: dotnet/roslyn#7929 (comment)
"Microsoft.CodeAnalysis.Workspaces" and "Microsoft.CodeAnalysis.CSharp.Workspaces" don't seem to be loaded by command-line compiler.
I'll review those code parts to assure nothing from the *Workspaces assemblies is accessed by analyzers and hope that it will solve this issue.
Hello,
I have the latest version (3.2) and I still get those same warnings when adding RefactoringEssentials as an analyser on my projects.
Wasn't it fixed ?
Thanks.
For this project, the build in VS 2015 Update 1 fails with the following errors:
Let me know if there are additional info I can provide you.
The text was updated successfully, but these errors were encountered: