Hi,
I'm converting another of my projects over to the new world of improved csproj + netstandard, and am seeing this error with NCrunch 3.7.0.4:
System.TypeInitializationException: The type initializer for 'KBCsv.CsvReader' threw an exception.
at KBCsv.CsvReader.FromCsvString(String csv)
at KBCsv.UnitTests.CsvReaderFixture.header_record_defaults_to_null() in C:\Users\Kent\Repository\KBCsv\Src\KBCsv.UnitTests\CsvReaderFixture.cs:line 187
System.IO.FileLoadException: Could not load file or assembly 'nCrunch.TestRuntime.DotNetCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
at KBCsv.CsvReader..cctor()
If I disable signing of my assemblies then I get a different error:
System.TypeInitializationException: The type initializer for 'KBCsv.CsvReader' threw an exception.
at KBCsv.CsvReader.FromCsvString(String csv)
at KBCsv.UnitTests.CsvReaderFixture.header_record_cannot_be_set_if_passed_first_record() in C:\Users\Kent\Repository\KBCsv\Src\KBCsv.UnitTests\CsvReaderFixture.cs:line 224
System.MethodAccessException: Attempt by security transparent method 'KBCsv.CsvReader..cctor()' to access security critical method 'nCrunch.TestRuntime.TestCoverageEventListener.NCrunchExitMethod(Int32, Int32 ByRef, UInt32)' failed.
at KBCsv.CsvReader..cctor() in C:\Users\Kent\Repository\KBCsv\Src\KBCsv\CsvReader.cs:line 95
If I disable security transparency on my assemblies, then my tests execute fine.
How can I get my tests to run regardless of signing/security transparency?
Thanks