Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfbf60b6

Browse files
committed
- Fixed formatting.
1 parent0fc56f1 commitfbf60b6

File tree

1 file changed

+23
-11
lines changed

1 file changed

+23
-11
lines changed

‎README-original.md‎

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,18 @@ Note: Make sure you run the .NET 4.0 `msbuild.exe`, e.g. `C:\Windows\Microsoft.N
4343

4444
Optional: NGEN the Proto Compiler for faster future startup (optional)
4545

46-
`ngen install ..\Proto\net40\bin\fsc-proto.exe`
46+
```
47+
ngen install ..\Proto\net40\bin\fsc-proto.exe
48+
```
4749

4850

4951
##Steps - Building the F# Core Library
5052

5153
This uses the proto compiler to build the FSharp.Core library, for Mono/.NET 4.0.
5254

53-
`msbuild fsharp-library-build.proj /p:TargetFramework=net40`
55+
```
56+
msbuild fsharp-library-build.proj /p:TargetFramework=net40
57+
```
5458

5559
Note: Make sure you run the .NET 4.0`msbuild.exe`, e.g.`C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe`.
5660

@@ -59,7 +63,9 @@ Note: Make sure you run the .NET 4.0 `msbuild.exe`, e.g. `C:\Windows\Microsoft.N
5963

6064
This uses the proto compiler to build the`FSharp.Compiler.dll` and`fsc.exe` to run on for Mono/.NET 4.0.
6165

62-
`msbuild fsharp-compiler-build.proj /p:TargetFramework=net40`
66+
```
67+
msbuild fsharp-compiler-build.proj /p:TargetFramework=net40
68+
```
6369

6470
Note: Make sure you run the .NET 4.0`msbuild.exe`, e.g.`C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe`.
6571

@@ -104,7 +110,9 @@ Here **net20** gives a runtime for .NET 2.0-3.5, **sl3-wp** gives a runtime for
104110

105111
This uses the proto compiler to build the unit tests that check some parts of`FSharp.Core.dll` and`FSharp.Compiler.dll`. There is also another set of tests under`tests\fsharp`.
106112

107-
`msbuild fsharp-library-unittests-build.proj /p:TargetFramework=net40`
113+
```
114+
msbuild fsharp-library-unittests-build.proj /p:TargetFramework=net40
115+
```
108116

109117
*Note: You must have NUnit installed.*
110118

@@ -131,7 +139,9 @@ C:\projects\openfsharp\Compiler\3.0\head\tests\fsharp\core\queriesOverIEnumerabl
131139

132140
Some tests for LINQ queries require SQL Server be installed. A failing test will look like this:
133141

134-
`ERRORLEVEL=1: in C:\projects\openfsharp\Compiler\3.0\head\tests\fsharp\core\csfromfs\build.bat`
142+
```
143+
ERRORLEVEL=1: in C:\projects\openfsharp\Compiler\3.0\head\tests\fsharp\core\csfromfs\build.bat
144+
```
135145

136146
You can then go to the relevant directory and run`build.bat` and`run.bat`.
137147

@@ -150,7 +160,7 @@ However, this is not recommended except in the rare case you are adding extra fu
150160

151161
##Preparing for inclusion in Mono
152162

