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:
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