Hi,
I have been struggling for weeks to figure out how to get a pipeline running for our Bitbucket repo. Our application was designed in Visual Studio 2019 with .NET 4.8. When I try using the mcr.microsoft.com/dotnet/sdk:5.0 image, the pipeline tries to build but then I get the following error message:
error MSB3644: The reference assemblies for .NETFramework,Version=v4.8 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
However, I have downloaded and installed the Developer Pack to my PC but this doesn't seem to get the pipeline to recognize that it is there. (I am new to pipelines, so please let me know if I am missing a step there).
Alternatively, I have tried using the images
mcr.microsoft.com/dotnet/framework/runtime:4.8
and
mcr.microsoft.com/dotnet/framework/sdk:4.8
but get the errors:
rpc error: code = NotFound desc = failed to pull and unpack image "mcr.microsoft.com/dotnet/framework/sdk:4.8": no match for platform in manifest: not found
and
failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bin/sh": stat /bin/sh: no such file or directory: unknown.
Does anyone have any ideas about what I'm doing wrong here?
Hi Sarah,
Are you using self-hosted Runners or standard Bitbucket Pipelines?
Cheers!
- Ben (Bitbucket Cloud Support)
Hi Ben,
I have been using standard Bitbucket Pipelines. Is using self-hosted runners a better choice?
Thanks,
Sarah
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.