Giter Club home page Giter Club logo

Comments (2)

xperiandri avatar xperiandri commented on May 28, 2024

When building on GitHub

Unhandled Exception:
  System.TypeInitializationException: The type initializer for 'System.Compiler.SystemTypes' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Compiler.CoreSystemTypes' threw an exception. ---> System.InvalidCastException: Specified cast is not valid.
    at System.Compiler.CoreSystemTypes.GetSystemAssembly (System.Boolean doNotLockFile, System.Boolean getDebugInfo, System.Compiler.AssemblyNode+PostAssemblyLoadProcessor postAssemblyLoad) [0x00076] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
    at System.Compiler.CoreSystemTypes.Initialize (System.Boolean doNotLockFile, System.Boolean getDebugInfo, System.Compiler.AssemblyNode+PostAssemblyLoadProcessor postAssemblyLoad) [0x0002b] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
    at System.Compiler.CoreSystemTypes..cctor () [0x00000] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
     --- End of inner exception stack trace ---
    at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
    at System.Compiler.SystemTypes.Initialize (System.Boolean doNotLockFile, System.Boolean getDebugInfo, System.Compiler.AssemblyNode+PostAssemblyLoadProcessor postAssemblyLoad) [0x00027] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
    at System.Compiler.SystemTypes..cctor () [0x00000] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
     --- End of inner exception stack trace ---
    at Microsoft.Contracts.Foxtrot.Driver.Program.InternalMain (System.String[] args) [0x0015a] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
    at Microsoft.Contracts.Foxtrot.Driver.Program.Main (System.String[] args) [0x0000c] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
  [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Compiler.SystemTypes' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Compiler.CoreSystemTypes' threw an exception. ---> System.InvalidCastException: Specified cast is not valid.
    at System.Compiler.CoreSystemTypes.GetSystemAssembly (System.Boolean doNotLockFile, System.Boolean getDebugInfo, System.Compiler.AssemblyNode+PostAssemblyLoadProcessor postAssemblyLoad) [0x00076] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
    at System.Compiler.CoreSystemTypes.Initialize (System.Boolean doNotLockFile, System.Boolean getDebugInfo, System.Compiler.AssemblyNode+PostAssemblyLoadProcessor postAssemblyLoad) [0x0002b] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
    at System.Compiler.CoreSystemTypes..cctor () [0x00000] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
     --- End of inner exception stack trace ---
    at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
    at System.Compiler.SystemTypes.Initialize (System.Boolean doNotLockFile, System.Boolean getDebugInfo, System.Compiler.AssemblyNode+PostAssemblyLoadProcessor postAssemblyLoad) [0x00027] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
    at System.Compiler.SystemTypes..cctor () [0x00000] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
     --- End of inner exception stack trace ---
    at Microsoft.Contracts.Foxtrot.Driver.Program.InternalMain (System.String[] args) [0x0015a] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
    at Microsoft.Contracts.Foxtrot.Driver.Program.Main (System.String[] args) [0x0000c] in <7c14c9b51c5c4cbbb3359f80fa0ab01d>:0 
/home/runner/.nuget/packages/codecontracts.msbuild/1.13.0-rc/Contracts/MsBuild/v15.0/Microsoft.CodeContracts.targets(255,5): error MSB3073: The command ""/home/runner/.nuget/packages/codecontracts.msbuild/1.13.0-rc/build/../Contracts/Bin/ccrewrite.exe" "@StringBuilderExtensionsccrewrite.rsp"" exited with code 1. [/home/runner/work/StringBuilderExtensions/StringBuilderExtensions/StringBuilderExtensions/StringBuilderExtensions.csproj]

from codecontracts.msbuild.

xperiandri avatar xperiandri commented on May 28, 2024

Tried to build with MSBuild instead of dotnet build on GitHub - same TypeInitializationException

from codecontracts.msbuild.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.