- 将帖子标记为未读
- 将此主题添加到书签
- 订阅此主题
- 禁止
- 订阅此主题的 RSS 提要
- 高亮显示此贴
- 打印此贴
- 标记帖子
HP不断的自动下载csharp源码并自动编译是什么原因?
发布时间 2018-01-17 11:34:36
以下是HP自动下载的源码,每天都在不停的下载和编译,然后360在不断的报警
#if _DYNAMIC_XMLSERIALIZER_COMPILATION
[assembly:System.Security.AllowPartiallyTrustedCallers()]
[assembly:System.Security.SecurityTransparent()]
#endif
[assembly:System.Reflection.AssemblyVersionAttribute("6.7.576.0")]
namespace Microsoft.Xml.Serialization.GeneratedAssembly {
public class XmlSerializationWriterProductConfigDyn2 : System.Xml.Serialization.XmlSerializationWriter {
public void Write33_ProductConfigDyn(object o) {
WriteStartDocument();
if (o == null) {
WriteEmptyTag(@"ProductConfigDyn", @"http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16");
return;
}
TopLevelElement();
Write32_ProductConfigDyn2(@"ProductConfigDyn", @"http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16", ((global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.ProductConfigDyn2)o), false, false);
}
void Write32_ProductConfigDyn2(string n, string ns, global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.ProductConfigDyn2 o, bool isNullable, bool needType) {
if ((object)o == null) {
if (isNullable) WriteNullTagLiteral(n, ns);
return;
}
if (!needType) {
System.Type t = o.GetType();
if (t == typeof(global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.ProductConfigDyn2)) {
}
else {
throw CreateUnknownTypeException(o);
}
}
WriteStartElement(n, ns, o, false, null);
if (needType) WriteXsiType(@"ProductConfigDyn", @"http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16");
Write2_Version(@"Version", @"http://www.hp.com/schemas/imaging/con/dictionaries/1.0/", ((global::Com.HP.HPXML.DD.Version)o.@Version), false, false);
Write8_ProductInformation(@"ProductInformation", @"http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05", ((global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.ProductInformation)o.@ProductInformation), false, false);
Write18_ProductSettings(@"ProductSettings", @"http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05", ((global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.ProductSettings)o.@ProductSettings), false, false);
Write24_Memory(@"Memory", @"http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05", ((global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.Memory)o.@Memory), false, false);
{
global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.Address[] a = (global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.Address[])((global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.Address[])o.@EmailAlerts);
if (a != null){
WriteStartElement(@"EmailAlerts", @"http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05", null, false);
for (int ia = 0; ia < a.Length; ia++) {
Write26_Address(@"Address", @"http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05", ((global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.Address)a[ia]), false, false);
}
WriteEndElement();
}
}
Write31_ProductSettings2(@"ProductSettings", @"http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16", ((global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.ProductSettings2)o.@ProductSettings2), false, false);
WriteEndElement(o);
}
void Write31_ProductSettings2(string n, string ns, global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.ProductSettings2 o, bool isNullable, bool needType) {
if ((object)o == null) {
if (isNullable) WriteNullTagLiteral(n, ns);
return;
}
if (!needType) {
System.Type t = o.GetType();
if (t == typeof(global::Com.HP.HPXML.DD.LEDMObjects.ProductConfig.ProductSettings2)) {
}
else {
throw CreateUnknownTypeException(o);
}
}
WriteStartElement(n, ns, o, false, null);
if (needType) WriteXsiType(@"ProductSettings", @"http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16");
WriteElementString(@"AssetNumber", @"http://www.hp.com/schemas/imaging/con/dictionaries/1.0/", ((global::System.String)o.@AssetNumber));
WriteElementString(@"CompanyName", @"http://www.hp.com/schemas/imaging/con/dictionaries/1.0/", ((global::System.String)o.@CompanyName));
WriteElementString(@"CompanyContact", @"http://www.hp.com/schemas/imaging/con/dictionaries/1.0/", ((global::System.String)o.@CompanyContact));
WriteElementString(@"FriendlyName", @"http://www.hp.com/schemas/imaging/con/dictionaries/1.0/", ((global::System.String)o.@FriendlyName));
if (o.@PowerOnCalibrationSpecified) {
WriteElementString(@"PowerOnCalibration", @"http://www.hp.com/schemas/imaging/con/dictionaries/1.0/", Write9_PowerOnCalibration(((global::Com.HP.HPXML.DD.PowerOnCalibration)o.@PowerOnCalibration)));
}
- 将帖子标记为未读
- 将此主题添加到书签
- 订阅此主题
- 禁止
- 订阅此主题的 RSS 提要
- 高亮显示此贴
- 打印此贴
- 标记帖子
HP不断的自动下载csharp源码并自动编译是什么原因?
发布时间 2018-01-19 10:49:37
这是今天上午下载编译的,再看一下编译输出里面的内容:
C:\Windows\system32> "C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\Program Files (x86)\HP\HPLaserJetService\LEDMXMLObjects.dll" /R:"C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /out:"C:\Windows\TEMP\bbytavpf.dll" /debug- /optimize+ /nostdlib /D:_DYNAMIC_XMLSERIALIZER_COMPILATION "C:\Windows\TEMP\bbytavpf.0.cs"
看这个.out文件里面的内容,应该是HP自动下载源码编译以后想向C:\Program Files (x86)\HP\HPLaserJetService\这个路径下面写入数据,但是为什么这么疯狂的下载编译呢?