MSBuild fails when subject name in App manifest file has ST attribute and special character in CN. Validation error. error C00CE169: #13567
-
Command failed with error MSBuildError: 12:6>D:\abcapp\windows\x64\Release\ABCAPP\AppxManifest.xml : error APPX0501: Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 13, Column 57, Reason: 'C=US, ST=Texas, L=Kerrville, O=ABCD, INC., CN=ABCD, INC.' violates pattern constraint of '(CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID.(0|[1-9][0-9])(.(0|[1-9][0-9]))+))=(([^,+="<>#;])+|".")(, ((CN|L|O|OU|E|C|S|STREET|T|G|I|SN|DC|SERIALNUMBER|Description|PostalCode|POBox|Phone|X21Address|dnQualifier|(OID.(0|[1-9][0-9])(.(0|[1-9][0-9]))+))=(([^,+="<>#;])+|".")))*'. The attribute 'Publisher' with value 'C=US, ST=Texas, L=Kerrville, O=ABCD, INC., CN=ABCD, INC.' failed to parse. [D:\abccd\windows\ABCAPP\ABCAPP.vcxproj] Subject name in my certificate is C=US, ST=Texas, L=Kerrville, O=ABCD, INC., CN=ABCD, INC. , where O and CN has comma in it .And ST is also having validation error. It is expecting S. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I signed my code. This is what I did for my package manifest file. So the subject name of the certificate is like this: |
Beta Was this translation helpful? Give feedback.
I signed my code. This is what I did for my package manifest file. So the subject name of the certificate is like this:
CN=ABCD, INC. , O=ABCD, INC., L=Kerrville, ST=Texas, C=US
In Package.manifest file I added like this :
Publisher="CN="ABCD, INC.", O="ABCD, INC.", L=Kerrville, S=Texas, C=US"
I wrapped the attributes having comma in quotes and escaped them . I aslo changed ST to S in package.manifest file. This worked. Hence closing it.