sharpliner / sharpliner

Use C# instead of YAML to define your Azure DevOps pipelines
https://www.nuget.org/packages/Sharpliner/
MIT License
285 stars 21 forks source link

Referencing a Sharpliner library project directly does not build #292

Closed premun closed 1 month ago

premun commented 2 months ago

Problem

In our end-to-end NuGet tests, we test creation of a Sharpliner pipeline library and referencing its NuGet in another project. This works fine. What does not work is having a project referenced directly.

We get this instead:

C:\.tools\.nuget\packages\sharpliner\1.5.9\build\Sharpliner.targets(20,5): error MSB4018: The "PublishDefinitions" task failed unexpectedly. [C:\SolutionShell\src\Microsoft.SolutionCenter.Isv.Pipelines\Microsoft.SolutionCenter.Isv.Pipelines.csproj]
C:\.tools\.nuget\packages\sharpliner\1.5.9\build\Sharpliner.targets(20,5): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly '[YOUR ASSEMBLY NAME], Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file
specified.

Goal