Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 793 Bytes

KO0002.md

File metadata and controls

39 lines (29 loc) · 793 Bytes

KO0002: Content types need to have unique identifiers

Property Value
Id KO0002
Category Optimizely
Severity Warning
Code fix Yes

Example

Code with Diagnostic

[ContentType(GUID = "00000000-0000-0000-0000-000000000000")]
public class Block1 {
}

[ContentType(GUID = "00000000-0000-0000-0000-000000000000")]
public class Block2 {
}

Code with Fix

[ContentType(GUID = "11111111-1111-1111-1111-111111111111")]
public class Block1 {
}

[ContentType(GUID = "00000000-0000-0000-0000-000000000000")]
public class Block2 {
}

Remarks

This should work fine between files in the same project, not sure about different projects yet.