Skip to content

Commit

Permalink
Add target to download FCS files
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Dec 3, 2022
1 parent ec5e33b commit 47c6ac6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/docs/contributors/Getting Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,15 @@ This will update your fork with the latest from `fsprojects/fantomas` on your ma

## Initial build

After cloning the repository, you should restore the local dotnet tools and download the F# compiler source code:
After cloning the repository, you should restore the local dotnet tools and the solution:

```shell
dotnet fsi build.fsx -p Init
dotnet tool restore
dotnet restore
```

The restore of project `Fantomas.FCS` (via the solution restore) will download the F# compiler source code.

Afterwards, you can run the default build script.
This will build the solution, run all unit tests and do everything that the CI build does.

Expand Down
4 changes: 4 additions & 0 deletions src/Fantomas.FCS/Fantomas.FCS.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -314,4 +314,8 @@
<PackageReference Include="System.Runtime" Version="4.3.1" />
<PackageReference Include="FsLexYacc" Version="10.2.0" PrivateAssets="all" />
</ItemGroup>

<Target Name="AcquireCompilerFiles" Condition="!Exists('../../.deps/$(FCSCommitHash)')" BeforeTargets="CollectPackageReferences">
<Exec Command="dotnet fsi ../../build.fsx -p Init" />
</Target>
</Project>

0 comments on commit 47c6ac6

Please sign in to comment.