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.cmd and 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 all is broken, i.e. it removes FSharp.Core.dll from the Debug\net40\bin output 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
ngen if 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
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 :).
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:build.cmdand related build scripts to fallback to older build toolsbuild.cmd allis broken, i.e. it removesFSharp.Core.dllfrom theDebug\net40\binoutput directory (ideas???)ngenif it is not required for the build:several warnings are currently raised. They should either be suppressed, or fixed. For instance:
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 :).