Is source code required on target server to run CD restore?

2024/05/01 1:55 PM

[describe your problem or question]


Environment

  • Xperience by Kentico version: [28.4.4]
  • .NET version: [8]
  • Deployment environment: [SaaS|Azure|VM]
  • Hi, I'm trying to run CD on a published site.

dotnet run --no-build --kxp-cd-restore --repository-path ".\App_Data\CDRepository\" produces the error

Couldn't find a project to run. Ensure a project exists in E:\sites\dancingGoat, or pass the path to the project using --project.

dotnet run --no-build --kxp-cd-restore --repository-path ".\App_Data\CDRepository\" --project "DancingGoat.dll produces

'DancingGoat.dll' is not a valid project file.

Is source code required on a target server to restore CD?

Environment

Answers

2024/05/01 8:38 PM
Answer

@msr

The main issue is a key difference between dotnet run --project MyApp.csproj and dotnet MyApp.dll.

dotnet run is meant to be used with local source code during development.

dotnet runs compiled .NET applications.

When you are doing a deployment, you want to use dotnet MyApp.dll --kxp-cd-restore ...

You can see this differentiation in our documentation on updating Xperience by Kentico.

For deployed applications containing built assemblies, run the following dotnet command (replace the assembly with the name of your Xperience project’s DLL)

2024/05/02 10:36 AM

Ah of course, thank you.

To answer this question, you have to login first.