question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DotNetCoreCLI - Pack missing doc & wierd usage

See original GitHub issue

Note

This could be related to issue #9789

Required Information

Question, Feature?
Type: Feature / Cleaning Enter Task Name: DotNetCoreCLIV2

Environment

  • Server - Azure Pipelines
  • Agent - Hosted

Issue Description

DotNetCoreCLI@2 provide a documented way for packing, who is I think mispelling / hard to get into / easier to get lost.

Like:

- task: DotNetCoreCLI@2
  displayName: 'Pack - Manager'
  inputs:
    command: 'pack'
    projects: '$(Build.SourcesDirectory)/src/CM/CM.csproj'
    includesymbols: true
    includesource: true
    nobuild: true
    verbosityPack: 'normal'
    outputDir: '$(Build.StagingDirectory)'

projects won’t be used during pack cmd and will be override by searchPatternPack who is required but has a default. And it seem to have one alias packagesToPack who is not set or documented.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

2reactions
Trolldemortedcommented, Nov 24, 2021

Was this fixed in the meanwhile?

1reaction
Trolldemortedcommented, Sep 14, 2019

I just lost several hours because of this bug. Could you emit a warning if projects is used in combination with pack and link to this issue @sachinma ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

DotNetCoreCLI@2 - .NET Core v2 task - Microsoft Learn
Use when command = pack. Configuration to Package. Default: $(BuildConfiguration). #packDirectory: '$(Build.ArtifactStagingDirectory)' # string.
Read more >
Azure pipeline restore and pack - Stack Overflow
1 Answer 1 ... The documentation for dotnet pack clearly explains the behavior: You don't have to run dotnet restore because it's run...
Read more >
DotNetCoreCLI@2 ignores projects on publish
I'm unable to publish a project within my solution: the following task successfully builds my project: - task: DotNetCoreCLI@2 displayName: 'Build ...
Read more >
A Guide to Missing Publish Directory – Write it Down - IntelliTect
Finally, it uses the publish task to push the built artifacts as a pipeline artifact. Upon running this pipeline, the “Dotnet Publish” step...
Read more >
Untitled
... bigquery golang insert · pack years of smoking calculator ... what did braddock use as motivation to help win his boxing matches...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found