Git Product home page Git Product logo

Comments (5)

WaelHamze avatar WaelHamze commented on June 4, 2024

from dyn365-ce-vsts-tasks.

carolina007 avatar carolina007 commented on June 4, 2024

PowerShell Details:

2019-01-04T22:51:25.8209162Z Name Value
2019-01-04T22:51:25.8209162Z ---- -----
2019-01-04T22:51:25.8219162Z PSVersion 4.0
2019-01-04T22:51:25.8229162Z WSManStackVersion 3.0
2019-01-04T22:51:25.8229162Z SerializationVersion 1.1.0.1
2019-01-04T22:51:25.8229162Z CLRVersion 4.0.30319.42000
2019-01-04T22:51:25.8229162Z BuildVersion 6.3.9600.19170
2019-01-04T22:51:25.8229162Z PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
2019-01-04T22:51:25.8229162Z PSRemotingProtocolVersion 2.2

from dyn365-ce-vsts-tasks.

WaelHamze avatar WaelHamze commented on June 4, 2024

@carolina007 I think you are still using PS 4.0. I suggest you upgrade to at least PS 5 as the cmdlets will make more usage of the new features going forward.

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/write-information?view=powershell-6

However given that in most organisations rolling changes like this can require approvals and take time. I have added a check in the code that will hopefully fix your issue and any other users who are still on PS 4.

        string message = string.Format(format, args);
        if (GetPSVersion().Major < 5)
        {
            Console.WriteLine(message);
        }
        else
        {
            XrmCmdlet.WriteInformation(message, new string[] { "XrmCIFramework" });
        }

I have uploaded the fix to the marketplace.

from dyn365-ce-vsts-tasks.

carolina007 avatar carolina007 commented on June 4, 2024

FYI. it's still throwing error when we use 11.0.1 with PowerShell 4.0. We installed PS5 and it worked.

2019-01-06T01:33:47.9431719Z ##[section]Starting: MSCRM Import Solution ACH_Base
2019-01-06T01:33:47.9436697Z ==============================================================================
2019-01-06T01:33:47.9436959Z Task : MSCRM Import Solution
2019-01-06T01:33:47.9437253Z Description : Import a Dynamics CRM Solution package
2019-01-06T01:33:47.9437448Z Version : 11.0.1
2019-01-06T01:33:47.9437621Z Author : Wael Hamze
2019-01-06T01:33:47.9437837Z Help : This task invokes ImportSolutionRequest in Async mode
2019-01-06T01:33:47.9438056Z ==============================================================================
2019-01-06T01:33:50.3368735Z ##[error]Method not found: 'Void System.Management.Automation.Cmdlet.WriteInformation(System.Object, System.String[])'.
2019-01-06T01:33:50.3586722Z ##[section]Finishing: MSCRM Import Solution ACH_Base

from dyn365-ce-vsts-tasks.

WaelHamze avatar WaelHamze commented on June 4, 2024

Glad you got this working. Not sure on PS 4. It should have worked. I have added checks in code. Might have been caching issue,

2019-01-05T10:49:04.8445458Z ##[debug]logFilename = Success_1_0_0_0_managed_importlog_2019_01_05__10_49.xml
2019-01-05T10:49:04.8445920Z ##[debug]PS Version: 5.0.10586.117
2019-01-05T10:49:04.8446063Z ##[debug]Current Security Protocol: Tls, Tls11, Tls12
2019-01-05T10:49:04.8446653Z ##[debug]Modified Security Protocol: Tls, Tls11, Tls12
2019-01-05T10:49:04.8446798Z ##[debug]Connecting to CRM [attempt 1]
2019-01-05T10:49:07.7376513Z ##[debug]Entering XrmImportSolution

from dyn365-ce-vsts-tasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.