Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

How to run standard retail on a Development environment

(0) ShareShare
ReportReport
Posted on by 1,447

I have a cloud-hosted development environment.  We use it to test standard code with our company data and configuration key settings. That is how we determine if a problem is caused by our custom or a bug in standard.

I want to also add retail to this environment. We have used D365 on it now for a while and that works just fine.

I redeployed this environment and put V10.0.15 PU 39 on it because that is what we have in production.

I had it redeployed as a development environment because it has happened twice in the past that I had to step through the code. And if Microsoft needs a copy of our database to investigate an issue we logged, I create a backup from this environment.

This environment was not redeployed with the Dynamics tab in VS 2017. I don't know why. I had to add it manually and I had to add the following prerequisites as well as mentioned in this link:

Migrate the Retail SDK from Visual Studio 2015 to Visual Studio 2017 - Commerce | Dynamics 365 | Microsoft Docs

It just didn't want to install the sdk-2.1.513 because it said there is already a version installed.

I was able to run the Retail from the LCS page of the environment with the retailSDK that was installed with the redeploy. But because I need to run an upgrade for the channel DB to be created correctly after I placed the backup of our data in (need to do it because UAT and production use scale units and the  channel DB in SQL is outdated). , it placed the retailSDK for the update in the "Update" folder under "K:\RetailSDK\Update". 

Now here I started to run into problems. What retailSDK is the environment using when I run the "Log on to Cloud Point of Sales" on LCS? When I look in the IIS manager under sites and click on RetailCloudPOS, advanced Settings, I see the physical path is K:\RetailCloudPOS\Webroot. Pointing to this directory I was able to log onto POS from the LCS link.

But because with every upgrade, the LCS process puts the latest retailSDK under the K:\RetailSDK\Update folder, so I need to get it into the retailSDK used by the LCS  cloudPOS link.

Well it didn't want to copy the upgrade version of RetailSDK into the K:\retailSDK. It stated there is a .net file that is too long and I need to copy it to a directory with a shorter name.

So I created a directory under the C-drive where I have it on the development environment where I develop the custom. It complained here too. But I thought maybe it is just needs the files that is generated with MSBUILD.

So I ran an MSBUILD as: msbuild -t:rebuild.

It failed on a .NET standard error.

Because I had to install manually the Dynamics tab on VS 2017, I had to get to the tools.Installer and thus had to download the deployable package for the V10.0.15  that I upgraded this environment with.

So I also have access to its retailSDK. I copied it into the C:\source\Retailsdk directory without any errors this time.

I looked in the IIS manager under sites and click on RetailCloudPOS, advanced Settings, and see now the the physical path is C:\Source\RetailSDK\POS\Web.

So I tried to rebuild it again but with the same error. Here is the error:

***

"c:\Source\RetailSDK\dirs.proj" (rebuild target) (1) ->
(RestorePackages target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.T
argetFrameworkInference.targets(126,5): error : The current .NET SDK does not support targeting .NET Standard 2.0. Eit
her target .NET Standard 1.6 or lower, or use a version of the .NET SDK that supports .NET Standard 2.0. [C:\Source\Ret
ailSDK\Payments\Connector.Sample\PaymentSdk.Connector.Sample.csproj] [c:\Source\RetailSDK\dirs.proj]
c:\Source\RetailSDK\dirs.proj(17,9): error MSB3073: The command "powershell -NoProfile -NonInteractive .\BuildTools\n
ugetRestore.ps1" exited with code 1.

***

So first of all, why do I get this error? I have never had this error before and I redeployed a new v10.0.15 environment 2 weeks ago. Not setting it up with Retail, but the VS2017 was installed by LCS with the dynamics tab without me having to install it manually. So did something just went wrong during the LCS process of redeploying the environment and I have to blow it away and start over again? I hope not because it is very time consuming. Our data is over 20GB and I already imported the database.

So 2 questions:

1)  what do I need to do to get passed that error?

2) what RetailSDK does the LCS "Log on to Cloud Point of Sales" use? So can I assume now the the IIS Manager points to C:\Source\RetailSDK\POS\Web, it will pick it up from here? If so, then I only need help with question 1 to figure out how to fix it.

Any help is appreciated. 

