OctoPack Error: Could not load file or assembly Microsoft.Build.Utilities.v4.0


I want to pack my .net core web api with dotnet and octopack (installed via nuget) After I run dotnet pack with octopack commandline arguments with OctoPack 3.6.4 I got an error like below:

OctoPack error OCT-1250728402: Could not load file or assembly ‘Microsoft.Build.Utilities.v4.0, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. The system cannot find the file specified.

Could you please help me find out solving the problem?


1 Like

Hi mehmetkslk,

Thank you for contacting Octopus Support. I’m sorry that you are running into this issue.

It looks like your issue is similar to this one.

Here is our documentation on passing parameters: https://octopus.com/docs/packaging-applications/create-packages/octopack

Hopefully that helps. If not, let me know and we’ll keep digging.


This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.