Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

MSB3030: Could not copy the file because it was not found URGENT HELP NEEDED

(0) ShareShare
ReportReport
Posted on by 1,439

The last time I was able to create a build successfully for  my retail deployable package was on v10.0.6 PU29..

I upgraded to v10.0.7 PU31 and now I get all these MSB3030 errors.

LCS doesn't upgrade the RetailSDK directory automatically when updating the development environment with the deployable package. sO I have to download the package to my VM and copy the folders and files under RetailSDK/Code to the RetailSDK-mirror on my Dev VM.

First I tried the Merge from RetailSDK-Mirror which got the new RetailSDK to RetailSDK-Dev. But the merge doesn't work because I got the MSB6006 error.

Then because I have to get a deployable package asap, I deleted everything in RetailSDK-Dev and copy in the new RetailSDK from RetailSdk\Code. I did copy my custom folder out first before deleting it. Luckily I don't have a lot of custom yet.

When I run the MSBuild on the new RetailSDK it builds without errors. I then open CloudPOS and because I need the PosApi in my custom, I right click it and choose include in Project. It hen rebuild the CloudPOS solution again and this time I get the error: 

***

"C:\Source\RetailSDK\dirs.proj" (default target) (1) ->
"C:\Source\RetailSDK\Pos\CloudPos.sln" (Build target) (91) ->
"C:\Source\RetailSDK\Pos\Web\Pos.Web.csproj.metaproj" (default target) (92) ->
"C:\Source\RetailSDK\Pos\Extensions\Pos.Extensions.csproj" (default target) (90:2) ->
  C:\Source\RetailSDK\Pos\Extensions\Pos.Extensions.csproj(92,5): error MSB3030: Could not copy the file "typings\DataJ
S.d.js" because it was not found.
  C:\Source\RetailSDK\Pos\Extensions\Pos.Extensions.csproj(92,5): error MSB3030: Could not copy the file "typings\Knock
outJS.d.js" because it was not found.
  C:\Source\RetailSDK\Pos\Extensions\Pos.Extensions.csproj(92,5): error MSB3030: Could not copy the file "typings\Pos.A
pi.d.js" because it was not found.
  C:\Source\RetailSDK\Pos\Extensions\Pos.Extensions.csproj(92,5): error MSB3030: Could not copy the file "typings\Pos.T
ypes.d.js" because it was not found.
  C:\Source\RetailSDK\Pos\Extensions\Pos.Extensions.csproj(92,5): error MSB3030: Could not copy the file "typings\Pos.U
I.Sdk.d.js" because it was not found.

***

I  downloaded the deployable package for V10.0.6 PU29 and I noticed that under RetailSdk/Code/POS/Extensions the typings folder already exist with the typescript files.

Looking at v10.0.7 PU31 it doesn't come out of the box with the typings folder. The first time one runs the MSBuild I noticed it created the typings folder and copied the typescript files from RetailSdk\POS\Contracts to the typings folder. However it doesn't generate the js-files it is looking for.

The typescript DLL that comes with the deployable package is 2.2.2 and I have 3.2.2.0 installed. That was what was available for download when I started with Retail development and it worked fine while on the previous version.

When I run msbuild in the msbuild command prompt for VS2015 as administrator, it gives the same errors for project ModernPos.sln, ModernPosSetup project and ModernPosSetupOffline project.

I need to get a deployable package out but I can't get past this error. 

When I add my custom POS extension into CloudPOS, it generates the js-file for my typescript file but it still gives the error that it cannot find the js-file for my custom typescript file on top of the errors on the typings typescript files. 

Any help ASAP is much appreciated to get this fixed. I did log a support issue with Microsoft and added it as urgent but it doesn't look like they plan on treating it as urgent because they are supposed to respond within an hour and it is now almost 3 hours later and no response yet.