153-
Building for the**mono20** and**mono40** frameworks gives strong-named, delay-signed assemblies with the`msfinal.pub` key and standard version numbers such as 2.0.0.0,2.3.0.0,4.0.0.0 and 4.3.0.0. You complete the signing of these assemblies using[http://github.com/fsharp/fsharp/raw/master/mono.snk](http://github.com/fsharp/fsharp/raw/master/mono.snk). These assemblies will not run if you already have a version of them installed in your GAC (e.g. if you have Visual Studio 2012).
163+
Building for the**mono20** and**mono40** frameworks gives strong-named, delay-signed assemblies with the`msfinal.pub` key and standard version numbers such as**2.0.0.0**,**2.3.0.0**,**4.0.0.0** and**4.3.0.0**. You complete the signing of these assemblies using[http://github.com/fsharp/fsharp/raw/master/mono.snk](http://github.com/fsharp/fsharp/raw/master/mono.snk). These assemblies will not run if you already have a version of them installed in your GAC (e.g. if you have Visual Studio 2012).
154164

155165
```
156166
sn -R ..\Debug\mono40\bin\fsc.exe mono.snk
@@ -161,17 +171,17 @@ sn -R ..\Debug\mono40\bin\FSharp.Compiler.Server.Shared.dll mono.snk
161171
sn -R ..\Debug\mono40\bin\FSharp.Compiler.Interactive.Settings.dll mono.snk
162172
```
163173

164-
This is the way the assemblies are built in a source build of the canonical GitHub repository forfsharp and how the binaries are shipped in Mono binary distributions.
174+
This is the way the assemblies are built in a source build of the canonical GitHub repository forF# and how the binaries are shipped in Mono binary distributions.
165175

166176

167177
##Notes on the build
168178

169179
The prerequisites and build command line for compiling the source (on Windows) are shown later in this README. Here's the logic of the build:
170180

171181
* We first need an existing F# compiler, usually the one available from[http://fsharp.net](fsharp.net), although it could also be another. Let's assume this compiler has an`FSharp.Core.dll` with version X.
172-
* We use this compiler to compile the source in this distribution, to produce a "proto" compiler, in the Proto directory. When run, this compiler still relies on the`FSharp.Core.dll` with version X.
173-
* We use the proto compiler to compile the source for`FSharp.Core.dll` in this distribution, producing an`FSharp.Core.dll` with the version identified in`src\source-build-version`, usually 1.9.999.
174-
* We use the proto compiler to compile the source for`FSharp.Compiler.dll`,`fsc.exe`,`fsi.exe` and other binaries found in this distribution. When run, these binaries will rely on the`FSharp.Core.dll` with version 1.9.999. This is good, since it means the 1.9.999 binaries now form a consistent, bootstrapped compiler. If you like you should now be able to throw away the compiler with version X.
182+
* We use this compiler to compile the source in this distribution, to produce a "proto" compiler, in the`Proto` directory. When run, this compiler still relies on the`FSharp.Core.dll` with version X.
183+
* We use the proto compiler to compile the source for`FSharp.Core.dll` in this distribution, producing an`FSharp.Core.dll` with the version identified in`src\source-build-version`, usually**1.9.999**.
184+
* We use the proto compiler to compile the source for`FSharp.Compiler.dll`,`fsc.exe`,`fsi.exe` and other binaries found in this distribution. When run, these binaries will rely on the`FSharp.Core.dll` with version**1.9.999**. This is good, since it means the 1.9.999 binaries now form a consistent, bootstrapped compiler. If you like you should now be able to throw away the compiler with version X.
175185

176186
Some additional tools are required to build the compiler, notably`fslex.exe`,`fsyacc.exe`,`FSharp.PowerPack.Build.Tasks.dll`,`FsSrGen.exe`,`FSharp.SRGen.Build.Tasks.dll` and the other tools found in the`lkg` directory. These are "Last Known Good" binaries created from a version of the F# Power Pack on CodePlex. If you like you can throw away these binaries and use your own compiled versions of these. tools.
177187

@@ -222,7 +232,9 @@ del /q FSharp.Core.dll
222232

223233
##Some alternative Steps - Building an optimized (Release) compiler for .NET 4.0 profile
224234

225-
`msbuild fsharp-compiler-build.proj /p:TargetFramework=net40 /p:Configuration=Release`
235+
```
236+
msbuild fsharp-compiler-build.proj /p:TargetFramework=net40 /p:Configuration=Release
237+
```
226238

227239
```
228240
ngen install ..\Release\net40\bin\fsi.exe

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp