Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Exclude files on command line invocation. #95

Open
AGBrown opened this issue Sep 8, 2016 · 1 comment
Open

Exclude files on command line invocation. #95

AGBrown opened this issue Sep 8, 2016 · 1 comment

Comments

@AGBrown
Copy link

AGBrown commented Sep 8, 2016

Is there a way to exclude individual files from linking?

As an example use case:

  • GitVersionTask injects an assemblyinfo into the final assembly
  • This is registered at the <project\obj\release\gitversiontaskassemblyinfo.g.cs path.
  • When GitLink builds it then warns that these files are missing (which is expected, and not a problem).

It would be nice to exclude them from the linking process with GitLink.

This is an issue as they then show up in the MSBuild warning list on build logs, which is confusing when scanning the build console output for issues. It also therefore pollutes the output from CI servers with warnings that are not relevant.

edit: not in the warning list, but it shows up as important messages which say "missing file" and look like warnings

@GeertvanHorrik
Copy link
Contributor

I think you can ignore projects, not files. The reason for this is probably because pdbstr will use a variable for the urls. However, I think that ignoring .g.cs files would be a good idea by default anyway.

Interested in doing a PR for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants