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.

Dot Net Core Wild Card Paths Ignore

See original GitHub issue

I recently upgraded a VSTS task group from 0.* to 1.* for dot net core restore, build, test, and publish tasks. My repository has a mix of dotnet core and dotnet 4.6 projects. previously i could exclude the 4.6 projects with the slug **/*.csproj;-:**/My46Project.csproj.

When upgrading to the 1.* build task the dot net core task fail to find my .csproj files and my build fails.

Any suggestions on how I can exclude the “legacy” 4.6 project while still using the upgraded VSTS tasks?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
dasithscommented, Apr 11, 2019

I think this worked for me

projects: |
         '**/*.csproj'
         '**/*.Tests.csproj'
2reactions
irontobycommented, Feb 23, 2021

I had to omit the single quotes in order to use variable substitution, e.g:

variables:
  basedir: 'MyCorp.MyProject/**'
  buildProjects: |
    $(basedir)/*.csproj
    !$(basedir)/*.SkipMe.csproj

steps:
- task: DotNetCoreCLI@2
  displayName: 'dotnet build'
  inputs:
    command: 'build'
    projects: '$(buildProjects)'
Read more comments on GitHub >

github_iconTop Results From Across the Web

Asp.Net Routing: How do I ignore multiple wildcard routes?
There are two possible solutions here. Add a constraint to the ignore route to make sure that only requests that should be ignored...
Read more >
Support for wild cards and conditional expressions in YAML ...
Wild cards can be used when specifying inclusion and exclusion branches for CI or PR triggers in a pipeline YAML file. However, they...
Read more >
Narrowing the focus with analysis scope
Wildcard patterns. While the sonar.sources and sonar.tests parameters take simple paths, most of the parameters discussed below use path-matching ...
Read more >
Routing | Documentation - ServiceStack Docs
NET 6+ JsonApiClient that's pre-configured to use /api fallback by default: ... Another good use-case for when to use wildcard routes.
Read more >
How to exclude/ignore hidden files and directories in a ...
The -path option runs checks a pattern against the entire path string. * is a wildcard, / is a directory separator, . is...
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