Zoomzoom
Zoomzoom

Reputation: 1052

.Net assembly copyright text shows question mark in diamond instead of (c) copyright character. How to fix?

y solution contains a Visual Studio extension. It includes two projects whose assemblies are signed at build time, which is managed by a centralized build server.

When I right-click on the server-built assemblies for these two projects and view the "Details" tab, the copy right text shows: Copyright (?) CompanyName 2012. The "(?)" is a question mark inside a black diamond. It is supposed to be a copyright character, ©.

The other server-built assemblies in the solution do not have this issue. Also, the same exact assemblies built locally in the bin/Debug folders do not have this issue.

Why is the server-built version different? Appreciate any suggestion. Thank you!

Upvotes: 1

Views: 1205

Answers (1)

Scott Wegner
Scott Wegner

Reputation: 7493

It sounds like the compiler used on the server isn't interpreting non-ASCII characters in the source code correctly. Visual Studio 2010's compiler, csc.exe, has a /codepage parameter that you can use to specify the encoding. This is also available in MSBuild as CodePage.

Upvotes: 1

Related Questions