Thanks for the tip, Jon, but it doesn't like those characters.
error MSB4025: The project file could not be loaded. Invalid syntax for a decimal numeric entity
reference.
I thought the escape character for an MSBuild file was '%', that's why I tried it. It output a hex
16 character for the sequence %169.
Flomo
> Thanks for the tip, Jon, but it doesn't like those characters.
>
> error MSB4025: The project file could not be loaded. Invalid syntax
> for a decimal numeric entity reference.
Hmm. Odd.
> I thought the escape character for an MSBuild file was '%', that's
> why I tried it. It output a hex
> 16 character for the sequence %169.
Well, the version I gave was just the generic way of doing it in XML -
not MS Build specific.
Have you tried just inserting the copyright sign directly into the file
and saving it in UTF-8?

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Flomo Togba Kwele - 30 May 2007 22:58 GMT
Yes, I did.
AssemblyCopyright="Copyright © Company Name 2007"
error MSB4025: The project file could not be loaded. Invalid character in the given encoding.

Signature
> > Thanks for the tip, Jon, but it doesn't like those characters.
> >
[quoted text clipped - 12 lines]
> Have you tried just inserting the copyright sign directly into the file
> and saving it in UTF-8?
Jon Skeet [C# MVP] - 30 May 2007 23:13 GMT
> Yes, I did.
>
> AssemblyCopyright="Copyright © Company Name 2007"
>
> error MSB4025: The project file could not be loaded. Invalid
> character in the given encoding.
Did you specify the encoding at the start of the file, and are you sure
you saved it *using* that encoding?

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Flomo Togba Kwele - 30 May 2007 23:28 GMT
Yes, it was already there.
<?xml version="1.0" encoding="utf-8"?>
However, the MSBuild file itself was encoded ANSI, not UTF-8. When I changed it and re-ran the
script, no error!
Thanks so much, Jon.

Signature
> > Yes, I did.
> >
[quoted text clipped - 5 lines]
> Did you specify the encoding at the start of the file, and are you sure
> you saved it using that encoding?
Jon Skeet [C# MVP] - 30 May 2007 23:35 GMT
> Yes, it was already there.
> <?xml version="1.0" encoding="utf-8"?>
[quoted text clipped - 3 lines]
>
> Thanks so much, Jon.
No problem. I'm still intrigued as to what's wrong with using the
numeric version though. If I ever get time, I'll have a look - it's
unlikely that I *will* get the time though :(

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too