From 63e7ddd179386b31186185eadddbf5c8fb4880cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Thu, 7 Sep 2017 20:00:39 +0200 Subject: Document steps to add a new .NET profile --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- cgit v1.2.3