Skip to content

dotnet pack --no-build fails #6

@mpdelbuono

Description

@mpdelbuono

When attempting to execute dotnet pack --no-build, the operation fails with the following error:

C:\Program Files\dotnet\sdk\8.0.404\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(238,5): error NETSDK1085: The 'NoBuild' property was set to true but the 'Build' target was invoked.

I suspect this is caused by a build being triggered on the dependency, but this is not allowed. Ideally the system would respect the --no-build request. This is very important for build systems that need to perform some step in between build and package (such as signing delay-signed DLLs) where doing the build step immediately before a pack would be functionally incorrect.

Pinned by teneko

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions