Skip to content

PSCmdLet to output target framework for an assembly#3435

Merged
siegfriedpammer merged 2 commits intoicsharpcode:masterfrom
snorrk:powershell-gettargetframework
Mar 30, 2025
Merged

PSCmdLet to output target framework for an assembly#3435
siegfriedpammer merged 2 commits intoicsharpcode:masterfrom
snorrk:powershell-gettargetframework

Conversation

@snorrk
Copy link
Contributor

@snorrk snorrk commented Mar 20, 2025

Problem

Sometimes it is helpful to validate that all the assemblies in a directory are targeting the expected framework(s).

Solution

Adding a simple PS cmdlet to output the target framework for an assembly using PowerShell.

@siegfriedpammer
Copy link
Member

I am not exactly sure whether you want the extra behavior of DetectTargetFrameworkId. It does some extra inference/guessing, if no TargetFrameworkAttribute is present in the binary. The ultimate fallback would be .NET Framework.

Do you want all the extra logic or just "give me what's embedded in the binary"?

@siegfriedpammer siegfriedpammer merged commit d2d76ec into icsharpcode:master Mar 30, 2025
5 checks passed
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