17 Commits
Author SHA1 Message Date
Daniel Grunwald d1645f50c9 Reduce verbosity of commit hook. 2026-08-15 11:37:16 +02:00
Daniel Grunwald 54939b6c3d Fix pre-commit hook failure when package source mapping is active
The hook installs dotnet-format with --add-source, which NuGet rejects
when packageSourceMapping is configured. The dotnet10-transport feed is
already declared in NuGet.config; adding a dotnet-format mapping entry
there lets the install succeed without --add-source.

Assisted-by: Claude:claude-sonnet-4-6:GitHub Copilot
2026-08-15 11:25:56 +02:00
Siegfried Pammer 6b2852ce49 Set OpenSSL SHA1 flag in build scripts
Local OpenSSL defaults can reject legacy SHA-1 signatures during dotnet operations. Set the required compatibility flag inside the repository scripts so restore, build, publish, clean, and formatting paths do not depend on each caller's shell environment.

Assisted-by: OpenCode:openai/gpt-5.5:OpenCode
2026-07-02 15:43:24 +02:00
Siegfried Pammer c6c732deee Track BuildTools/pre-commit as executable
The blob was tracked 100644, so every fresh checkout (and any branch
switch in a worktree hosting the shared .git/hooks symlink target)
produces a non-executable hook script, which git then silently skips
with only an 'ignoredHook' hint. With core.fileMode=false on this
clone a plain chmod is git-invisible; the mode has to be fixed in the
index.

Assisted-by: Claude:claude-fable-5[1m]:Claude Code
2026-06-10 19:23:50 +02:00
Siegfried Pammer 1fb4acfc3d Build ICSharpCode.Decompiler.Tests + the format hook cross-platform
Decompiler.Tests targeted net11.0-windows only because
Microsoft.DiaSymReader.Native is Win-only and Tester.cs hardcoded ilasm.exe
/ ildasm.exe filenames. Both are narrow problems: gate the Native package
to Windows, replace the ".exe" suffix with an OS-aware helper, and drop
the -windows TFM. The Microsoft.NETCore.IL{,D}Asm metapackages' RID graph
already ships ilasm/ildasm for linux + osx via per-RID runtime sub-packages
when RuntimeIdentifier resolves dynamically, so the tool just lands in the
test output dir with the right suffix on every host.

Windows-only test fixtures (RoundtripAssembly + the RunWithTestRunner,
SignAssembly, FindMSBuild call sites) gate via Assert.Ignore +
[Platform("Win")] so they skip on non-Windows instead of failing. CA1416
joins NoWarn -- the analyzer can't see the runtime guards, and the test
inputs (Console.CapsLock, Registry access) are decompilation targets, not
infrastructure.

BuildTools/pre-commit learns to find dotnet-format on non-Windows (XDG
basedir + no .exe suffix) so the hook can run wherever the build now does.

Assisted-by: Claude:claude-opus-4-7:Claude Code
2026-06-08 07:34:33 +02:00
Christoph Wille ac8503c005 .NET 10 RTM Package Update (#3609) 2025-11-11 15:36:39 +01:00
Christoph Wille 4f11813829 .NET 10 RC2 packages (#3599)
Note: transport feed had only 106 for dotnet-format and ILCompiler.Reflection.ReadyToRun.Experimental
2025-10-15 17:31:05 +02:00
Christoph Wille b4d33af238 Update packages to .NET 10 RC1 2025-09-09 16:14:00 +02:00
Christoph Wille afcdcec146 Update for .NET 10 Preview 7 packages (#3537)
* Update NUnit (was: 4.3.2) to 4.4 and MTP (was: 1.7.3) to 1.8.1 (had to add VSTestBridge explicitly to override ref complaints by compiler)
* Update to .NET 10 Preview 7 NuGet packages
* Update dotnet-format
2025-08-13 11:02:45 +02:00
Siegfried Pammer 9b576532c7 Update dotnet-format to 10.0.100-preview.6.25358.103 2025-08-04 08:53:33 +02:00
Siegfried Pammer e4ebe20602 Upgrade dotnet target framework to net10 2025-07-04 19:08:07 +02:00
Christoph Wille 5ba75bfd51 Fix for "Unable to locate dotnet CLI. Ensure that it is on the PATH." https://github.com/microsoft/azure-pipelines-tasks/issues/19162 (then see https://github.com/dotnet/format/pull/2000) 2024-11-17 15:04:25 +01:00
Daniel Grunwald da24b7d126 Add BuildTools/format.bat 2024-07-19 17:00:44 +02:00
Christoph Wille 28b7280741 Fix dotnet-format to v8 via transport feed for dotnet8. See also PR #2747 2024-07-19 16:27:57 +02:00
Daniel Grunwald c2490d79ec Enable auto-formatting in commit-hook. 2023-05-28 13:59:43 +02:00
Daniel Grunwald fc882b9203 Automatically install dotnet-format in specific version in the commit hook. 2022-07-16 14:59:29 +02:00
Daniel Grunwald 08ceffc3ad Upgrade dotnet-format from version 5 to the version included with the .NET (6) SDK. 2022-07-15 12:09:13 +02:00