Guid.NewGuid().ToString() Exception

The “.ToString()” extension is throwing “System.Exception - CLR_E_UNSUPPORTED_INSTRUCTION (1)” when used like this:

var guid = Guid.NewGuid().ToString();

“Guid.NewGuid()” returns a valid guid but as soon and the “.ToString()” extension is added it throws an exception.

I’m seeing this also…

Looks like we forgot about this. Which is why we should be using GitHub issues :grin:


Yeah - I agree re:Github - I found the problem. Turns out that it fails for all ToString calls on structs (and Guid is a struct). I have narrowed it down to the failing IL opcode. Looks to be a problem in the interpreter. I’ll put it all in GitHub.

UPDATE: Logged as