Hi.
I updated our project from .net6 project to .net8.
Its a fairly standard .net web project, c# with razor.
Locally it runs without problem.
When we build using pipelines, we get:
/usr/share/dotnet/sdk/8.0.101/Sdks/Microsoft.NET.Sdk.StaticWebAssets/targets/Microsoft.NET.Sdk.StaticWebAssets.Pack.targets(136,5): error MSB4018: System.IO.DirectoryNotFoundException: Could not find a part of the path '/opt/atlassian/pipelines/agent/build/src/web/obj/Release/net8.0/staticwebassets/msbuild.byggforsk/certification.Microsoft.AspNetCore.StaticWebAssets.props'. [/opt/atlassian/pipelines/agent/build/src/web/web.csproj
I tried to build locally with ling paths, which seems to be a problem after som searching on the web, but still works OK.
I tried with .net7, same error.
I reverted back to .net6, then pipeline works OK.
We updated sdk´s in pipline and docker files accordingly.
Anyone experienced something similar?