Variable declaration leads to InvalidProgramException

35 lượt xem
Chuyển tới thư đầu tiên chưa đọc

Michael Samoylenko

chưa đọc,
08:59:46 23 thg 11, 201623/11/16
đến scriptcs
I am using scriptcs for some custom deploy scripts in octopus and on some hosts it fails with error:
Script execution failed. [InvalidProgramException] Common Language Runtime detected an invalid program. After some experiments, I found that even a simple script - just declaring a variable, fails with that error. The same goes for running scripts from REPL too.
But if I enclose my script in a block - {...} everything works just fine.
Trả lời tất cả
Trả lời tác giả
Chuyển tiếp
0 tin nhắn mới