Cannot specify multiple .csproj paths in dotnet pack task
See original GitHub issueTask: .NET Core (Preview) Version: 2.* (preview) Command: pack
Using multiple values in Path to csproj or nuspec file(s) to pack
, delimited by ;
fails with ##[error]No files matched the search pattern.
This value works:
src\Empactis.Data.Querying\Empactis.Data.Querying.csproj
This doesn’t:
src\Empactis.Data.Querying\Empactis.Data.Querying.csproj;src\Empactis.Data.Querying.ElasticLinq\Empactis.Data.Querying.ElasticLinq.csproj
I have tried many variations including usage of wildcards and negative patterns as specified in the help text:
Pattern to search for csproj or nuspec files to pack.
You can separate multiple patterns with a semicolon, and you can make a pattern negative by prefixing it with ‘-:’. Example: *.csproj;-:*.Tests.csproj
The same field with the same values in the “NuGet pack” task type works fine.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:10 (6 by maintainers)
Top GitHub Comments
@pjquirk You’re right, the new library we use doesn’t support semicolons for as delimiters. A new line is the delimiter the new library expects.
@tjrobinson the pattern you should have given is
Will make sure to update the help text accordingly; Thanks for reporting this.
Thanks for reporting this issue, the dotnet task should support semicolons as separators just like the NuGet task does. We have identified the bug and are working on a fix.