Thanks

  • Retha Profile Picture
    1,447 on at
    RE: How to run standard retail on a Development environment

    Thank you Todd

  • Verified answer
    ToddB Profile Picture
    on at
    RE: How to run standard retail on a Development environment

    Hi Retha,

    Yes, that is exactly how updating a Development box works.  

    The closest documentation I can find to explain this is:

    Apply updates to cloud environments - Finance & Operations | Dynamics 365 | Microsoft Docs  

    docs.microsoft.com/.../apply-deployable-package-system

    Deploy and access development environments - Finance & Operations | Dynamics 365 | Microsoft Docs    

    docs.microsoft.com/.../access-instances

    and in Download the Retail SDK where it says:

    docs.microsoft.com/.../retail-sdk-overview

    “To access the Retail SDK, sign in to the development virtual machine (VM), and go to the K:\RetailSDK folder. You can obtain new versions of the Retail SDK by applying any Commerce binary hotfix from LCS to the development environment. After hotfix deployment is completed, you can find the new version of the SDK inside the K:\RetailSDK\Update folder.”

  • Retha Profile Picture
    1,447 on at
    RE: How to run standard retail on a Development environment

    Hi Todd,

    So you say that if I upgrade the environment with a standard version LCS package, it will automatically install that deployable package's retail side for the CPOS website wherever the CPOS is reading from. I don't have to do anything?

    This cloud-hosted environment is currently on v10.0.15. If I log onto LCS and save a deployable package for v10.0.15 with the latest hotfixes or if  my boss decide I need to upgrade this environment to v10.0.16 and I save the deployable package using LCS and then use LCS to apply this deployable package to the environment, it will automatically update the CPOS website to use this latest version installed using LCS?

    That would be great because we really just want to run the standard CPOS and D365F&O against our data instead of the Demo DB data.

  • ToddB Profile Picture
    on at
    RE: How to run standard retail on a Development environment

    Hi Retha,

    In checking on the 2nd question you originally posted here is what I was able to find out:

    2) what RetailSDK does the LCS "Log on to Cloud Point of Sales" use? So can I assume now the the IIS Manager points to C:\Source\RetailSDK\POS\Web, it will pick it up from here? If so, then I only need help with question 1 to figure out how to fix it.

    A:  None.   CPOS on LCS and CPOS on the box, point to the ‘installed CPOS website not any SDK’. The SDK is a completely independent object from this website setup.    

    In the Project settings you can choose to run the solution against IIS or IIS Express, (later is usually used by default).  

    When you run the solution in VS it will connect to one of these to IIS programs.    

    The alternative option is to compile your code into a package, then apply that package to the  Development box, which would then update the  Retail Server and CPOS websites with your new code.    

  • Retha Profile Picture
    1,447 on at
    RE: How to run standard retail on a Development environment

    I found the problem with the error. Microsoft is installing a faulty version of Visual Studio 2017 when deploying an environment.

    When I deployed a cloud-hosted environment in February 2021, LCS installed as part of the deploy process Visual Studio 22017 version 15.9.29.

    This latest environment was re-deployed with Visual Studio 2017 version 15.9.33. the latter doesn't install the Dynamics tab in VS and its MSBUILD fails with the above mentioned error.

    I downloaded the latest version of VS which is version 15.9.34 and after I installed it, the MSBUILD ran without errors.

    So that fixed that problem for me.

    So the other question, to upgrade retailSDK on a development environment where I just want to use the standard retailSDK without any custom but run it against our data, Do I need to copy the retailSDK to the C-drive like I did  or can I just go with updating the retailSDK on the K-drive?

    I now don't know what part of my problems were caused by the faulty VS and which ones not.

    Should I still change VS to use IIS instead of IISExpress? I assume not, because I'm not going to do any programming on this retailSDK.

    When one works in VS with customization, I have to change the URL in the POS Web-project file ("C:\Source\RetailSDK\POS\Web\Pos.Web.csproj") to the environment's URL.

    It usually comes with the onebox URL (usnconeboxax1pos.cloud.onebox.dynamics.com) .

    If I don't customize the retailSDK, can I also leave the oneBox URL?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 462 Moderator

#2
Danny Bilodeau Profile Picture

Danny Bilodeau 156 Moderator

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 120 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans