+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
using System;
using System.Xml;
using System.Xml.Schema;
int minHR = MakeHresult(SeverityError,FaciltyUrt,0);
int maxHR = MakeHresult(SeverityError,FaciltyUrt,0xffff);
-
+ PrintLicenseHeader(HSW);
PrintHeader(HSW);
+ PrintLicenseHeader(RSW);
PrintResourceHeader(RSW);
XmlTextReader rdr = new XmlTextReader(args[0]);
Environment.Exit(-1);
}
+ private static void PrintLicenseHeader(StreamWriter SW) {
+ SW.WriteLine("// Licensed to the .NET Foundation under one or more agreements.");
+ SW.WriteLine("// The .NET Foundation licenses this file to you under the MIT license.");
+ SW.WriteLine("// See the LICENSE file in the project root for more information.");
+ SW.WriteLine();
+ }
private static void PrintHeader(StreamWriter SW) {
REM See the LICENSE file in the project root for more information.
setlocal
-if "%_NTROOT%" == "" goto LUsage
+csc ..\..\..\inc\genheaders.cs
-set MANAGED_TOOLS_PATH=%MANAGED_TOOLS_ROOT%\%MANAGED_TOOLS_VERSION%
-set CORERROR_PATH=%_NTROOT%\ndp\clr\src\inc
-
-%MANAGED_TOOLS_PATH%\genheaders.exe %CORERROR_PATH%\corerror.xml ..\inc\corerror.h mscorurt.rc
-
-goto LExit
-
-:LUsage
-
-echo.
-echo makecorerror.bat
-echo.
-echo Builds corerror.h for PALRT
-echo.
-echo Should be run inside razzle environment, depends on %%_NTROOT%% environment variable.
-echo.
-
-:LExit
+genheaders.exe ..\..\..\inc\corerror.xml ..\inc\corerror.h mscorurt.rc
+del genheaders.exe