• proton_lynx@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    1 year ago

    Documentation is the worst offender. I remember one time that running dotnet restore and later running another command with --no-restore flag wouldn’t work, but running the last command without the --no-restore flag would. Creating a sane CI/CD pipeline for C# apps is a PITA.

    • Lucky@programming.dev
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      1 year ago

      I’ve never had an issue with the dotnet CLI, including the commands you’re talking about. Their documentation is a bit scattered at times but for the most part they have examples on everything and walk through most scenarios.

      I’m not a Microsoft employee either, just a c# dev of 10 years.

    • Lmaydev@programming.dev
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      edit-2
      1 year ago

      I do a lot of work with c# CI/CD and doing what you said absolutely does work.

      Most of my scripts are

      dotnet restore
      dotnet build --no-restore
      dotnet test --no-build
      dotnet publish --no-build