File Header Text - with multiple file headers

Hi all,

we use ReSharper's File Header Text option to insert license headers into our code files. Our file templates contain a simple copyright header, Cleanup Code is configured to replace those with the full license headers.

The problem is that we have different projects with different licenses in one solution. Can ReSharper be made to use different file headers based on the project? I guess not, but I thought I'd ask anyway.

(We currently use multiple solutions with different file headers configured that all contain the same projects, but that's not satisfying at all.)

If not, is there a way to get ReSharper to ignore certain files when replacing file headers (maybe using a pragma or something)? Then, we could manually replace the licenses in some projects without ReSharper interfering.

Best regards,

Fabian

1 comment
Comment actions Permalink

Hello Fabian,

At the moment the File Header setting is configured globally and there's
no way to ignore certain files when replacing file headers (except marking
those files as generated under ReSharper | Options | Code Inspection | Generated
Code). Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi all,

we use ReSharper's File Header Text option to insert license headers
into our code files. Our file templates contain a simple copyright
header, Cleanup Code is configured to replace those with the full
license headers.

The problem is that we have different projects with different licenses
in one solution. Can ReSharper be made to use different file headers
based on the project? I guess not, but I thought I'd ask anyway.

(We currently use multiple solutions with different file headers
configured that all contain the same projects, but that's not
satisfying at all.)

If not, is there a way to get ReSharper to ignore certain files when
replacing file headers (maybe using a pragma or something)? Then, we
could manually replace the licenses in some projects without ReSharper
interfering.

Best regards,
Fabian
---
Original message URL:
http://devnet.jetbrains.net/message/5270511#5270511



0

Please sign in to leave a comment.