Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 4.33 average. Display Modes
  #1  
Old 11-20-2004, 08:11 PM
fkish fkish is online now
Registered User
 
Join Date: 06-26-2003
Posts: 11
.net - There is an invalid character ...

Hi,

I have a C# solution I'm building and it looks like the post build event is giving me the error "There is an invalid character in the given encoding." (in the csproj). This post build bat is required for the rest of the sln to compile. And the "error" will be in each of the csproj's.

VS.Net works fine with this and the postbuild bat is ok. I believe another user mentioned (along time ago when I searched on the above) that the csproj is not truly XML...that is looks like XML but VS is ok with errors that causes other XML parsing programs to call errors.

Does any one know how to prevent the above?

Thanks,
Frank
Reply With Quote
  #2  
Old 11-22-2004, 09:34 AM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
It sounds like you don't get this error when building with the VS.Net IDE, but you do with Visual Build Professional? Have you invoked the command-line used by Visual Build Pro to determine whether it really is Visual Build Pro or the command-line compiler? To do so, just check the box "Display the compiler command-line that is used", then execute the displayed command-line call manually (noting the output).

If the error occurs when using the command-line compiler, the issue is related to the Microsoft compiler, otherwise please either post or send the following info to support@kinook.com so we can trouble-shoot:
- bld file
- csproj file that causes the problem
- portion of the log indicating the error
Reply With Quote
  #3  
Old 11-23-2004, 03:04 PM
kevina kevina is online now
Registered User
 
Join Date: 03-26-2003
Posts: 825
And now for the rest of the story (so the thread isn't left hanging):

The situation that was experienced here was that a symbol had been entered in the postbuild line of the .csproj file in the IDE, which made the resulting xml invalid, and the xml parser in Visual Build Professional was detecting this invalid xml and treating it as an error.

In this case the invalid character was a non-standard "-" symbol, which could safely (and appropriately) be replaced with a standard - character and all was well.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 06:32 AM.


Copyright © 1999-2023 Kinook Software, Inc.