You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you are able to repro it on the latest version
Search the existing issues.
Summary
Whenever a class has two static classes on export, the message:
2024-10-24T07:30:07.588251Z ERROR dsc_lib::dscresources::command_resource: 855: PID 245208: Exception: Exception calling "GetMethod" with "1" argument(s): "Ambiguous match found for ' Export()'." is thrown.
Run dsc resource export --resource Microsoft.DotNet.Dsc/DotNetToolPackage
Expected behavior
Should call the export method
Actual behavior
See error in description
Error details
No response
Environment data
Name Value
---------
PSVersion 7.4.5
PSEdition Core
GitCommitId 7.4.5
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
dsc 3.0.0-preview.10
Visuals
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Summary
Whenever a class has two static classes on export, the message:
2024-10-24T07:30:07.588251Z ERROR dsc_lib::dscresources::command_resource: 855: PID 245208: Exception: Exception calling "GetMethod" with "1" argument(s): "Ambiguous match found for ' Export()'." is thrown.
The error comes from line 488: https://github.com/PowerShell/DSC/blob/main/powershell-adapter/psDscAdapter/psDscAdapter.psm1
I tried to fiddle around with the overload definitions and GetMethods(), but I don't know the preferred solution.
Steps to reproduce
dsc resource export --resource Microsoft.DotNet.Dsc/DotNetToolPackage
Expected behavior
Should call the export method
Actual behavior
See error in description
Error details
No response
Environment data
Version
dsc 3.0.0-preview.10
Visuals
No response
The text was updated successfully, but these errors were encountered: