Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
0534143
better warnings on mutable struct
Nov 17, 2017
620ffb1
no diagnostics on Dispose
dsyme Nov 18, 2017
4a6eb47
no warning on use of Free method
dsyme Nov 18, 2017
d2bcd82
add tests
Dec 1, 2017
7565295
integrate with master
Dec 1, 2017
b334583
Symbols API: add IsNameGenerated to FSharpField
auduchinok Jan 19, 2018
603b71d
Change error text.
isaacabraham Jan 20, 2018
051fc59
update loc
Jan 22, 2018
6cb64f2
Add support for easy DesignTime Assembly Packing (#4239)
KevinRansom Jan 23, 2018
488e71c
It looks like we can get rid of some Some (#4244)
forki Jan 24, 2018
4f39f97
Merge pull request #4229 from isaacabraham/2307-protected-member-erro…
KevinRansom Jan 24, 2018
203d70e
show type of ignored expression (#4197)
dsyme Jan 24, 2018
09fc352
[WIP] Fix inlline rename at end of file (#3766)
vasily-kirichenko Jan 24, 2018
d70a450
Get declaration list symbols (#4204)
nosami Jan 24, 2018
e2af0fa
Fix CI. fixes #4256 (#4257)
nosami Jan 24, 2018
5728b68
Improve compiler designtime probing (#4250)
KevinRansom Jan 25, 2018
e2168fa
Enable preferreduilang for fsi (#4253)
KevinRansom Jan 29, 2018
bca446d
Fix the Mono and OSX builds (#4273)
dsyme Jan 29, 2018
65506e9
use dev15.5 for CI builds
brettfo Jan 29, 2018
5d88640
Merge pull request #4283 from brettfo/jenkins-image
brettfo Jan 29, 2018
8bfe56e
enable Microsoft.DiaSymReader* packages to be overridden during build
brettfo Feb 1, 2018
d771ea5
LOC CHECKIN | visualfsharp master | 20180202
v-zbsail Feb 2, 2018
ecb833c
Update README.md
cartermp Feb 2, 2018
b9d4942
Merge pull request #4299 from brettfo/dependency-uptake
brettfo Feb 2, 2018
58c4e60
Merge pull request #4304 from v-zbsail/loc_20180129_master
brettfo Feb 2, 2018
02cb8cd
restore tools before dependency uptake work
brettfo Feb 2, 2018
71fcc34
Merge pull request #4306 from brettfo/build-tools-order
brettfo Feb 2, 2018
19dd0df
propagate Microsoft.DiaSymReader* version overrides to NuGet packages
brettfo Feb 5, 2018
8f4f2ae
Merge pull request #4314 from brettfo/dependency-uptake-nuspec
brettfo Feb 5, 2018
ac2d8d5
miscfiles (#4328)
KevinRansom Feb 9, 2018
5c491b2
Improve warning for ignored values in sequence expressions - fixes #4…
forki Feb 9, 2018
bc7ce19
Remove minimumElement and maximumElement from Set module (#4309)
PatrickMcDonald Feb 11, 2018
78ea65d
only publish Microsoft.FSharp.Compiler.* package to the blob feed
brettfo Feb 13, 2018
a1c55cf
Merge pull request #4349 from brettfo/blob-publish
brettfo Feb 13, 2018
7377b02
Revert #4173 (i.e. reapply #1650 and #3366)" (#4347)
dsyme Feb 13, 2018
32307bc
Update README.md (#4351)
dsyme Feb 13, 2018
a12c05c
Removed NoSourceCode at GetDeclarationLocation (#4277)
amieres Feb 14, 2018
be5b58c
Merge pull request #4225 from auduchinok/record-fields-name-generated
KevinRansom Feb 17, 2018
2180de4
Optimize in FCS (#3784)
forki Feb 17, 2018
3d0ae5e
[WIP] simplify mono build (#4358)
dsyme Feb 17, 2018
e1a6afa
Update DEVGUIDE.md
dsyme Feb 17, 2018
f53f536
use the official build number (if provided) to version the compiler p…
brettfo Feb 17, 2018
828fb11
Merge pull request #4361 from brettfo/nuget-version
brettfo Feb 20, 2018
02dbf9e
Reduce FCS memory footprint (#4272)
AviAvni Feb 21, 2018
3db878f
Enable --debug:full on coreclr (#4366)
KevinRansom Feb 21, 2018
e1e4cce
Remove FSharp.Editor dependency on FSharp.Language Service redux (#4132)
cartermp Feb 22, 2018
689da32
LOC CHECKIN | visualfsharp master | 20180222
v-zbsail Feb 22, 2018
2b44f64
Add support for UnmanagedType.LPUTF8Str (#4360)
BillHally Feb 22, 2018
2b52d90
Merge pull request #4370 from v-zbsail/loc_20180220_master
brettfo Feb 22, 2018
570e5aa
Update netci.groovy (#4371)
dsyme Feb 22, 2018
814aa75
Update netci.groovy (#4373)
dsyme Feb 22, 2018
ce36262
Update netci.groovy
dsyme Feb 22, 2018
0bdad51
Use mutli-line string (#4374)
mmitche Feb 22, 2018
e0203f0
rejig netci.groovy (#4377)
dsyme Feb 22, 2018
1caefc1
Update netci.groovy
dsyme Feb 22, 2018
b26d549
Update netci.groovy
dsyme Feb 22, 2018
929b8c3
Updates to CI (#4381)
dsyme Feb 22, 2018
19ce02d
Allow sudo on CI Ubuntu to install latest Mono (#4382)
dsyme Feb 22, 2018
7fe3465
fix casing of FCS outputs (#4383)
dsyme Feb 22, 2018
4a7575b
No longer sudo as no outer-latest jobs are being executed in CI (#4384)
dsyme Feb 23, 2018
d688e0f
Update netci.groovy
dsyme Feb 23, 2018
509a8a2
simplify defines and move FCS to .NET Standard 2.0 (#4368)
dsyme Feb 23, 2018
161b3c2
Update netci.groovy
dsyme Feb 23, 2018
2d0452a
move NuGet.Config to the root
brettfo Jan 24, 2018
7b1d303
remove '-proto' file name suffixes
brettfo Jan 25, 2018
a37642b
update xlf plugin
brettfo Feb 7, 2018
b280da9
convert FSharp.Editor to the dotnet SDK
brettfo Feb 5, 2018
204fa02
convert FSharp.LanguageService to the dotnet SDK
brettfo Feb 7, 2018
f1884fc
convert FSharp.ProjectSystem.FSharp to the dotnet SDK
brettfo Feb 8, 2018
bff5665
convert FSharp.VS.FSI to the dotnet SDK
brettfo Feb 8, 2018
1b6a9cf
convert FSharp.LanguageService.Base to the dotnet SDK
brettfo Feb 8, 2018
daacde6
convert FSharp.ProjectSystem.Base to the dotnet SDK
brettfo Feb 9, 2018
9586ecd
convert FSharp.UIResources to the dotnet SDK
brettfo Feb 10, 2018
b921e22
set OutputPath after TargetFramework
brettfo Feb 22, 2018
d244507
generate NuGet package version from #4350
brettfo Feb 22, 2018
b8a36be
fix package versions
brettfo Feb 22, 2018
ecf4ba8
fix design-time builds in VSSDK projects that don't produce a VSIX
brettfo Feb 22, 2018
a44472c
Merge pull request #4317 from brettfo/sdk-proj
brettfo Feb 23, 2018
ab0da53
update paket bootstrapper (#4388)
dsyme Feb 23, 2018
9404e9c
update CI to allow sudo on Ubuntu (#4392)
dsyme Feb 24, 2018
9687654
Test CI after https://github.com/Microsoft/visualfsharp/pull/4392
dsyme Feb 24, 2018
7131143
get latest mono in CI (#4394)
dsyme Feb 24, 2018
2c3cfbf
fix tuple warnings (#4389)
dsyme Feb 24, 2018
44ef814
Fix 4240 - MakeTuple on struct tuples (#4387)
dsyme Feb 25, 2018
e7ce9cd
Re-enable FCS build on Jenkins Ubuntu (#4391)
dsyme Feb 27, 2018
1605352
Fix build and test issues (#4396)
KevinRansom Feb 27, 2018
fb54266
convert FSharp.PropertyPages to use PackageReference
brettfo Feb 28, 2018
8b2d732
Update feed tasks version
mmitche Feb 28, 2018
fa80142
Remove unsupported `-c` switch from `dotnet restore`
brettfo Feb 28, 2018
551613c
Merge pull request #4409 from Microsoft/remove-proto-config
brettfo Feb 28, 2018
a50f4c5
Debugger View for lists (#4399)
KevinRansom Feb 28, 2018
e0ce4a4
consolidate Directory.Build.props/.targets
brettfo Feb 28, 2018
3f42446
Merge pull request #4406 from brettfo/propertypages-packagereference
brettfo Feb 28, 2018
b6cce2c
convert `vsintegration/tests` to the dotnet SDK
brettfo Feb 28, 2018
dfd6b2e
consolidate Roslyn versions to `RoslynPackageVersion.txt`
brettfo Feb 28, 2018
fa9fa49
Add DesignTimeBuild=true to legacy build from ProjectSystem (#4407)
KevinRansom Mar 1, 2018
f697a7d
Reduce memory footprint for Val type (#4375)
AviAvni Mar 1, 2018
d812517
Merge pull request #4410 from brettfo/salsa-sdk
brettfo Mar 1, 2018
ee2927d
convert item template projects to the dotnet SDK
brettfo Mar 1, 2018
668825a
convert project template projects to the dotnet SDK
brettfo Mar 1, 2018
2a7188c
Merge pull request #4411 from brettfo/template-sdk
brettfo Mar 1, 2018
cb2990e
Update feed tasks version
mmitche Mar 1, 2018
59fadd0
convert LanguageServiceProfiling to the dotnet SDK
brettfo Mar 1, 2018
c0ac091
Merge pull request #4408 from mmitche/update-tasks-and-such
brettfo Mar 1, 2018
226ca53
convert VisualFSharpTemplates to the dotnet SDK
brettfo Mar 1, 2018
be22484
convert VisualFSharpOpenSource to the dotnet SDK
brettfo Mar 1, 2018
4314d69
convert VisualFSharpFull to the dotnet SDK
brettfo Mar 1, 2018
2296c2b
cleanup Directory.Build.props/.targets and remove packages.config
brettfo Mar 1, 2018
f214dcc
Merge pull request #4417 from brettfo/vsix-sdk
brettfo Mar 2, 2018
bfdc9d0
Merge remote-tracking branch 'upstream/dev15.6' into merges/dev15.6-t…
brettfo Mar 2, 2018
a98b806
upgrade System.ValueTuple to 4.4.0 (asm ver 4.0.2.0)
brettfo Mar 5, 2018
0dbb19b
fix usage of <DeployExtension>
brettfo Mar 5, 2018
0adb823
Merge pull request #4425 from Microsoft/merges/dev15.6-to-master
brettfo Mar 6, 2018
4462b3a
consolidate assembly attribute writing
brettfo Mar 6, 2018
a044057
don't try to invoke fsi.exe if it wasn't built
brettfo Mar 6, 2018
a15c1f4
ensure all resources assemblies get shipped
brettfo Mar 6, 2018
9e7a610
Merge pull request #4450 from brettfo/assembly-attributes
brettfo Mar 6, 2018
f21648e
Merge pull request #4451 from brettfo/assembly-version-check
brettfo Mar 6, 2018
ba9b757
Merge pull request #4452 from brettfo/editor-resources
brettfo Mar 6, 2018
3188acf
restore SDK projects after proto has been built
brettfo Mar 6, 2018
beadbdb
Merge pull request #4453 from brettfo/restore-order
brettfo Mar 7, 2018
970c0fe
fixes typos (#4459)
forki Mar 7, 2018
29a3bdd
Faster check if IsExtensionMember (#4458)
forki Mar 7, 2018
3d17049
Add instructions to install fsharp to custom user defined path; fix a…
boloutaredoubeni Mar 7, 2018
214475e
small cleanup in TProvidedNamespaceExtensionPoint (#4441)
forki Mar 7, 2018
b7c2099
Reduce intermediate collections when checking symboluse (#4442)
forki Mar 7, 2018
f1e781c
shortcut singleton list in append (#4445)
forki Mar 7, 2018
51dac00
Couple of cleanups in ErrorLogger (#4433)
forki Mar 7, 2018
2e43924
ensure build outputs always go to `$(Configuration)\$(TargetDotnetPro…
brettfo Mar 7, 2018
be1877c
use VS version as base for insertion packages
brettfo Mar 7, 2018
2c9030d
Merge pull request #4454 from brettfo/outputpath
brettfo Mar 7, 2018
f1a9088
remove the `Proto` configuration from VisualFSharp.sln
brettfo Mar 7, 2018
7cc4cfa
Merge pull request #4464 from brettfo/vs-f5
brettfo Mar 7, 2018
3fc5e6d
Merge pull request #4463 from brettfo/product-version
brettfo Mar 7, 2018
f5e05e8
add the commit hash to the description of shipping NuGet packages
brettfo Mar 8, 2018
25ee345
add the commit hash to the VS package
brettfo Mar 9, 2018
da5d0f6
One lookup in nenv.eFieldLabels should be enough (#4469)
forki Mar 9, 2018
792dbe5
Shortcut NameResolution searches (#4444)
forki Mar 9, 2018
ed8393c
No need to decompile coreDisplayName all the time (#4443)
forki Mar 9, 2018
e4fb0fc
small cleanups in MethodCalls.fs (#4435)
forki Mar 9, 2018
bbf07fb
List.isEmpty instead of iterating through the list to get the count (…
forki Mar 9, 2018
1a3f1e8
try to minimize intermediate NameRes environments (#4440)
forki Mar 9, 2018
aee2fa8
Merge pull request #4474 from brettfo/package-commit-hash
brettfo Mar 9, 2018
47e74f5
Toggles for outlining and structured guidelines (#4227)
cartermp Mar 9, 2018
d49f3dd
fix cancellation for PostAndAsyncReply (#4477)
dsyme Mar 9, 2018
f5992a7
consolidate Newtonsoft.Json version to match what's shipped in VS
brettfo Mar 8, 2018
33159e8
Merge pull request #4479 from Microsoft/newtonsoft-json-version
brettfo Mar 9, 2018
3fb44a4
Remove dependency on FSharp.LanguageService from FSharp.ProjectSystem…
cartermp Mar 9, 2018
d7274c6
Clean up illib (#4428)
forki Mar 10, 2018
81aef70
add regression test
AviAvni Mar 11, 2018
9637b37
fix test
AviAvni Mar 11, 2018
c2cb706
add il compare
AviAvni Mar 11, 2018
9ab5a63
Reflection tests
KevinRansom Mar 12, 2018
f9c4666
testing
KevinRansom Mar 12, 2018
123785c
twiddle
KevinRansom Mar 12, 2018
7953479
il compare
AviAvni Mar 12, 2018
845e4c0
Merge branch 'literal-value-bug' of https://github.com/AviAvni/visual…
AviAvni Mar 12, 2018
4952f84
Move basex1 and basey1 down (#4491)
forki Mar 12, 2018
da13079
Improve perf of unused opens analysis
dsyme Mar 12, 2018
2521f81
Equality is 0 (#4493)
forki Mar 12, 2018
09bb049
improve tests, use the thing a bit
dsyme Mar 12, 2018
017f06d
consolidate VS package version generation
brettfo Mar 12, 2018
ba9213b
Merge pull request #4498 from brettfo/product-version
brettfo Mar 12, 2018
ac42a1e
Update DEVGUIDE.md
dsyme Mar 12, 2018
73320bb
honor the environment variable $NUGET_PACKAGES for package restore
brettfo Mar 12, 2018
414ab19
don't try to include VSSDK targets if they haven't been restored yet
brettfo Mar 12, 2018
ac9f2af
Merge pull request #4502 from brettfo/nuget-package-root
brettfo Mar 13, 2018
1bc3938
move test to fsharpqa
AviAvni Mar 13, 2018
44af17a
fix env
AviAvni Mar 13, 2018
a4927e1
Update DEVGUIDE.md (#4501)
jwosty Mar 13, 2018
957234c
Update DEVGUIDE.md
dsyme Mar 13, 2018
efc247b
normalize VSIX package versions with VS insertion item package versions
brettfo Mar 13, 2018
211286f
Merge pull request #4509 from brettfo/vsix-package-version
brettfo Mar 13, 2018
230bd03
remove VisualFSharpOpenSource package
brettfo Mar 13, 2018
c0de51d
Fix Literal fields
KevinRansom Mar 11, 2018
406c9d6
refactor
KevinRansom Mar 13, 2018
9458819
Merge pull request #4510 from brettfo/vsix-open-source
brettfo Mar 13, 2018
ccd130a
fix test
Mar 14, 2018
4b131f8
Use WithFieldMarshal
forki Mar 14, 2018
cf5afdc
Merge pull request #26 from forki/literal-value-bug
AviAvni Mar 14, 2018
2d2104b
Suggestion for Debugging the code-base (#4500)
matthid Mar 14, 2018
f448785
filter more symbols
dsyme Mar 14, 2018
1d2c78e
Merge pull request #4486 from AviAvni/literal-value-bug
KevinRansom Mar 14, 2018
22a5dcb
Merge branch 'master' of http://github.com/Microsoft/visualfsharp int…
dsyme Mar 14, 2018
6453d1b
Restructure NameResolution (#4471)
forki Mar 14, 2018
9639b2e
Remove reference to FSharp.LanguageService.Base from FSharp.ProjectSy…
cartermp Mar 14, 2018
6d50665
Enable Net Sdk to write project properties (#4430)
KevinRansom Mar 14, 2018
ed152d7
Reduce memory footprint for Entity type (#4429)
AviAvni Mar 14, 2018
ff61ee5
product Windows-style PDBs from SDK projects (#4521)
brettfo Mar 14, 2018
221224e
always emit the local scope's start offset
brettfo Mar 15, 2018
db7758f
build portable PDBs from SDK projects and convert to Windows PDBs aft…
brettfo Mar 14, 2018
77a9e0a
LOC CHECKIN | visualfsharp master | 20180315 (#4535)
v-zbsail Mar 15, 2018
351a481
Only set oulining if there is an outlining manager (#4520)
cartermp Mar 15, 2018
7453587
Merge pull request #4536 from brettfo/windows-pdb
brettfo Mar 15, 2018
8f8cbd6
Code Lens and Line Lens (#3608)
realvictorprm Mar 15, 2018
e212e66
remove old file (#4539)
dsyme Mar 15, 2018
02474f2
fix project file (#4540)
dsyme Mar 15, 2018
4dce3d1
remove comment (#4538)
KevinRansom Mar 15, 2018
4c2a023
fix building in VS with PDB conversions
brettfo Mar 15, 2018
c87da60
Use C# code instead of manually modified DLL. (#4514)
0x53A Mar 15, 2018
c769fec
Revert code lens .... it's being stabilized in the branch 15.8 (#4547)
KevinRansom Mar 15, 2018
d7653dd
Merge pull request #4548 from brettfo/build-in-vs
brettfo Mar 15, 2018
faaf2f3
cleanup some build warnings (#4549)
brettfo Mar 16, 2018
80c48d3
add new nightly package publishing feed and update an older one (#4552)
brettfo Mar 16, 2018
95348d0
update perf scripts to include COMPUTERNAME (#4561)
dsyme Mar 16, 2018
179f3c4
Merge pull request #4497 from dsyme/unused1
KevinRansom Mar 17, 2018
178fc31
forward warnings when searching for a method overload (#4481)
matthid Mar 17, 2018
4df9975
Fixes to help make VisualFSharp.sln more usable (#4555)
dsyme Mar 19, 2018
b084753
integrate master
dsyme Mar 19, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 2 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@
*.rtf diff=astextplain
*.RTF diff=astextplain

autogen.sh text eol=lf
launcher.in text eol=lf
config.make.in text eol=lf
mono/launcher text eol=lf
mono/config.make text eol=lf
targets.make text eol=lf
configure.ac text eol=lf
Makefile.in text eol=lf

*.bsl linguist-vendored=true
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ Proto
sign_temp
.libs
configure
launcher
autom4te.cache
config.log
mono/config.make
config.status
*~
*.suo
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,4 @@ Includes commits up to `3385e58aabc91368c8e1f551650ba48705aaa285`
[4.0.0]: http://fsharp.org
[3.1.2]: http://blogs.msdn.com/b/fsharpteam/archive/2014/08/20/announcing-the-release-of-visual-f-tools-3-1-2.aspx
[3.1.1]: http://blogs.msdn.com/b/fsharpteam/archive/2014/01/22/announcing-visual-f-3-1-1-and-support-for-desktop-express.aspx

116 changes: 74 additions & 42 deletions DEVGUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@

Follow the instructions below to build and develop the F# Compiler, Core Library and tools on Windows, macOS and Linux.

* [Developing the F# Compiler (Windows)](#developing-the-f-compiler-windows)
* [Developing the F# Compiler (Linux)](#developing-the-f-compiler-linux)
* [Developing the F# Compiler (macOS)](#developing-the-f-compiler-macos)
* [Developing the Visual F# IDE Tools (Windows Only)](#developing-the-visual-f-ide-tools-windows-only)
* [Notes and Resources](#notes)
- [Developing the F# Compiler (Windows)](#developing-the-f-compiler-windows)
- [Developing the F# Compiler (Linux)](#developing-the-f-compiler-linux)
- [Developing the F# Compiler (macOS)](#developing-the-f-compiler-macos)
- [Developing the Visual F# IDE Tools (Windows Only)](#developing-the-visual-f-ide-tools-windows-only)
- [Notes and Resources](#notes)

### Developing the F# Compiler (Windows)
### Developing the F# Compiler (Windows)

Install

- [.NET 4.5.1](http://www.microsoft.com/en-us/download/details.aspx?id=40779)
- [MSBuild 12.0](http://www.microsoft.com/en-us/download/details.aspx?id=40760) or Visual Studio 2013 (or later)
- [.NET 4.6](https://www.microsoft.com/en-gb/download/details.aspx?id=48130)

**NOTE on Windows:**
1. It is recommended to run the build.cmd and the qualifiers below on a command prompt with path set to have the location of MSBuild. If we have Visual Studio, we can also run using `Developer Command Prompt for Visual Studio 20xx` (depends on Visual Studio version). This developer command prompt is easier to use than normal command prompt, because it already has the correct path of Visual Studio and .NET's tooling set for us to use (including MSBuild).
2. The running command prompt must be run under Administrator right (`Run as Administrator`).

1. It is recommended to run `build.cmd` in a command prompt with path set to have the location of MSBuild. If you have Visual Studio, we can run using `Developer Command Prompt for Visual Studio 20xx` (depends on Visual Studio version). This developer command prompt is easier to use than normal command prompt, because it already has the correct path of Visual Studio and .NET's tooling set for us to use (including MSBuild).

2. The command prompt must have Administrator rights (`Run as Administrator`).

Before running the build scripts, ensure that you have cleaned up the visualfsharp repo by running this git command:

Expand Down Expand Up @@ -60,41 +61,65 @@ After you build the first time you can open and use this solution:

or just build it directly:

msbuild FSharp.sln
msbuild FSharp.sln

Building ``FSharp.sln`` builds nearly everything. However building portable profiles of
FSharp.Core.dll is not included. If you are just developing the core compiler and library
then building the solution will be enough.
If you are just developing the core compiler and library then building ``FSharp.sln`` will be enough.

### Developing the F# Compiler (Linux)
### Developing the F# Compiler (Linux)

For Linux/Mono, follow [these instructions](http://www.mono-project.com/docs/getting-started/install/linux/). Also you may need:

sudo apt-get install mono-complete autoconf libtool pkg-config make git automake
sudo apt-get install mono-complete make git

Then:

./autoconf.sh --prefix /usr

make
make install

Full testing is not yet enabled on Linux, nor is a .NET Core build of the compiler.
Then to replace your machine-wide installation:

You can alternatively use
sudo make install

./build.sh
Full testing is not yet enabled on Linux.

### Developing the F# Compiler (macOS)
### Developing the F# Compiler (macOS)

Install Xamarin Studio, then
Install XCode command line tools (or homebrew equivalents) and Mono or Visual Studio for Mac.

Then:

./autogen.sh --prefix=/Library/Frameworks/Mono.framework/Versions/Current/
make

Then to replace your machine-wide installation:

sudo make install

Full testing is not yet enabled on macOS.

### [Optional] Specifying the install path (Linux or macOS)

You can specify a custom installation path using the DESTDIR shell variable

DESTDIR=/my/path/to/fsharp make install

### Developing the F# Compiler (Linux or macOS - .NET Core)

Install [the latest .NET SDK](https://www.microsoft.com/net/download/). Then use

src/buildfromsource.sh

Outputs are placed in

BuildFromSource/Debug/...
BuildFromSource/Release/...

This uses an installed .NET SDK 2.0 to build the various duplicated project

Testing the .NET Core version of the F# compiler on macOS and Linux is TBD.

### Developing the Visual F# IDE Tools (Windows Only)

To build and test Visual F# IDE Tools, install these requirements:

- [Visual Studio 2017](https://www.visualstudio.com/downloads/)
- Under the "Windows" workloads, select ".NET desktop development"
- Select "F# desktop language support" under the optional components
Expand All @@ -108,16 +133,16 @@ Steps to build:

Use ``VisualFSharp.sln`` if you're building the Visual F# IDE Tools.

Note on Debug vs Release: ``Release`` Configuration has a degraded debugging experience, so if you want to test a change locally, it is recommended to do it in the ``Debug`` configuration. For more information see https://github.com/Microsoft/visualfsharp/issues/2771 and https://github.com/Microsoft/visualfsharp/pull/2773.
Note on Debug vs Release: ``Release`` Configuration has a degraded debugging experience, so if you want to test a change locally, it is recommended to do it in the ``Debug`` configuration. For more information see issues [#2771](https://github.com/Microsoft/visualfsharp/issues/2771) and [#2773](https://github.com/Microsoft/visualfsharp/pull/2773).

Note: if you face this error [#2351](https://github.com/Microsoft/visualfsharp/issues/2351):
Note ([#2351](https://github.com/Microsoft/visualfsharp/issues/2351)): if you face this error:

> error VSSDK1077: Unable to locate the extensions directory. "ExternalSettingsManager::GetScopePaths failed to initialize PkgDefManager for C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe".
> error VSSDK1077: Unable to locate the extensions directory. "ExternalSettingsManager::GetScopePaths failed to initialize PkgDefManager for C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe".

Or hard crash on launch ("Unknown Error"), delete these folders:

* `%localappdata%\Microsoft\VisualStudio\15.0_(some number here)RoslynDev`
* `%localappdata%\Microsoft\VisualStudio\15.0_(some number here)`
- `%localappdata%\Microsoft\VisualStudio\15.0_(some number here)RoslynDev`
- `%localappdata%\Microsoft\VisualStudio\15.0_(some number here)`

#### [Optional] Install the Visual F# IDE Tools (Windows Only)

Expand All @@ -131,18 +156,18 @@ components installed in that VS installation. You can revert this step by disab
For **Debug**, uninstall then reinstall:

VSIXInstaller.exe /u:"VisualFSharp"
VSIXInstaller.exe debug\net40\bin\VisualFSharpOpenSource.vsix
VSIXInstaller.exe debug\net40\bin\VisualFSharpFull.vsix

For **Release**, uninstall then reinstall:

VSIXInstaller.exe /u:"VisualFSharp"
VSIXInstaller.exe release\net40\bin\VisualFSharpOpenSource.vsix
VSIXInstaller.exe release\net40\bin\VisualFSharpFull.vsix

Restart Visual Studio, it should now be running your freshly-built Visual F# IDE Tools with updated F# Interactive.

#### [Optional] F5 testing of local changes

To test your changes locally _without_ overwriting your default installed Visual F# tools, set the `VisualFSharp\Vsix\VisualFSharpOpenSource`
To test your changes locally _without_ overwriting your default installed Visual F# tools, set the `VisualFSharp\Vsix\VisualFSharpFull`
project as the startup project. When you hit F5 a new instance of Visual Studio will be started in the `RoslynDev` hive with your
changes, but the root (default) hive will remain untouched. You can also start this hive automatically using

Expand Down Expand Up @@ -175,13 +200,7 @@ For **Release**:
#### Windows: Links to Additional frameworks

- [Git for windows](http://msysgit.github.io/)
- [.NET 3.5](http://www.microsoft.com/en-us/download/details.aspx?id=21)
- [.NET 4.5](http://www.microsoft.com/en-us/download/details.aspx?id=30653)
- [.NET 4.5.1](http://www.microsoft.com/en-us/download/details.aspx?id=40779)
- [.NET 4.6](http://www.microsoft.com/en-us/download/details.aspx?id=48137)
- [MSBuild 12.0](http://www.microsoft.com/en-us/download/details.aspx?id=40760)
- [Windows 7 SDK](http://www.microsoft.com/en-us/download/details.aspx?id=8279)
- [Windows 8 SDK](http://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx)
- [Windows 8.1 SDK](http://msdn.microsoft.com/en-us/library/windows/desktop/bg162891.aspx)
- [Windows 10 SDK](https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk)

Expand All @@ -196,16 +215,29 @@ For **Release**:
- We use the proto compiler to compile the source for `FSharp.Core.dll` in this distribution.
- We use the proto compiler to compile the source for `FSharp.Compiler.dll`, `fsc.exe`, `fsi.exe`, and other binaries found in this distribution.

#### Updating FSComp.fs

If you change error messages you may need to update FSComp.fs in `src\buildfromsource\FSharp.Compiler.Private`.

To do this, build the non-buildfromsource version of FSharp.Compiler.Private (src\fsharp\FSharp.Compiler.Private) then check its obj\ directory for `FSComp.fs` and manually copy that into the buildfromsource directory.


#### Configuring proxy server

If you are behind a proxy server, NuGet client tool must be configured to use it:

.nuget\nuget.exe config -set http_proxy=proxy.domain.com:8080 -ConfigFile .nuget\NuGet.Config
.nuget\nuget.exe config -set http_proxy.user=user_name -ConfigFile .nuget\NuGet.Config
.nuget\nuget.exe config -set http_proxy.password=user_password -ConfigFile .nuget\NuGet.Config
.nuget\nuget.exe config -set http_proxy=proxy.domain.com:8080 -ConfigFile NuGet.Config
.nuget\nuget.exe config -set http_proxy.user=user_name -ConfigFile NuGet.Config
.nuget\nuget.exe config -set http_proxy.password=user_password -ConfigFile NuGet.Config

Where you should set proper proxy address, user name and password.

#### When modifying, adding, or removing keywords or compiler messages

If your changes involve modifying the list of language keywords in any way, (e.g. when implementing a new keyword), the XLF localization files need to be synced with the corresponding resx files. This can be done automatically by running `msbuild FSharp.Compiler.Private.fsproj /t:UpdateXlf` (located in [src\fsharp\FSharp.Compiler.Private](https://github.com/Microsoft/visualfsharp/tree/master/src/fsharp/FSharp.Compiler.Private)). This only works on Windows/.NETStandard framework, so changing this from any other platform requires editing and syncing all of the XLF files manually.

After this, you must copy any differing `resx` files from the output directory into the corresponding subdirectory in [src\buildfromsource](https://github.com/Microsoft/visualfsharp/tree/master/src/fsharp/FSharp.Compiler.Private). This step will soon be eliminated (see issue [#3905](https://github.com/Microsoft/visualfsharp/issues/3905)).

#### Resources

The primary technical guide to the core compiler code is [The F# Compiler Technical Guide](http://fsharp.github.io/2015/09/29/fsharp-compiler-guide.html). Please read and contribute to that guide.
60 changes: 60 additions & 0 deletions FSharp.Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<Project>

<Import Project="build\targets\PackageVersions.props" />
<Import Project="build\targets\CommonPackages.targets" />

<!-- directory locations -->
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
<FSharpSourcesRoot>$(RepoRoot)src</FSharpSourcesRoot>
<ToolsRoot>$(RepoRoot)Tools</ToolsRoot>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<ProtoOutputPath>$(RepoRoot)Proto\net40\bin</ProtoOutputPath>
</PropertyGroup>

<!-- nuget -->
<PropertyGroup>
<!-- default NuGet package restore location -->
<NuGetPackageRoot Condition="'$(NuGetPackageRoot)' == ''">$(NUGET_PACKAGES)</NuGetPackageRoot>
<NuGetPackageRoot Condition="'$(NuGetPackageRoot)' == ''">$(MSBuildThisFileDirectory)packages</NuGetPackageRoot>
<!-- ensure there is a trailing slash -->
<NuGetPackageRoot Condition="!HasTrailingSlash('$(NuGetPackageRoot)') AND '$(OS)' == 'Windows_NT'">$(NuGetPackageRoot)\</NuGetPackageRoot>
<NuGetPackageRoot Condition="!HasTrailingSlash('$(NuGetPackageRoot)') AND '$(OS)' != 'Windows_NT'">$(NuGetPackageRoot)/</NuGetPackageRoot>
</PropertyGroup>

<!-- signing -->
<PropertyGroup>
<SkipSigning>false</SkipSigning>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(FSharpSourcesRoot)\fsharp\msft.pubkey</AssemblyOriginatorKeyFile>
<StrongNames>true</StrongNames>
<DelaySign>true</DelaySign>
</PropertyGroup>

<!-- mono -->
<PropertyGroup>
<MonoPackaging Condition="$(TargetFramework.StartsWith('net4')) and '$(OS)' == 'Unix'">true</MonoPackaging>
</PropertyGroup>

<!-- localization -->
<PropertyGroup>
<EnableXlfLocalization Condition="'$(Configuration)' == 'Proto' or '$(MonoPackaging)' == 'true'">false</EnableXlfLocalization>
<UpdateXlfOnBuild Condition="'$(CI)' != '1'">true</UpdateXlfOnBuild>
</PropertyGroup>

<!-- other -->
<PropertyGroup>
<DebugType>portable</DebugType>
<MicroBuildAssemblyFileLanguage>fs</MicroBuildAssemblyFileLanguage>
<UseStandardResourceNames>false</UseStandardResourceNames>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<!-- SDK targets override -->
<PropertyGroup Condition="'$(Configuration)' != 'Proto'">
<ProtoFSharpTargetsShim>$(ProtoOutputPath)\Microsoft.FSharp.NetSdk.targets</ProtoFSharpTargetsShim>
<FSharpTargetsShim Condition="Exists('$(ProtoFSharpTargetsShim)')">$(ProtoFSharpTargetsShim)</FSharpTargetsShim>
</PropertyGroup>

</Project>
41 changes: 41 additions & 0 deletions FSharp.Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<Project>

<PropertyGroup>
<XlfLanguages>en;$(XlfLanguages)</XlfLanguages>
<TargetDotnetProfile Condition="$(TargetFramework.StartsWith('netstandard')) or $(TargetFramework.StartsWith('netcoreapp'))">coreclr</TargetDotnetProfile>
<TargetDotnetProfile Condition="$(TargetFramework.StartsWith('net4'))">net40</TargetDotnetProfile>
<ActualOutputPath Condition="'$(Language)' != 'VB'">$(MSBuildProjectDirectory)\$(OutputPath)</ActualOutputPath>
<ActualOutputPath Condition="'$(Language)' == 'VB'">$(OutputPath)</ActualOutputPath>
<FinalOutputPath>$(RepoRoot)$(Configuration)\$(TargetDotnetProfile)\bin</FinalOutputPath>
<FinalIntermediateOutputPath>$(RepoRoot)$(Configuration)\$(TargetDotnetProfile)\obj</FinalIntermediateOutputPath>
</PropertyGroup>

<Target Name="HACK_CopyOutputsToTheProperLocation"
AfterTargets="AfterBuild"
Condition="'$(DisableOutputPathCopying)' != 'true'">
<!--
Ideally we'd set <OutputPath> to `$(Configuration)\[net40|coreclr]\bin`, but the calculation of `[net40|coreclr]`
depends on the `$(TargetFramework)` variable which is set by the individual project files, but by the time we have
that value (e.g., in this file) it's too late; some targets, particularly from the VsSDK have already used the
values of $(OutputPath)/$(OutDir).

The fix is to not set `$(Outputpath)` and simply copy stuff there after the fact.
-->

<ItemGroup>
<OutputFilesToCopy Include="$(ActualOutputPath)**" />
<IntermediateFilesToCopy Include="$(IntermediateOutputPath)\**" />
</ItemGroup>

<Message Text="Copying build artifacts to $(FinalOutputPath)" />
<MakeDir Directories="$(FinalOutputPath);$(FinalIntermediateOutputPath)" />
<Copy SourceFiles="@(OutputFilesToCopy)" DestinationFolder="$(FinalOutputPath)" />
<Copy SourceFiles="@(IntermediateFilesToCopy)" DestinationFolder="$(FinalIntermediateOutputPath)" />
</Target>

<Import Project="build\targets\AssemblyVersions.props" />
<Import Project="build\targets\ConvertPortablePdbs.targets" />
<Import Project="build\targets\GenerateAssemblyAttributes.targets" />
<Import Project="build\targets\GenerateInternalsVisibleTo.targets" />

</Project>
Loading