Skip to content

Cannot run pack when GeneratePackageOnBuild is true #3471

@wli3

Description

@wli3

Create a console app. Set GeneratePackageOnBuild=true. Run dotnet pack. This bug as there since 2.0

Microsoft (R) Build Engine version 16.3.0-preview-19375-03+c19c7499a for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
  Restore completed in 130.75 ms for C:\work\sdk\artifacts\tmp\Debug\It_packs_succ---E7D10EDE\HelloWorld.csproj.
C:\work\sdk\artifacts\bin\Debug\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(154,5): error MSB3030: Could not copy the file "C:\work\sdk\artifacts\tmp\Debug\It_packs_succ---E7D10EDE\bin\Debug\netcoreapp2.1\HelloWorld.deps.json" because it was not found. [C:\work\sdk\artifacts\tmp\Debug\It_packs_succ---E7D10EDE\HelloWorld.csproj]
C:\work\sdk\artifacts\bin\Debug\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(154,5): error MSB3030: Could not copy the file "obj\Debug\netcoreapp2.1\HelloWorld.dll" because it was not found. [C:\work\sdk\artifacts\tmp\Debug\It_packs_succ---E7D10EDE\HelloWorld.csproj]
C:\work\sdk\artifacts\bin\Debug\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(154,5): error MSB3030: Could not copy the file "obj\Debug\netcoreapp2.1\HelloWorld.pdb" because it was not found. [C:\work\sdk\artifacts\tmp\Debug\It_packs_succ---E7D10EDE\HelloWorld.csproj]
C:\work\sdk\artifacts\bin\Debug\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(154,5): error MSB3030: Could not copy the file "C:\work\sdk\artifacts\tmp\Debug\It_packs_succ---E7D10EDE\bin\Debug\netcoreapp2.1\HelloWorld.runtimeconfig.json" because it was not found. [C:\work\sdk\artifacts\tmp\Debug\It_packs_succ---E7D10EDE\HelloWorld.csproj]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions