mmajcica / DeploySsrs

Build-Release task for VSTS/TFS that manages Microsoft's SQL Server Reporting Services
MIT License
21 stars 21 forks source link

Json Configuration File Doesn't Work #18

Closed smokedlinq closed 5 years ago

smokedlinq commented 5 years ago

When trying to use a json configuration file it complains about ssrs.psm1 line 472. I checked the Folder class and it definitely doesn't have that constructor ...

Cannot find an overload for "new" and the argument count: "3".
At .\ssrs.psm1:472 char:5
+     $f = [Folder]::new($folder.name, $Parent, $folder.hidden)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodCountCouldNotFindBest
mmajcica commented 5 years ago

I never truly tested the JSON config file. It is probably an issue with transforming the config file to the config class in the code. Feel free to try to debug it and see if you can find the reason, I'll be happy to accept a PR.