I read somewhere that the build environment must be the same version as the target environment. The sandbox that I need to upgrade is on v10.0.7 PU31. I assume I cannot put v10.0.6 PU29's RetailSDK back in and then create a deployable package.

  • Suggested answer
    SKANDHAN1 Profile Picture
    on at
    RE: MSB3030: Could not copy the file because it was not found URGENT HELP NEEDED

    I was facing the same issue and after spending some time I was able to figure out the issue.

    To resolve the issue, follow the below steps:

    1. Note down all the error file names along with their paths.

    2. Now, go to RetailSDK/POS/Extension and open the file named Pos.Extensions.csproj in notepad.

    3. Search for the file names and delete lines from this file. (files ending with ts.d ... I forgot to note down the exact name, but you should be able to find them pretty easily.... Look under TypeScriptCompile tag)

    4. Now delete all the unnecessary files that are related to the files which are throwing error (d.ts, .js, .js.map)

    5. Clean and build the solution in VS

  • Retha Profile Picture
    1,439 on at
    RE: MSB3030: Could not copy the file because it was not found URGENT HELP NEEDED

    I asked Microsoft about the sub-folder naming convention and here is the answer.

    "I asked around and in a hypothetical scenario, one customer removes the build number in the folder name and maintains it using a powershell script to rename the folder and excludes the build number.

    I’ve brought it up to the product team and they are requesting you to put the change request at the Ideas site - http://ideas.dynamics.com "

    So I added a change request: experience.dynamics.com/.../

  • Retha Profile Picture
    1,439 on at
    RE: MSB3030: Could not copy the file because it was not found URGENT HELP NEEDED

    Hi Oksana

    I asked Microsoft and they told me they do not upgrade K:\RetailSDK but they do put the upgrade in \the sub-folder Update like you mentioned.

    I checked in that folder and saw it. So at least I won't need to download it myself anymore.

    What I can't understand is the naming convention of the sub-folders under References that contains the standard DLLs that one has to add to a CRT project as a reference. They change with every upgrade.

    I had to "fix" my CRT project due to errors because the reference path for the DLLs suddenly didn't exist anymore after an upgrade.

    So the monthly standard upgrades are going to break my CRT custom every month?

    Do you go back every month to your custom and replace the references or do you keep all the different version DLLs in source control and your project just points to the one it was created with regardless if there are newer versions of it.

    For example to reference Microsoft.Dynamics.Commerce.Runtime.Entities.DLL the path to it has some version number behind it which changes for every upgrade:

    0572.pastedimage1578354472909v1.png

    6567.pastedimage1578354490144v2.png

  • Oksana Kovaliova Profile Picture
    3,597 on at
    RE: MSB3030: Could not copy the file because it was not found URGENT HELP NEEDED

    Hi, it is very strange you have this situation.

    SDK is usually available after packages installation in K/J:\RetailSDK\Update\ folder

  • Verified answer
    Retha Profile Picture
    1,439 on at
    RE: MSB3030: Could not copy the file because it was not found URGENT HELP NEEDED

    I finally got it to work. I in the end copied some of the files from  v10.0.6 PU30 RetailSDK which included the schema and typings folders in Pos.Extensions as well as the pos.extensions project.

    I then again added my custom back in and this time I did not include the typings folder in my project and this time it built successfully.

    I was able to update the sandbox with my custom and it worked !!!

    I showed Microsoft all the trouble I have to upgrade to the next available platform. I also showed them that every time a package comes out the References directory under POS has the version number as part of the name for each sub-directory that contains its DLL. So I have to re-add every time the references to my CRT project.

    Merging from retailSDK-Mirror -RetailSDK-Dev doesn't work either for me. That is when I get the MSV6006 error so that I in the end have to delete everything, even my custom, put the latest version in and re-add my custom.

    This is just not working for me. So can I ask what steps do you guys take to upgrade your RetailSDK-Dev to the latest PU?

    This is what I have to do at this point:

    1) Download the MSFT standard application and binary deployable package that I want to install.

    2) After download BEFORE unzipping the file, unblock it first.

    Right-click the zip-file , choose properties.

    Click in the Unblock checkbox to unblock and choose Apply, then OK.

    3) Unzipping the zip-file.

    4) Log into VS and delete all the files and folders in RetailSDK-Dev but copy the custom to someplace else first.

    5) check it in. After checking in, merge it to RetailSDK-Main.

    6) Go to RetailSDK -> Code folder and copy everything in this folder to C:\Source\RetailSdk-Dev.

    7) Open MSBuild CommandPrompt for VS2105 as Administrator.

    8) Run MSBuild and make sure it builds without errors.

    9) Go back into VS and in source control , right-click RetailSDK-Dev and choose Add items to folder

    10) Choose all the files and folders, click next.

    Then choose al the files and folders in ExcludedItems tab and click on Include Items so that ZERO items shows to be excluded.

    11) Choose Finish.

    12) After everything was added, click on Check-In.

    13) Add custom POS extensions back in.

    For CRT custom, open the project, remove the references that gives now an error and re-add them from C:\Source\RetailSDK\References

    Rebuild the CRT projects and copy the DLL's over to K:\RetailServer\WebRoot\Bin as well as C:\RetailSDK\References before creating a package

    I mean there must be a better way to upgrade RetailSDK

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,979 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans