Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/reference-assemblies.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2017-09-07 21:00:39 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2017-11-09 05:56:45 +0300
commit63e7ddd179386b31186185eadddbf5c8fb4880cd (patch)
treeb40c0267b1b2563f78bd07b78b2668c072c44721
parente34076ffd012d83aa8f9f02a541ab3ede07939ea (diff)
Document steps to add a new .NET profile
-rw-r--r--README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/README.md b/README.md
index 870e30e..cd04eeb 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,26 @@
Mono binary reference assemblies repository.
Built using csc 2.1.0.
+
+Use the following steps to add a new .NET profile:
+
+```bash
+NETFXPROFILE=v4.7.1
+
+
+cd $NETFXPROFILE-ms
+for i in *.dll; do mono ../../api-snapshot/tools/genapi/GenAPI.exe -assembly:$i -out:../src/$NETFXPROFILE -typeforwardedTo -assemblyVersion -assemblyAttributes -headerFile:../../api-snapshot/profiles/license-header.txt -libPath:.; done
+
+cd ../src/$NETFXPROFILE
+for i in *.cs; do sed -i "" 's/AssemblyCompanyAttribute("Microsoft Corporation")/AssemblyCompanyAttribute("Mono development team")/g' $i; done
+for i in *.cs; do sed -i "" 's/AssemblyCopyrightAttribute("© Microsoft Corporation. All rights reserved.")/AssemblyCopyrightAttribute("(c) Various Mono authors")/g' $i; done
+for i in *.cs; do sed -i "" 's/AssemblyProductAttribute("Microsoft® .NET Framework")/AssemblyProductAttribute("Mono Common Language Infrastructure")/g' $i; done
+for i in *.cs; do sed -i "" '/.*AssemblySignatureKeyAttribute(.*]/d' $i; done
+for i in *.cs; do sed -i "" '/.*InternalsVisibleToAttribute(.*]/d' $i; done
+for i in *.cs; do sed -i "" '/.*DependencyAttribute(.*]/d' $i; done
+
+... Revert changes to Accessibility.cs, Microsoft.VisualC.cs and Microsoft.VisualBasic.cs (bug in GenApi) ...
+... Revert changes to System.Workflow.*.cs, System.Web.Mobile.cs and System.Deployment.cs (we only have stub assemblies) ...
+... Revert changes to System.Web.WebPages.*.cs, System.Web.Http.*.cs, System.Web.Razor.cs, System.Web.Mvc.cs, System.Net.Http.Formatting.cs and System.Json.Microsoft.cs (wrong AssemblyCompanyAttribute sed replacement) ...
+... Revert changes that remove #if / #endif ...
+``` \ No newline at end of file