Skip to content

Conversation

@jonpryor
Copy link
Contributor

Gendarme invocation ignores the
Gendarme.Rules.Design.MarkAssemblyWithCLSCompliantRule and
Gendarme.Rules.Design.MarkAssemblyWithComVisibleRule rules because
the PCL profile that Java.Interop.dll targets doesn't provide the
CLSComplientAttribute and ComVislbleAttribute custom attributes,
and so they can't be used.

Commit 782f34a "broke" these ignores by signing Java.Interop.dll,
causing the PublicKeyToken to change. This in turn caused the ignores
to be ignored, which meant Gendarme now reported errors:

This assembly is not decorated with the [CLSCompliant] attribute
This assembly is not decorated with the [ComVisible] attribute.

Fix the PublicKeyToken in the assembly name so that the rules are
properly ignored.

Gendarme invocation ignores the
`Gendarme.Rules.Design.MarkAssemblyWithCLSCompliantRule` and
`Gendarme.Rules.Design.MarkAssemblyWithComVisibleRule` rules because
the PCL profile that `Java.Interop.dll` targets doesn't provide the
`CLSComplientAttribute` and `ComVislbleAttribute` custom attributes,
and so they can't be used.

Commit 782f34a "broke" these ignores by signing `Java.Interop.dll`,
causing the PublicKeyToken to change. This in turn caused the ignores
to be ignored, which meant Gendarme now reported errors:

> This assembly is not decorated with the [CLSCompliant] attribute
> This assembly is not decorated with the [ComVisible] attribute.

Fix the PublicKeyToken in the assembly name so that the rules are
properly ignored.
@jonpryor jonpryor merged commit 4b85cc7 into dotnet:master Jun 23, 2016
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants