You've already forked linux-packaging-mono
Imported Upstream version 3.12.0
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
This commit is contained in:
@@ -545,6 +545,9 @@ namespace CorCompare
|
||||
if (TypeHelper.IsDelegate(t))
|
||||
return "delegate";
|
||||
|
||||
if (t.IsPointer)
|
||||
return "pointer";
|
||||
|
||||
return "class";
|
||||
}
|
||||
|
||||
@@ -907,6 +910,8 @@ namespace CorCompare
|
||||
AddAttribute (p, "abstract", "true");
|
||||
if (mbase.IsVirtual)
|
||||
AddAttribute (p, "virtual", "true");
|
||||
if (mbase.IsFinal && mbase.IsVirtual && mbase.IsReuseSlot)
|
||||
AddAttribute (p, "sealed", "true");
|
||||
if (mbase.IsStatic)
|
||||
AddAttribute (p, "static", "true");
|
||||
|
||||
|
@@ -90,9 +90,23 @@ cleanup:
|
||||
-rm -Rf Test/en.actual Test/html.actual
|
||||
-rm -f monodocer1.exe*
|
||||
|
||||
Test/DocTest-DropNS-classic-secondary.dll:
|
||||
@echo $(value @)
|
||||
$(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-DropNS-classic-secondary.cs
|
||||
|
||||
Test/DocTest-DropNS-classic.dll:
|
||||
@echo $(value @)
|
||||
$(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-DropNS-classic.cs
|
||||
|
||||
Test/DocTest-DropNS-unified.dll:
|
||||
$(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-DropNS-unified.cs
|
||||
|
||||
Test/DocTest.dll:
|
||||
$(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest.cs
|
||||
|
||||
Test/DocTest-InternalInterface.dll:
|
||||
$(CSCOMPILE) $(TEST_CSCFLAGS) -debug -unsafe -target:library -out:$@ Test/DocTest-InternalInterface.cs
|
||||
|
||||
Test/DocTest.dll-v1:
|
||||
-rm -f Test/DocTest.cs
|
||||
cp Test/DocTest-v1.cs Test/DocTest.cs
|
||||
@@ -106,6 +120,42 @@ Test/DocTest.dll-v2:
|
||||
-rm -f Test/DocTest.dll
|
||||
$(MAKE) TEST_CSCFLAGS=$(TEST_CSCFLAGS) Test/DocTest.dll
|
||||
|
||||
check-monodocer-dropns-classic: $(PROGRAM)
|
||||
# tests the simplest --dropns case, a single class where the root namespace was dropped.
|
||||
-rm -Rf Test/en.actual
|
||||
$(MAKE) Test/DocTest-DropNS-classic.dll
|
||||
$(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-classic.dll
|
||||
$(MAKE) update-monodocer-dropns-unified
|
||||
diff --exclude=.svn -rup Test/en.expected-dropns-classic-v1 Test/en.actual
|
||||
|
||||
check-monodocer-dropns-classic-withsecondary: $(PROGRAM)
|
||||
# tests case where a secondary assembly is included with a --dropns parameter
|
||||
-rm -Rf Test/en.actual
|
||||
$(MAKE) Test/DocTest-DropNS-classic.dll
|
||||
$(MAKE) Test/DocTest-DropNS-classic-secondary.dll
|
||||
$(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-classic.dll Test/DocTest-DropNS-classic-secondary.dll
|
||||
$(MAKE) update-monodocer-dropns-unified-withsecondary
|
||||
diff --exclude=.svn -rup Test/en.expected-dropns-classic-withsecondary Test/en.actual
|
||||
|
||||
update-monodocer-dropns-unified: $(PROGRAM)
|
||||
$(MAKE) Test/DocTest-DropNS-unified.dll
|
||||
$(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-unified.dll --dropns Test/DocTest-DropNS-unified.dll=MyFramework
|
||||
|
||||
update-monodocer-dropns-unified-withsecondary: $(PROGRAM)
|
||||
$(MAKE) Test/DocTest-DropNS-unified.dll
|
||||
$(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-unified.dll Test/DocTest-DropNS-classic-secondary.dll --dropns Test/DocTest-DropNS-unified.dll=MyFramework
|
||||
|
||||
update-monodocer-dropns-classic-secondary: $(PROGRAM)
|
||||
$(MAKE) Test/DocTest-DropNS-classic-secondary.dll
|
||||
$(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-DropNS-classic-secondary.dll
|
||||
|
||||
check-monodocer-internal-interface: $(PROGRAM)
|
||||
# Tests to make sure internal interfaces that are explicitly implemented are not documented
|
||||
-rm -Rf Test/en.actual
|
||||
$(MAKE) Test/DocTest-InternalInterface.dll
|
||||
$(MONO) $(PROGRAM) update --exceptions=all -o Test/en.actual Test/DocTest-InternalInterface.dll
|
||||
diff --exclude=.svn -rup Test/en.expected-internal-interface Test/en.actual
|
||||
|
||||
check-monodocer-update: $(PROGRAM)
|
||||
find Test/en.expected -name \*.xml -exec rm "{}" \;
|
||||
$(MAKE) Test/DocTest.dll-v1
|
||||
@@ -262,8 +312,12 @@ check-doc-tools-update: check-monodocer-since-update \
|
||||
check-monodocer-importecmadoc-update \
|
||||
check-monodocer-importslashdoc-update \
|
||||
check-monodocer-update \
|
||||
check-monodocer-dropns-classic \
|
||||
check-monodocer-dropns-classic-withsecondary \
|
||||
check-monodocer-internal-interface \
|
||||
check-monodocer-delete-update \
|
||||
check-mdoc-export-html-update \
|
||||
check-mdoc-export-msxdoc-update \
|
||||
check-mdoc-validate-update
|
||||
check-mdoc-validate-update
|
||||
|
||||
|
||||
|
@@ -1 +1 @@
|
||||
75a6d5ca63e3306dfd27c5996a930a3118ebe725
|
||||
842a4ae439f36136fbb90c5e5942dcf8b5d56cbb
|
@@ -0,0 +1,67 @@
|
||||
<Type Name="MyClass" FullName="MyFramework.MyNamespace.MyClass">
|
||||
<TypeSignature Language="C#" Value="public class MyClass" />
|
||||
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MyClass extends System.Object" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>DocTest-DropNS-classic</AssemblyName>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>System.Object</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public MyClass ();" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Hello">
|
||||
<MemberSignature Language="C#" Value="public float Hello (int value);" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance float32 Hello(int32 value) cil managed" />
|
||||
<MemberType>Method</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Single</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="value" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="value">To be added.</param>
|
||||
<summary>To be added.</summary>
|
||||
<returns>To be added.</returns>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="MyProperty">
|
||||
<MemberSignature Language="C#" Value="public string MyProperty { get; set; }" />
|
||||
<MemberSignature Language="ILAsm" Value=".property instance string MyProperty" />
|
||||
<MemberType>Property</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<value>To be added.</value>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
22
mcs/tools/mdoc/Test/en.expected-dropns-classic-v0/index.xml
Normal file
22
mcs/tools/mdoc/Test/en.expected-dropns-classic-v0/index.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<Overview>
|
||||
<Assemblies>
|
||||
<Assembly Name="DocTest-DropNS-classic" Version="0.0.0.0">
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<AttributeName>System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute+DebuggingModes.IgnoreSymbolStoreSequencePoints)</AttributeName>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<AttributeName>System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows=true)</AttributeName>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Assembly>
|
||||
</Assemblies>
|
||||
<Remarks>To be added.</Remarks>
|
||||
<Copyright>To be added.</Copyright>
|
||||
<Types>
|
||||
<Namespace Name="MyFramework.MyNamespace">
|
||||
<Type Name="MyClass" Kind="Class" />
|
||||
</Namespace>
|
||||
</Types>
|
||||
<Title>DocTest-DropNS-classic</Title>
|
||||
</Overview>
|
@@ -0,0 +1,6 @@
|
||||
<Namespace Name="MyFramework.MyNamespace">
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Namespace>
|
@@ -0,0 +1,80 @@
|
||||
<Type Name="MyClass" FullName="MyFramework.MyNamespace.MyClass">
|
||||
<TypeSignature Language="C#" Value="public class MyClass" />
|
||||
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MyClass extends System.Object" />
|
||||
<AssemblyInfo apistyle="classic">
|
||||
<AssemblyName>DocTest-DropNS-classic</AssemblyName>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<AssemblyInfo apistyle="unified">
|
||||
<AssemblyName>DocTest-DropNS-unified</AssemblyName>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>System.Object</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public MyClass ();" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<AssemblyInfo apistyle="classic">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<AssemblyInfo apistyle="unified">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Hello">
|
||||
<MemberSignature Language="C#" Value="public float Hello (int value);" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance float32 Hello(int32 value) cil managed" />
|
||||
<MemberType>Method</MemberType>
|
||||
<AssemblyInfo apistyle="classic">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<AssemblyInfo apistyle="unified">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Single</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="value" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="value">To be added.</param>
|
||||
<summary>To be added.</summary>
|
||||
<returns>To be added.</returns>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="MyProperty">
|
||||
<MemberSignature Language="C#" Value="public string MyProperty { get; set; }" />
|
||||
<MemberSignature Language="ILAsm" Value=".property instance string MyProperty" />
|
||||
<MemberType>Property</MemberType>
|
||||
<AssemblyInfo apistyle="classic">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<AssemblyInfo apistyle="unified">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<value>To be added.</value>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
22
mcs/tools/mdoc/Test/en.expected-dropns-classic-v1/index.xml
Normal file
22
mcs/tools/mdoc/Test/en.expected-dropns-classic-v1/index.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<Overview>
|
||||
<Assemblies>
|
||||
<Assembly Name="DocTest-DropNS-unified" Version="0.0.0.0">
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<AttributeName>System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute+DebuggingModes.IgnoreSymbolStoreSequencePoints)</AttributeName>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<AttributeName>System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows=true)</AttributeName>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Assembly>
|
||||
</Assemblies>
|
||||
<Remarks>To be added.</Remarks>
|
||||
<Copyright>To be added.</Copyright>
|
||||
<Types>
|
||||
<Namespace Name="MyFramework.MyNamespace">
|
||||
<Type Name="MyClass" Kind="Class" />
|
||||
</Namespace>
|
||||
</Types>
|
||||
<Title>DocTest-DropNS-classic</Title>
|
||||
</Overview>
|
@@ -0,0 +1,6 @@
|
||||
<Namespace Name="MyFramework.MyNamespace">
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Namespace>
|
@@ -0,0 +1,80 @@
|
||||
<Type Name="MyClass" FullName="MyFramework.MyNamespace.MyClass">
|
||||
<TypeSignature Language="C#" Value="public class MyClass" />
|
||||
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MyClass extends System.Object" />
|
||||
<AssemblyInfo apistyle="classic">
|
||||
<AssemblyName>DocTest-DropNS-classic</AssemblyName>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<AssemblyInfo apistyle="unified">
|
||||
<AssemblyName>DocTest-DropNS-unified</AssemblyName>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>System.Object</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public MyClass ();" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<AssemblyInfo apistyle="classic">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<AssemblyInfo apistyle="unified">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Hello">
|
||||
<MemberSignature Language="C#" Value="public float Hello (int value);" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance float32 Hello(int32 value) cil managed" />
|
||||
<MemberType>Method</MemberType>
|
||||
<AssemblyInfo apistyle="classic">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<AssemblyInfo apistyle="unified">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Single</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="value" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="value">To be added.</param>
|
||||
<summary>To be added.</summary>
|
||||
<returns>To be added.</returns>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="MyProperty">
|
||||
<MemberSignature Language="C#" Value="public string MyProperty { get; set; }" />
|
||||
<MemberSignature Language="ILAsm" Value=".property instance string MyProperty" />
|
||||
<MemberType>Property</MemberType>
|
||||
<AssemblyInfo apistyle="classic">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<AssemblyInfo apistyle="unified">
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<value>To be added.</value>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
@@ -0,0 +1,67 @@
|
||||
<Type Name="MyOtherClass" FullName="MyFramework.MyOtherNamespace.MyOtherClass">
|
||||
<TypeSignature Language="C#" Value="public class MyOtherClass" />
|
||||
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MyOtherClass extends System.Object" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>DocTest-DropNS-classic-secondary</AssemblyName>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>System.Object</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public MyOtherClass ();" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Hello">
|
||||
<MemberSignature Language="C#" Value="public float Hello (int value);" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance float32 Hello(int32 value) cil managed" />
|
||||
<MemberType>Method</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Single</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters>
|
||||
<Parameter Name="value" Type="System.Int32" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
<param name="value">To be added.</param>
|
||||
<summary>To be added.</summary>
|
||||
<returns>To be added.</returns>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="MyProperty">
|
||||
<MemberSignature Language="C#" Value="public string MyProperty { get; set; }" />
|
||||
<MemberSignature Language="ILAsm" Value=".property instance string MyProperty" />
|
||||
<MemberType>Property</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<value>To be added.</value>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
@@ -0,0 +1,35 @@
|
||||
<Overview>
|
||||
<Assemblies>
|
||||
<Assembly Name="DocTest-DropNS-unified" Version="0.0.0.0">
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<AttributeName>System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute+DebuggingModes.IgnoreSymbolStoreSequencePoints)</AttributeName>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<AttributeName>System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows=true)</AttributeName>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Assembly>
|
||||
<Assembly Name="DocTest-DropNS-classic-secondary" Version="0.0.0.0">
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<AttributeName>System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute+DebuggingModes.IgnoreSymbolStoreSequencePoints)</AttributeName>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<AttributeName>System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows=true)</AttributeName>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Assembly>
|
||||
</Assemblies>
|
||||
<Remarks>To be added.</Remarks>
|
||||
<Copyright>To be added.</Copyright>
|
||||
<Types>
|
||||
<Namespace Name="MyFramework.MyNamespace">
|
||||
<Type Name="MyClass" Kind="Class" />
|
||||
</Namespace>
|
||||
<Namespace Name="MyFramework.MyOtherNamespace">
|
||||
<Type Name="MyOtherClass" Kind="Class" />
|
||||
</Namespace>
|
||||
</Types>
|
||||
<Title>Untitled</Title>
|
||||
</Overview>
|
@@ -0,0 +1,6 @@
|
||||
<Namespace Name="MyFramework.MyNamespace">
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Namespace>
|
@@ -0,0 +1,6 @@
|
||||
<Namespace Name="MyFramework.MyOtherNamespace">
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Namespace>
|
@@ -0,0 +1,63 @@
|
||||
<Type Name="MyClass" FullName="MyNamespace.MyClass">
|
||||
<TypeSignature Language="C#" Value="public class MyClass" />
|
||||
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MyClass extends System.Object" />
|
||||
<AssemblyInfo>
|
||||
<AssemblyName>DocTest-InternalInterface</AssemblyName>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Base>
|
||||
<BaseTypeName>System.Object</BaseTypeName>
|
||||
</Base>
|
||||
<Interfaces />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
<Members>
|
||||
<Member MemberName=".ctor">
|
||||
<MemberSignature Language="C#" Value="public MyClass ();" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
|
||||
<MemberType>Constructor</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="Bar">
|
||||
<MemberSignature Language="C#" Value="public string Bar { get; set; }" />
|
||||
<MemberSignature Language="ILAsm" Value=".property instance string Bar" />
|
||||
<MemberType>Property</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.String</ReturnType>
|
||||
</ReturnValue>
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<value>To be added.</value>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
<Member MemberName="BarMeth">
|
||||
<MemberSignature Language="C#" Value="public void BarMeth ();" />
|
||||
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void BarMeth() cil managed" />
|
||||
<MemberType>Method</MemberType>
|
||||
<AssemblyInfo>
|
||||
<AssemblyVersion>0.0.0.0</AssemblyVersion>
|
||||
</AssemblyInfo>
|
||||
<ReturnValue>
|
||||
<ReturnType>System.Void</ReturnType>
|
||||
</ReturnValue>
|
||||
<Parameters />
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Member>
|
||||
</Members>
|
||||
</Type>
|
22
mcs/tools/mdoc/Test/en.expected-internal-interface/index.xml
Normal file
22
mcs/tools/mdoc/Test/en.expected-internal-interface/index.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<Overview>
|
||||
<Assemblies>
|
||||
<Assembly Name="DocTest-InternalInterface" Version="0.0.0.0">
|
||||
<Attributes>
|
||||
<Attribute>
|
||||
<AttributeName>System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute+DebuggingModes.IgnoreSymbolStoreSequencePoints)</AttributeName>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<AttributeName>System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows=true)</AttributeName>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Assembly>
|
||||
</Assemblies>
|
||||
<Remarks>To be added.</Remarks>
|
||||
<Copyright>To be added.</Copyright>
|
||||
<Types>
|
||||
<Namespace Name="MyNamespace">
|
||||
<Type Name="MyClass" Kind="Class" />
|
||||
</Namespace>
|
||||
</Types>
|
||||
<Title>DocTest-InternalInterface</Title>
|
||||
</Overview>
|
@@ -0,0 +1,6 @@
|
||||
<Namespace Name="MyNamespace">
|
||||
<Docs>
|
||||
<summary>To be added.</summary>
|
||||
<remarks>To be added.</remarks>
|
||||
</Docs>
|
||||
</Namespace>
|
@@ -715,9 +715,14 @@ void mono_register_config_for_assembly (const char* assembly_name, cons
|
||||
if (use_dos2unix == null) {
|
||||
use_dos2unix = false;
|
||||
try {
|
||||
var dos2unix = Process.Start ("dos2unix");
|
||||
var info = new ProcessStartInfo ("dos2unix");
|
||||
info.CreateNoWindow = true;
|
||||
info.RedirectStandardInput = true;
|
||||
info.UseShellExecute = false;
|
||||
var dos2unix = Process.Start (info);
|
||||
dos2unix.StandardInput.WriteLine ("aaa");
|
||||
dos2unix.StandardInput.WriteLine ("\u0004");
|
||||
dos2unix.StandardInput.Close ();
|
||||
dos2unix.WaitForExit ();
|
||||
if (dos2unix.ExitCode == 0)
|
||||
use_dos2unix = true;
|
||||
|
@@ -6,7 +6,7 @@ include ../../build/rules.make
|
||||
LOCAL_MCS_FLAGS = /lib:$(topdir)/class/lib/$(PROFILE) -r:Mono.Security.dll
|
||||
|
||||
SECURITY_PROGRAMS = secutil.exe cert2spc.exe sn.exe makecert.exe chktrust.exe crlupdate.exe \
|
||||
signcode.exe setreg.exe certmgr.exe caspol.exe permview.exe mozroots.exe
|
||||
signcode.exe setreg.exe certmgr.exe caspol.exe permview.exe mozroots.exe cert-sync.exe
|
||||
SECURITY_PROGRAMS_2_0 = httpcfg.exe
|
||||
|
||||
HELPER_SOURCES = AssemblyInfo.cs $(topdir)/build/common/Consts.cs
|
||||
|
226
mcs/tools/security/cert-sync.cs
Normal file
226
mcs/tools/security/cert-sync.cs
Normal file
@@ -0,0 +1,226 @@
|
||||
//
|
||||
// cert-sync.cs: Import the root certificates from Linux SSL store into Mono
|
||||
//
|
||||
// Authors:
|
||||
// Sebastien Pouliot <sebastien@ximian.com>
|
||||
// Jo Shields <jo.shields@xamarin.com>
|
||||
//
|
||||
// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
|
||||
// Copyright (C) 2014 Xamarin, Inc (http://www.xamarin.com)
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining
|
||||
// a copy of this software and associated documentation files (the
|
||||
// "Software"), to deal in the Software without restriction, including
|
||||
// without limitation the rights to use, copy, modify, merge, publish,
|
||||
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||
// permit persons to whom the Software is furnished to do so, subject to
|
||||
// the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be
|
||||
// included in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
using Mono.Security.X509;
|
||||
|
||||
[assembly: AssemblyTitle ("Linux Cert Store Sync")]
|
||||
[assembly: AssemblyDescription ("Synchronize local certs with certs from local Linux trust store.")]
|
||||
|
||||
namespace Mono.Tools
|
||||
{
|
||||
|
||||
class CertSync
|
||||
{
|
||||
|
||||
static string inputFile;
|
||||
static bool quiet;
|
||||
|
||||
static X509Certificate DecodeCertificate (string s)
|
||||
{
|
||||
byte[] rawdata = Convert.FromBase64String (s);
|
||||
return new X509Certificate (rawdata);
|
||||
}
|
||||
|
||||
static Stream GetFile ()
|
||||
{
|
||||
try {
|
||||
if (inputFile != null) {
|
||||
return File.OpenRead (inputFile);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
static X509CertificateCollection DecodeCollection ()
|
||||
{
|
||||
X509CertificateCollection roots = new X509CertificateCollection ();
|
||||
StringBuilder sb = new StringBuilder ();
|
||||
bool processing = false;
|
||||
|
||||
using (Stream s = GetFile ()) {
|
||||
if (s == null) {
|
||||
WriteLine ("Couldn't retrieve the file using the supplied information.");
|
||||
return null;
|
||||
}
|
||||
|
||||
StreamReader sr = new StreamReader (s);
|
||||
while (true) {
|
||||
string line = sr.ReadLine ();
|
||||
if (line == null)
|
||||
break;
|
||||
|
||||
if (processing) {
|
||||
if (line.StartsWith ("-----END CERTIFICATE-----")) {
|
||||
processing = false;
|
||||
X509Certificate root = DecodeCertificate (sb.ToString ());
|
||||
roots.Add (root);
|
||||
|
||||
sb = new StringBuilder ();
|
||||
continue;
|
||||
}
|
||||
sb.Append (line);
|
||||
} else {
|
||||
processing = line.StartsWith ("-----BEGIN CERTIFICATE-----");
|
||||
}
|
||||
}
|
||||
return roots;
|
||||
}
|
||||
}
|
||||
|
||||
static int Process ()
|
||||
{
|
||||
X509CertificateCollection roots = DecodeCollection ();
|
||||
if (roots == null) {
|
||||
return 1;
|
||||
} else if (roots.Count == 0) {
|
||||
WriteLine ("No certificates were found.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
X509Stores stores = (X509StoreManager.LocalMachine);
|
||||
X509CertificateCollection trusted = stores.TrustedRoot.Certificates;
|
||||
int additions = 0;
|
||||
WriteLine ("I already trust {0}, your new list has {1}", trusted.Count, roots.Count);
|
||||
foreach (X509Certificate root in roots) {
|
||||
if (!trusted.Contains (root)) {
|
||||
try {
|
||||
stores.TrustedRoot.Import (root);
|
||||
WriteLine ("Certificate added: {0}", root.SubjectName);
|
||||
} catch {
|
||||
WriteLine ("Warning: Could not import {0}");
|
||||
}
|
||||
additions++;
|
||||
}
|
||||
}
|
||||
if (additions > 0)
|
||||
WriteLine ("{0} new root certificates were added to your trust store.", additions);
|
||||
|
||||
X509CertificateCollection removed = new X509CertificateCollection ();
|
||||
foreach (X509Certificate trust in trusted) {
|
||||
if (!roots.Contains (trust)) {
|
||||
removed.Add (trust);
|
||||
}
|
||||
}
|
||||
if (removed.Count > 0) {
|
||||
WriteLine ("{0} previously trusted certificates were removed.", removed.Count);
|
||||
|
||||
foreach (X509Certificate old in removed) {
|
||||
stores.TrustedRoot.Remove (old);
|
||||
WriteLine ("Certificate removed: {0}", old.SubjectName);
|
||||
}
|
||||
}
|
||||
WriteLine ("Import process completed.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static string Thumbprint (string algorithm, X509Certificate certificate)
|
||||
{
|
||||
HashAlgorithm hash = HashAlgorithm.Create (algorithm);
|
||||
byte[] digest = hash.ComputeHash (certificate.RawData);
|
||||
return BitConverter.ToString (digest);
|
||||
}
|
||||
|
||||
static bool ParseOptions (string[] args)
|
||||
{
|
||||
if (args.Length < 1)
|
||||
return false;
|
||||
|
||||
for (int i = 0; i < args.Length - 1; i++) {
|
||||
switch (args [i]) {
|
||||
case "--quiet":
|
||||
quiet = true;
|
||||
break;
|
||||
default:
|
||||
WriteLine ("Unknown option '{0}'.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
inputFile = args [args.Length - 1];
|
||||
if (!File.Exists (inputFile)) {
|
||||
WriteLine ("Unknown option or file not found '{0}'.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void Header ()
|
||||
{
|
||||
Console.WriteLine (new AssemblyInfo ().ToString ());
|
||||
}
|
||||
|
||||
static void Help ()
|
||||
{
|
||||
Console.WriteLine ("Usage: cert-sync [--quiet] system-ca-bundle.crt");
|
||||
Console.WriteLine ("Where system-ca-bundle.crt is in PEM format");
|
||||
}
|
||||
|
||||
static void WriteLine (string str)
|
||||
{
|
||||
if (!quiet)
|
||||
Console.WriteLine (str);
|
||||
}
|
||||
|
||||
static void WriteLine (string format, params object[] args)
|
||||
{
|
||||
if (!quiet)
|
||||
Console.WriteLine (format, args);
|
||||
}
|
||||
|
||||
static int Main (string[] args)
|
||||
{
|
||||
try {
|
||||
if (!ParseOptions (args)) {
|
||||
Header ();
|
||||
Help ();
|
||||
return 1;
|
||||
}
|
||||
if (!quiet) {
|
||||
Header ();
|
||||
}
|
||||
return Process ();
|
||||
} catch (Exception e) {
|
||||
// ignore quiet on exception
|
||||
Console.WriteLine ("Error: {0}", e);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user