Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Erwinvk 10 posts 80 karma points
    Feb 18, 2020 @ 14:24
    Erwinvk
    0

    Rebuilding TeaCommerce.Payment.Providers

    Hi,

    I have a problem with the Ogone provider and noticed a mistake. I've downloaded the Tea-Commerce-Payment-Providers project and now want to rebuild it. However, I can't figure out how to do this.

    I see that there's 'ILrepack' and a build.cmd, and I've read that all DLL's should be merged into one, but I just can't figure out how to do this.

    Is there any help available on this?

    Regards, Erwin

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Feb 18, 2020 @ 15:03
    Matt Brailsford
    0

    Hi Erwinvk,

    You should be able to run the Build.cm file in the root of the project and it should prompt you for how you want to build the solution. The first option is the build mode, which you'll want to build in release mode so type 'r' + Enter, then the next option is how you want to package it, but if you just want the built DLL you can just hit Enter again and it should run through the build process.

    Once the build process is complete, inside Artifacts > Files > Bin there should be a series of individual payment provider DLLs but also a combined TeaCommerce.PaymentProviders.dll. This will be the one you want.

    Hope this helps

    Matt

  • Erwinvk 10 posts 80 karma points
    Feb 18, 2020 @ 15:09
    Erwinvk
    0

    Hi Matt,

    Thanks for your quick response. Unfortunately, when I run the build.cmd file I get two lines: system cannot find the path specified system cannot find the path specified

    My guess was this is due to

    CALL Build\Tools\NuGet\NuGet.exe restore Source\TeaCommerce.PaymentProviders.sln
    CALL "%programfiles(x86)%\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\MsBuild.exe" Build\Build.proj -target:%BUILD_TARGET%
    

    So changed that to;

    CALL D:\github\Tea-Commerce-Payment-Providers\Build\Tools\Nuget\NuGet.exe restore D:\github\Tea-Commerce-Payment-Providers\Source\TeaCommerce.PaymentProviders.sln
    CALL "%programfiles(x86)%\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\amd64\MsBuild.exe" Build\Build.proj -target:%BUILD_TARGET%
    

    But then I get these:

    WARNING: Project file D:\github\Tea-Commerce-Payment-Providers\Source\http://localhost:56791 cannot be found.
    WARNING: Project file D:\github\Tea-Commerce-Payment-Providers\Source\TeaCommerce.PaymentProviders.Klarna\TeaCommerce.PaymentProviders.Klarna.csproj cannot be found.
    All packages listed in packages.config are already installed.
    Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    MSBUILD : error MSB1009: Project file does not exist.
    Switch: Build\Build.proj
    Press any key to continue . . .
    

    Any ideas? I guess I canremove the Klarna project from the solution, but the other one seems a bit weird.

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Feb 18, 2020 @ 15:27
    Matt Brailsford
    0

    Hey,

    Yea, it looks like you are using a different version of Visual Studio to me so I guess it's needing you to update the MSBuild path. I think what you've set should be ok.

    Not quite sure why the Klarna project isn't found. Which branch are you compiling on? Dev might be the best branch to build on, but I don't think it's behind Master so not sure why that would be erroring 🤔

  • Erwinvk 10 posts 80 karma points
    Feb 18, 2020 @ 15:45
    Erwinvk
    0

    I am trying to compile the master branch. I'll see if I can find a colleague with VS2017 tomorrow :)

    Thanks for your help so far!

  • Erwinvk 10 posts 80 karma points
    Feb 19, 2020 @ 07:34
    Erwinvk
    0

    We got it to build with VS2017. Thanks!

  • Matt Brailsford 4125 posts 22223 karma points MVP 9x c-trib
    Feb 19, 2020 @ 09:15
    Matt Brailsford
    0

    Awesome!

    And thank you for the PR, I'll check it out as soon as I can.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft