从VS2010(cmd提示符)使用XSD.exe生成类时,创建的类使用Runtime 4.0.30319.18444
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.**18444**
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
<System.Xml.Serialization.XmlElementAttribute(DataType:="date")> _
Public Property SomeDate() As Date
Get
Return Me.someDateField
End Get
Set(value As Date)
Me.someDateField= value
End Set
End Property
几周后我再次重新生成课程运行时使用的是不同的? 运行时版本:4.0.30319.1022并删除了集合中的“值作为日期”。自去年以来我没有运行任何更新,所以不确定Runtime版本是如何更改的?
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.**1022**
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
<System.Xml.Serialization.XmlElementAttribute(DataType:="date")> _
Public Property SomeDate() As Date
Get
Return Me.someDateField
End Get
Set
Me.someDateField= value
End Set
End Property
我如何确保始终使用相同的运行时?