Skip to content

Add runtimeconfig types#93

Merged
Smaug123 merged 6 commits intomainfrom
add-runtimeconfig-types
May 16, 2025
Merged

Add runtimeconfig types#93
Smaug123 merged 6 commits intomainfrom
add-runtimeconfig-types

Conversation

@Smaug123
Copy link
Owner

In preparation to allow the user to locate the runtime for an exe.

@Smaug123 Smaug123 requested a review from Copilot May 16, 2025 13:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces runtime configuration types to support locating the runtime for an executable. The changes include the addition of new records and enums for runtime config options, minor formatting improvements in documentation and code, and a small fix in file encoding in InteropStructs.cs.

Reviewed Changes

Copilot reviewed 5 out of 10 changed files in this pull request and generated 1 comment.

File Description
WoofWare.DotnetRuntimeLocator/RuntimeConfigOptions.cs Adds records and enums for representing runtimeconfig.json content.
WoofWare.DotnetRuntimeLocator/InteropStructs.cs Removes extraneous BOM character improving file consistency.
WoofWare.DotnetRuntimeLocator/DotnetEnvironmentInfo.cs Improves documentation formatting and simplifies code style.
README.md Refines the instructions for specifying the libhostfxr path.
Files not reviewed (5)
  • WoofWare.DotnetRuntimeLocator/Test/Test.fsproj: Language not supported
  • WoofWare.DotnetRuntimeLocator/Test/TestRuntimeConfigParse.fs: Language not supported
  • WoofWare.DotnetRuntimeLocator/WoofWare.DotnetRuntimeLocator.csproj: Language not supported
  • WoofWare.DotnetRuntimeLocator/version.json: Language not supported
  • flake.nix: Language not supported

/// <summary>
/// The .NET runtime which this executable expects.
/// This is optional, because you can instead specify multiple Frameworks, in which case any of the frameworks
/// is acceptable (according to Claude; the MS docs are impenetrable as ever).
Copy link

Copilot AI May 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider revising this comment to remove informal language and unclear references (e.g., 'according to Claude') to improve clarity and professionalism.

Copilot uses AI. Check for mistakes.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your kind feedback.

@Smaug123 Smaug123 enabled auto-merge (squash) May 16, 2025 14:04
@Smaug123 Smaug123 merged commit a013fc4 into main May 16, 2025
15 checks passed
@Smaug123 Smaug123 deleted the add-runtimeconfig-types branch May 16, 2025 14:04
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.

2 participants