-
Notifications
You must be signed in to change notification settings - Fork 831
Description
This issue is to minute suggested changes in a soon to be created PR. This follows from my recent bug reports on build.cmd. At the moment I am thinking of some cleaning up and slightly improved error reporting:
- Remove code that can cause
build.cmdand related build scripts to fallback to older build tools- For instance, if the VS2017 tools are not found, it will default to VS2015 or even VS2012 tools, with spurious errors as a result, this should be removed).
- Fix that
build.cmd allis broken, i.e. it removesFSharp.Core.dllfrom theDebug\net40\binoutput directory (ideas???) - Raise a clean and clear error if an elevated command prompt is required:
- scenario: seeing build errors after waiting a few minutes is rather tedious, and often nothing truly suggests you forgot to use an elevated command prompt).
- Possibly: do not execute
ngenif it is not required for the build:- this could alleviate problems some contributors have mentioned, in particular when they are in a restricted environment (question: not sure if there are other scenarios where an elevated command prompt is required).
- Possibly: update the build server to run several variants of the build scripts. Or put this in a NUnit test. The output could be checked for the presence of errors/warnings, if not we have a failing test. This could help any contributor to make sure his code is clean of warnings, or fails in a lesser-used build scenario.
- Remove warnings
-
several warnings are currently raised. They should either be suppressed, or fixed. For instance:
D:\Projects\OpenSource\VisualFSharp\src\buildtools\fslex\fslexast.fs(14,6): warning FS0044: This construct is deprecated. The type 'Position' is less accessible than the value, member or type 'Code' it is used in.↔As of F# 4.1, the accessibility of type abbreviations is checked at compile-time. Consider changing the accessibility of the type abbreviation. Ignoring this warning might lead to runtime errors.
D:\Projects\OpenSource\VisualFSharp\src\fsharp\FSharp.Compiler.Interactive.Settings\obj\debug\netstandard1.6\FSInteractiveSettings.fs(105,16): warning FS1182: The value 'GetStringFunc' is unused
-
Other suggestions are welcome. I think if we make the learning curve less steep for new contributors, it may invite more of them to the club :).
