Skip to content

add support for /tl:[auto|on|off] msbuild flag - #2768

Merged
xperiandri merged 9 commits into
fsprojects:masterfrom
smoothdeveloper:msbuild-terminallogger-flag
Jul 25, 2024
Merged

xperiandri merged 9 commits into
fsprojects:masterfrom
smoothdeveloper:msbuild-terminallogger-flag

Conversation

@smoothdeveloper

Copy link
Copy Markdown
Contributor

Description

see --tl:[auto|on|off] on dotnet build documentation: https://learn.microsoft.com/en-gb/dotnet/core/tools/dotnet-build

Since this only works with dotnet sdk >= 8, the default case (specifying Auto) will not emit the tag.

TODO

Feel free to open the PR and ask for help

  • New (API-)documentation for new features exist (Note: API-docs are enough, additional docs are in help/markdown)

  • unit or integration test exists (or short reasoning why it doesn't make sense)

    Note: Consider using the CreateProcess API which can be tested more easily, see https://github.com/fsharp/FAKE/pull/2131/files#diff-4fb4a77e110fbbe8210205dfe022389b for an example (the changes in the DotNet.Testing.NUnit module)

  • boy scout rule: "leave the code behind in a better state than you found it" (fix warnings, obsolete members or code-style in the places you worked in)

  • (if new module) the module has been linked from the "side navigation" menu, edit docs/data.json.

  • (if new module) the module is in the correct namespace.

  • (if new module) the module is added to Fake.sln (dotnet sln Fake.sln add src/app/Fake.*/Fake.*.fsproj)

  • Fake API guideline is honored

@smoothdeveloper

Copy link
Copy Markdown
Contributor Author

tried it (specificying TerminalLogger = On) in the build.fsx in this repository and it seems to work:

image

Comment thread src/app/Fake.DotNet.MSBuild/MSBuild.fs Resolved
Comment thread src/app/Fake.DotNet.MSBuild/MSBuild.fs Resolved
@smoothdeveloper
smoothdeveloper force-pushed the msbuild-terminallogger-flag branch from 25ce9f1 to 545a1d2 Compare December 11, 2023 22:38
@smoothdeveloper

Copy link
Copy Markdown
Contributor Author

image

now with <para/> tags.

@xperiandri
xperiandri force-pushed the msbuild-terminallogger-flag branch from 545a1d2 to effc697 Compare December 11, 2023 22:53
@xperiandri

Copy link
Copy Markdown
Collaborator

Do you have any ideas why build fails?

@smoothdeveloper

Copy link
Copy Markdown
Contributor Author

@xperiandri no, I see the same on another run on master branch: https://github.com/fsprojects/FAKE/actions/runs/7174371576/job/19535683031

We should investigate but I doubt it is related to this change.

@xperiandri

xperiandri commented Dec 20, 2023 •

Copy link
Copy Markdown
Collaborator

Probably something bad with an agent. Maybe update the version of image

@xperiandri
xperiandri force-pushed the msbuild-terminallogger-flag branch from effc697 to 558d9a2 Compare February 6, 2024 21:25
@xperiandri

Copy link
Copy Markdown
Collaborator

Could you rebase onto the latest master?

@smoothdeveloper
smoothdeveloper force-pushed the msbuild-terminallogger-flag branch from 558d9a2 to ffe3452 Compare July 12, 2024 11:06
@smoothdeveloper

Copy link
Copy Markdown
Contributor Author

@xperiandri not sure what is blocking in CI, seems an upload is timing out.

@xperiandri
xperiandri force-pushed the msbuild-terminallogger-flag branch from ffe3452 to 92b3f29 Compare July 14, 2024 08:46
@xperiandri

xperiandri commented Jul 14, 2024 •

Copy link
Copy Markdown
Collaborator

@smoothdeveloper do we need to update the release notes?
https://github.com/fsprojects/FAKE/pull/2778/files

@xperiandri

Copy link
Copy Markdown
Collaborator

@Thorium @Numpsy what do you think about release notes?

@Thorium

Thorium commented Jul 15, 2024 •

Copy link
Copy Markdown
Member

Seems, good to me: a small addition, and there is no new dependencies or anything added. And release notes are there already updated in this PR.

@Numpsy

Numpsy commented Jul 15, 2024

Copy link
Copy Markdown
Contributor

Is there any manually managed documentation for features like this, or is it just generated out of the XML doc comments?

@xperiandri

Copy link
Copy Markdown
Collaborator

Conflict appeared

@smoothdeveloper
smoothdeveloper force-pushed the msbuild-terminallogger-flag branch from 92b3f29 to 21c36de Compare July 24, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants