Skip to content

dotnet publish --no-build on ubuntu fails with error: Manifest file at '/someFolder/staticwebassets.build.json' not found. #41149

Description

@yepeekai

I am trying to optimize the build on azure devops. I build all projects in a previous task with dotnet build --configuration release.
I force the use of dotnet 6.0.x which is 6.0.201 at the moment.

I then execute the following command:
/opt/hostedtoolcache/dotnet/dotnet publish /home/vsts/work/1/s/mywebproject /mywebproject .csproj --configuration release --output /home/vsts/work/1/a/mywebproject --no-build

It throws the error: /opt/hostedtoolcache/dotnet/sdk/6.0.201/Sdks/Microsoft.NET.Sdk.Razor/targets/Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(681,7): error : Manifest file at '/home/vsts/work/1/s/mywebproject /obj/release/net6.0/staticwebassets.build.json' not found. [/home/vsts/work/1/s/mywebproject /mywebproject .csproj]

On my windows machine, I started with a clean repository and executed exactly the same tasks as specified in my azure build and it works fine.

Metadata

Metadata

Assignees

Labels

ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions