为什么最新版本GetProducts()方法会出错,此方法在核心项目中,导致无法调用任何接口
private XmlDocument LoadEndpointDocument()
{
Assembly _assembly = Assembly.GetExecutingAssembly();
string resourceName = $'{_assembly.GetName().Name}.{文件夹路径}.{BUNDLED_ENDPOINTS_RESOURCE_PATH}';
Stream stream = _assembly.GetManifestResourceStream(resourceName);
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(stream);
return xmlDoc;
}
赞0
踩0