Skip to content

Update nanoFramework.System.IO.FileSystem native declaration to v100.2.0.2 - #3371

Merged
josesimoes merged 2 commits into
developfrom
copilot/update-nanoframework-system-io-filesystem-declarat
May 26, 2026
Merged

Update nanoFramework.System.IO.FileSystem native declaration to v100.2.0.2#3371
josesimoes merged 2 commits into
developfrom
copilot/update-nanoframework-system-io-filesystem-declarat

Conversation

Copilot AI commented May 26, 2026

Copy link
Copy Markdown
Contributor

Updates the native assembly declaration for nanoFramework.System.IO.FileSystem following the NuGet package rebuild triggered by dependency updates (CoreLibrary preview.49→preview.52, Runtime.Events preview.12→preview.13).

nf_sys_io_filesystem.cpp

  • Checksum: 0x62137E7A0xCCF9B4CA
  • Native version: { 100, 2, 0, 1 }{ 100, 2, 0, 2 }
  • method_lookup: removed one nullptr before SDCard methods (29 → 28 entries before InitNative___VOID)

nf_sys_io_filesystem.h

  • Removed Library_nf_sys_io_filesystem_ struct — two resource static fields at indices 0 and 1 are no longer present in the updated managed assembly
  • Shifted FIELD_STATIC indices down by 2 across four structs:
Struct Field Old New
StorageEventManager RemovableDeviceInserted/Removed, _drives, _sdCardList 2,3,4,5 0,1,2,3
FileSystemManager _openFiles, _lockedDirs, _currentDirectoryRecord, CurrentDirectory 6,7,8,9 4,5,6,7
File EmptyBytes 10 8
Path DirectorySeparatorChar, AltDirectorySeparatorChar, VolumeSeparatorChar, PathSeparator 11,12,13,14 9,10,11,12

…2.0.2

- Update checksum from 0x62137E7A to 0xCCF9B4CA
- Update native version from 100.2.0.1 to 100.2.0.2
- Update method_lookup to match new managed assembly layout (remove one nullptr before SDCard methods)
- Remove Library_nf_sys_io_filesystem_ struct (resource fields no longer present in assembly)
- Update FIELD_STATIC indices to match new managed assembly layout:
  - StorageEventManager: 2,3,4,5 → 0,1,2,3
  - FileSystemManager: 6,7,8,9 → 4,5,6,7
  - File.EmptyBytes: 10 → 8
  - Path: 11,12,13,14 → 9,10,11,12
Copilot AI changed the title [WIP] Update nanoFramework.System.IO.FileSystem declaration Update nanoFramework.System.IO.FileSystem native declaration to v100.2.0.2 May 26, 2026
Copilot AI requested a review from josesimoes May 26, 2026 19:45
@josesimoes
josesimoes marked this pull request as ready for review May 26, 2026 20:13
@josesimoes
josesimoes merged commit 2c898d1 into develop May 26, 2026
20 checks passed
@josesimoes
josesimoes deleted the copilot/update-nanoframework-system-io-filesystem-declarat branch May 26, 2026 23:11
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.

Update nanoFramework.System.IO.FileSystem declaration

2 participants