AL compile gives error AL1009: Unrecognized option: when using documented /outputFolder parameter
Please include the following with each issue:
1. Describe the bug attempting to compile an AL project and specifying the /outputFolder parameter as described by the documentation produces an error
error AL1009: Unrecognized option: '/outputFolder:
Running "AL Compile /?" shows the parameter to set the compiled app output location as
/outputFolder:
If I change the parameter from /outputFolder to /outFolder. It works successfully.
A simple fix would be to change the documentation to match the actual parameter. This was discussed previously in https://github.com/microsoft/AL/issues/7531 where the most recent comment says it should be fixed.. But the issue persists in AL Compiler version 17.0.28.6483
2. To Reproduce Steps to reproduce the behavior:
-
Go to dotnet tool install --global Microsoft.Dynamics.BusinessCentral.Development.Tools --version 17.0.28.6483-beta and download the latest beta of the AL Tool.
-
Run al compile /? to confirm /outputFolder is showing as the option to use.
-
Attempt to compile an AL project using the /outputFolder.
-
Get the error AL1009: Unrecognized option:
-
Now change the command to use /outFolder instead.
-
App compiles successfully and is placed in the folder specified by /outFolder
Example Command that causes error
al compile /project:"C:\Work\Temp\App JSON Properties Spike\App1" /packagecachepath:"C:\Work\Temp\App JSON Properties Spike\.alpackagesShared" /outputFolder:"C:\Work\Temp\App JSON Properties Spike\.compiledAppFiles"
Example Command that resolves the error
al compile /project:"C:\Work\Temp\App JSON Properties Spike\App1" /packagecachepath:"C:\Work\Temp\App JSON Properties Spike\.alpackagesShared" /outFolder:"C:\Work\Temp\App JSON Properties Spike\.compiledAppFiles"
Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.
3. Expected behavior App to compile and be placed in the specified folder. Either by changing the documentation to match the actuial parameter "outFolder" or by changing the parameter to /outputFolder to match the documentation
4. Actual behavior When using /outputFolder, get "error AL1009: Unrecognized option: "
5. Versions:
- AL Language: Microsoft (R) AL Compiler version 17.0.28.6483
- Visual Studio Code: n/a
- Business Central: n/a
- List of Visual Studio Code extensions that you have installed: n/a
- Operating System:
- [X] Windows
- [ ] Linux
- [ ] MacOS
Final Checklist
Please remember to do the following:
-
[X] Search the issue repository to ensure you are reporting a new issue
-
[X] Reproduce the issue after disabling all extensions except the AL Language extension
-
[X] Simplify your code around the issue to better isolate the problem
Internal work item: AB#610340