You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,17 +14,12 @@ The new DSL was designed to be succinct, typed, declarative, extensible and easy
14
14
15
15
See the [project home page](https://fake.build/) for tutorials and [API documentation](http://fake.build/apidocs/v5/index.html).
16
16
17
-
# Build the project
17
+
##Build the project
18
18
19
-
*Quick: Download and install the [Dotnet SDK](https://www.microsoft.com/net/learn/get-started) and run `dotnet build build.proj`
20
-
*Fake5: Install FAKE 5 (for example via `choco install fake -pre`) and run `fake build`
19
+
*Either: Download and install the [Dotnet SDK](https://www.microsoft.com/net/learn/get-started) and run `dotnet tool restore` followed by `dotnet fake build`
20
+
*Or: Install FAKE 5 (for example via `choco install fake -pre`) and run `fake build`
21
21
22
-
> Note: The build of the "legacy" parts (FAKE 4) will most likely fail
23
-
>
24
-
> - when you are on linux and do not have mono installed
25
-
> - when you are on windows and do not have Visual Studio installed
26
-
>
27
-
> Either build only the `netcore` parts via `fake build target FullDotNetCore` or install the requirements according to the [contributing page](http://fsharp.github.com/FAKE/contributing.html)
22
+
> Note: You can find more details on the [contributing page](http://fsharp.github.com/FAKE/contributing.html)
28
23
29
24
Make sure to have long path enabled: https://superuser.com/questions/1119883/windows-10-enable-ntfs-long-paths-policy-option-missing
30
25
Otherwise the test-suite will fail (However, the compilation should work)
Copy file name to clipboardExpand all lines: help/markdown/contributing.md
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ Thank you for your interest in contributing to FAKE! This guide explains everyth
4
4
5
5
__Before diving in__, please note:
6
6
7
-
* You are encouraged to **improve this document** by sending a pull request to the FAKE project on GitHub. If you learn something while playing with FAKE, please record your [findings here](https://github.com/fsharp/FAKE/blob/master/help/markdown/contributing.md)!
7
+
* You are encouraged to **improve this document** by sending a pull request to the FAKE project on GitHub. If you learn something while playing with FAKE, please record your [findings here](https://github.com/fsharp/FAKE/blob/release/next/help/markdown/contributing.md)!
8
8
9
9
* If you'd like to discuss a feature (a good idea!) or are looking for suggestions on how to to contribute:
10
10
***Check the [Issue list](https://github.com/fsharp/FAKE/issues)** on GitHub,
11
11
***Visit the [Gitter room](https://gitter.im/fsharp/FAKE)**
12
12
13
-
* Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the Project shall be under the terms and conditions of the **Apache 2.0 license**. See [`/License.txt`](https://github.com/fsharp/FAKE/tree/master/License.txt) for details.
13
+
* Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the Project shall be under the terms and conditions of the **Apache 2.0 license**. See [`/License.txt`](https://github.com/fsharp/FAKE/tree/release/next/License.txt) for details.
14
14
15
15
## Prerequisites
16
16
@@ -20,7 +20,7 @@ Before building and developing FAKE, you must:
20
20
21
21
**Linux and Mac** users should install the .NET Core SDK and Mono per this guide, "[Cross-Platform Development with F#](http://fsharp.org/guides/mac-linux-cross-platform/)".
22
22
23
-
**Windows** users can install **Visual Studio 2017**. The [Community Edition](https://www.visualstudio.com/de/vs/community/)
23
+
**Windows** users can install **Visual Studio**. The [Community Edition](https://www.visualstudio.com/de/vs/community/)
24
24
is freely available for open-source projects.
25
25
26
26
<divclass="alert alert-info">
@@ -39,10 +39,12 @@ For FAKE development, [Visual Studio Code](https://code.visualstudio.com/Downloa
39
39
40
40
### Install FAKE
41
41
42
-
You can quickly install FAKE using the dotnet SDK:
42
+
You can quickly install and use FAKE with the dotnet SDK (we use fake-cli as local tool):
43
43
<pre>
44
44
<codeclass="lang-bash">
45
-
dotnet tool install fake-cli -g
45
+
cd /projects/FAKE
46
+
dotnet tool restore
47
+
dotnet fake --version
46
48
</code>
47
49
</pre>
48
50
@@ -61,17 +63,17 @@ For alternative methods of installing FAKE, please see the [Getting Started guid
61
63
</code>
62
64
</pre>
63
65
64
-
4.**Checkout** the `master` branch.
66
+
4.**Checkout** the `release/next` branch.
65
67
<pre>
66
68
<codeclass="lang-bash">
67
-
git checkout master
69
+
git checkout release/next
68
70
</code>
69
71
</pre>
70
72
71
-
5. To verify that everything works, **build**`master` via:
73
+
5. To verify that everything works, **build**`release/next` via:
72
74
<pre>
73
75
<codeclass="lang-bash">
74
-
fake run build.fsx
76
+
dotnet fake build
75
77
</code>
76
78
</pre>
77
79
@@ -89,7 +91,7 @@ For alternative methods of installing FAKE, please see the [Getting Started guid
89
91
9. Re-run the build script to **confirm that all tests pass**.
90
92
<pre>
91
93
<codeclass="lang-bash">
92
-
fake run build.fsx
94
+
dotnet fake build
93
95
</code>
94
96
</pre>
95
97
@@ -99,7 +101,7 @@ For alternative methods of installing FAKE, please see the [Getting Started guid
99
101
<pre>
100
102
<codeclass="lang-bash">
101
103
git fetch upstream
102
-
git rebase upstream/master
104
+
git rebase upstream/release/next
103
105
git push origin myfeature -f
104
106
</code>
105
107
</pre>
@@ -108,7 +110,7 @@ For alternative methods of installing FAKE, please see the [Getting Started guid
108
110
109
111
## Contributing Documentation
110
112
111
-
The code for all documentation can be found in the [`help` directory on GitHub](https://github.com/fsharp/FAKE/tree/master/help). If you find a bug or add a new feature, *make sure you document it*!
113
+
The code for all documentation can be found in the [`help` directory on GitHub](https://github.com/fsharp/FAKE/tree/release/next/help). If you find a bug or add a new feature, *make sure you document it*!
112
114
113
115
### Building the Documentation
114
116
@@ -118,14 +120,14 @@ It turns Markdown files `*.md` with embedded code snippets and F# script `*.fsx`
118
120
To build the documentation from scratch, simply run:
119
121
<pre>
120
122
<codeclass="lang-bash">
121
-
fake build target GenerateDocs
123
+
dotnet fake build target GenerateDocs
122
124
</code>
123
125
</pre>
124
126
125
127
To save time, you may skip the prerequisite build steps and run the `GenerateDocs` target directly using the single target `-s` switch:
126
128
<pre>
127
129
<codeclass="lang-bash">
128
-
fake build -s target GenerateDocs
130
+
dotnet fake build -s target GenerateDocs
129
131
</code>
130
132
</pre>
131
133
(Note: this assumes binaries are already built and have not been modified.)
@@ -136,7 +138,7 @@ To save time, you may skip the prerequisite build steps and run the `GenerateDoc
136
138
Running the following target spins up a webserver on localhost and opens the newly built docs in a browser window:
137
139
<pre>
138
140
<codeclass="lang-bash">
139
-
fake build target HostDocs
141
+
dotnet fake build target HostDocs
140
142
</code>
141
143
</pre>
142
144
@@ -165,15 +167,15 @@ e.g: Using dotnet cli
165
167
166
168
## Style Guidlines
167
169
168
-
* When working on FAKE 5 core, [Visual Studio Code](https://code.visualstudio.com/) with [Ionide](http://ionide.io/) helps a lot!
170
+
* When working on FAKE 5, [Visual Studio Code](https://code.visualstudio.com/) with [Ionide](http://ionide.io/) helps a lot!
169
171
170
172
* Read the [F# component design guidelines](http://fsharp.org/specs/component-design-guidelines/).
171
173
172
174
* Read the [API Design Guidelines](#API-Design-Guidelines) below.
173
175
174
176
* Add documentation for your feature
175
177
176
-
* If you add new markdown documentation, make sure to link if from an existing site. Ideally, add it to the [menu](https://github.com/fsharp/FAKE/blob/master/help/templates/template.cshtml)
178
+
* If you add new markdown documentation, make sure to link if from an existing site. Ideally, add it to the [menu](https://github.com/fsharp/FAKE/blob/release/next/help/templates/template.cshtml)
177
179
178
180
* If you write API documentation but no extra markdown, please consider adding it to the menu as well.
179
181
@@ -207,25 +209,23 @@ e.g: Using dotnet cli
207
209
208
210
* Fake 4 still allows hotfixes. Please send the PR against the [hotfix_fake4 branch](https://github.com/fsharp/FAKE/tree/hotfix_fake4).
209
211
210
-
It would be helpful if a second PR against `master` is sent that merges the hotfix into `master` and adds the hotfix to the FAKE 5 code as well.
212
+
It would be helpful if a second PR against `release/next` is sent that merges the hotfix into `release/next` and adds the hotfix to the FAKE 5 code as well.
211
213
212
214
## Porting Modules to FAKE 5
213
215
214
216
As mentioned in the ["Fake 5 learn more"](fake-fake5-learn-more.html) section, we could use your help porting modules to FAKE 5. To save you from some pitfalls, this section provides a working approach to migrating modules.
215
217
216
-
Tooling in netcore is not optimal yet, so some things have to be done by hand. These steps will enable pretty good IDE support:
218
+
Try the following:
217
219
218
220
* Copy one of the existing netcore projects and edit the project file by hand (rename)
219
221
* Copy the old implementation files from `src/app/FakeLib` to `/src/app/Fake.<ModuleType>.<Name>` (update project file again if required)
220
-
* Reference the new files in FakeLib (again updating `FakeLib.fsproj` by hand to properly reference the stuff)
221
-
* Open `Fake.sln`and go from there. Because in F# you can only reference stuff defines in files ABOVE, this is ALMOST perfect
222
-
* Once stuff compiles in the (`Fake.sln`) solution the remaining changes to make the netcore project compile are usually straightforward (you basically only need to fix project references or add framework nuget packages if needed). Let us know if you struggle at this point (in the PR or a new issue).
222
+
*(Optionally, there is no need for new stuff to appear in FakeLib at this point) Reference the new files in FakeLib (again updating `FakeLib.fsproj` by hand to properly reference the stuff)
223
+
* Open `Fake.sln`, add the project and go from there.
224
+
* Once stuff compiles in the (`Fake.sln`) solution you are usually good to go. Let us know if you struggle at this point (in the PR or a new issue).
223
225
* Add the info about the new module to the `dotnetAssemblyInfos` variable in `build.fsx`. From this point on the build script will let you know if anything is missing. Again, if you have problems let us know.
224
226
* Mark the old module with the `Obsolete` attribute.
227
+
* Test everything with a full `dotnet fake build`
225
228
226
-
<divclass="alert alert-info">
227
-
<h5>INFO</h5> <code>src/Fake-netcore.sln</code> is currently not used (as IDEs don't support that yet). However it is used so speed up the build, <code>fake run build.fsx</code> will let you know what to do in the error message.
228
-
</div>
229
229
These steps will ensure:
230
230
231
231
* People using the NuGet package will get the warnings to update the new API
@@ -250,4 +250,4 @@ If you ever need a release/bugfix, make sure to mention that in your PR. We can
250
250
Those bits should be considered for "unblocking"-purposes or testing only.
251
251
</div>
252
252
253
-
The [release process](https://fakebuild.visualstudio.com/FSProjects/_releases2?definitionId=1&view=mine&_a=releases) is publicly available as well.
253
+
The [release process](https://fakebuild.visualstudio.com/FSProjects/_releases2?definitionId=1&view=mine&_a=releases) is publicly available as well.
0 commit comments