The "Fody.WeavingTask" task failed unexpectedly: The type initializer for 'ContainsTypeChecker' threw an exception
See original GitHub issueHello, Simon
I’ve got today very similar exception to this one (https://github.com/Fody/Fody/issues/87) trying to build Virtuosity project (I should say that I get the same error for all Fody projects):
Error 2 The "Fody.WeavingTask" task failed unexpectedly.
System.TypeInitializationException: The type initializer for 'ContainsTypeChecker' threw an exception. ---> System.NotSupportedException: '#' character in path is not supported while building projects containing Fody.
at AssemblyLocation.CurrentDirectory() in c:\TeamCity\buildAgent\work\7495521761d392b9\Fody\AssemblyLocation.cs:line 13
at ContainsTypeChecker..cctor() in c:\TeamCity\buildAgent\work\7495521761d392b9\Fody\ContainsTypeChecker.cs:line 9
--- End of inner exception stack trace ---
at ContainsTypeChecker..ctor()
at Processor..ctor() in c:\TeamCity\buildAgent\work\7495521761d392b9\Fody\Processor.cs:line 28
at Fody.WeavingTask.Execute() in c:\TeamCity\buildAgent\work\7495521761d392b9\Fody\WeavingTask.cs:line 44
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() Fody
I didn’t get a hint from #87 how to resolve an issue, therefore I would be very grateful to you for your help.
Thank you in advance.
Regards, Dmitry
Issue Analytics
- State:
- Created 9 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Fody.WeavingTask task fails unexpectedly with System. ...
The devops build task was working fine in the past but now the build log files show the following error to which I...
Read more >Ncrunch Fody ContainsTypeChecker - Build/Test Issues
WeavingTask " task failed unexpectedly. System.TypeInitializationException: The type initializer for 'ContainsTypeChecker' threw an exception.
Read more >Severity Code Description Project File Line Suppression ...
Error The "Fody.WeavingTask" task failed unexpectedly. System. ... The type initializer for 'ContainsTypeChecker' threw an exception.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep, I was trying to be nice, heh. The .NET error doesn’t make it obvious what the problem is, so thought I’d share in case anyone else was googling and hit this issue.
For anyone else stumbling on this, I had a similar issue:
The solution is to right-click the dll in question, and check the ‘Unblock’ checkmark.