0
我有下面的代碼從YamlDotNet實況https://dotnetfiddle.net/QlqGDVYamlDotNet串行構造函數拋出異常
using System.Collections.Generic;
using System.IO;
using System;
using YamlDotNet.Serialization;
public class ALogger {
public function writeFile() {
using (var sw = new StreamWriter(_logFileCasesPath + @"\" + _logCaseName))
{
var ser = new Serializer();
ser.Serialize(sw, _logCase);
}
}
}
但新的串行拋出異常,我不知道爲什麼。我沒有找到任何提示異常信息。
Ein Ausnahmefehler des Typs "System.MissingMethodException" ist in InnoTest.exe aufgetreten.
Zusätzliche Informationen: Methode nicht gefunden: "Void YamlDotNet.Serialization.Serializer..ctor(YamlDotNet.Serialization.SerializationOptions, YamlDotNet.Serialization.INamingConvention, YamlDotNet.Serialization.YamlAttributeOverrides)".
同樣的問題在這裏。你是如何解決衝突的? – bovender