Commit Graph
9 Commits
Author SHA1 Message Date
Siegfried Pammer 83879c4a07 Fix #3775: escape reserved Windows device names in output file names
Windows maps CON, PRN, AUX, NUL, COM1-9 and LPT1-9 to devices -- on many
builds even with an extension appended, so a type named Con made both
whole-project export and the save dialog fail with IOException '\\.\Con'.
CleanUpName only checked for reserved names after re-appending the file
extension, where they never match, and the save-dialog default-name
helpers did not check them at all. The escape appends the underscore to
the base name (con_.txt, not con.txt_) because device-name parsing
ignores everything after the first dot, and is applied per path segment
so reserved directory names produced by namespaces are covered too. The
ILSpy.Tests.Windows fixture verifies on a real Windows filesystem that
the escaped names are creatable.

Assisted-by: Claude:claude-fable-5:Claude Code
2026-06-12 18:58:31 +02:00
Peter Crabtree e1e16b64f5 dev: Strip BOM mark from text files 2025-08-28 20:56:19 -04:00
Siegfried Pammer 647475fce5 Fix threading issue in TestFriendlyProjectDecompiler 2025-06-14 19:25:16 +02:00
ds5678 fb180b0010 Add tests 2025-04-08 11:16:14 -07:00
Siegfried Pammer 62cdf38e9b Fix #3349: Get rid of version string manipulation in UniversalAssemblyResolver.ParseTargetFramework. 2024-12-13 02:18:44 +01:00
Christoph Wille fba0dbae8d Migrate to NUnit 4 (#3132)
* Migrate to NUnit 4 based on https://docs.nunit.org/articles/nunit/release-notes/Nunit4.0-MigrationGuide.html. Needed fix for https://github.com/nunit/nunit/issues/4564
* Test 4.1.0-adev.1 from NUnit MyGet feed (works locally in VS)
* Update to bugfix version adev.2 (works on GH)
* NUnit 4.0.1 final
2023-12-02 13:38:55 +01:00
dotnet format 0d9f871a4f #2128: Reformat the whole code base. 2020-08-28 01:05:38 +02:00
dymanoid bfb57da93b Implement project writer for SDK style projects 2020-06-08 19:07:04 +02:00
dymanoid fdef5d11c6 Rearrange project writing logic
The WholeProjectDecompiler shall not have too many responsibilities.
2020-06-08 19:07:04 +02:00