Kinook Software Forums

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

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-29-2004, 05:04 PM
dkackman dkackman is online now
Registered User
 
Join Date: 12-12-2003
Posts: 5
Question BUG? VS.NET Step (set base address + build events with quotes)

I am using the VS.NET step to build a solution that contains a bunch of C# projects.

Each of those projects contains a post build event that include quotes. When I select the "Set the base address to random value if not set" option, the build event text get's screwed up if it includes quotation marks.

The build event looks like this before VBP pre-processing:
"$(SolutionDir)DeployDebug.bat" "$(TargetDir)" "$(TargetName)" $(TargetExt)

After VBP's pre-processing it looks like this:
"$(SolutionDir)DeployDebug.bat" "$(TargetDir)" "$(TargetName)" $(TargetExt)

It looks like some XML character escaping is happening here.

We need those quotes becuase the $(*) variable may be paths with spaces.

Is this a known issue and is there a work-around?

don
Reply With Quote
  #2  
Old 01-29-2004, 05:56 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
This is not a known bug, however the two strings you provided (the before and after) are identical. I assume this was a submission typo, could you provide the actual string that seems to be erroneous?

Thanks in advance!

Kevin
Reply With Quote
  #3  
Old 01-29-2004, 06:06 PM
dkackman dkackman is online now
Registered User
 
Join Date: 12-12-2003
Posts: 5
It looks like the message formatting engine un-escaped my escaped characters

What happens is the the second example all of the quotation marks are transposed into XML escaped version of the quote character.

Let's try a couple of ways that will get by the html formatter:
1) ampesrand quot semicolon.
2) & quot ;

So in the second example all of the quotation marks in that string are replaced by the escape string.

(Also, if you select view source for the page and find the HTML representing my original post, you will see the erroneous text as copied directly from VS.NET.)

Last edited by dkackman; 01-29-2004 at 06:18 PM.
Reply With Quote
  #4  
Old 01-29-2004, 06:52 PM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
I was incorrect in saying this was not a known issue. It is, see this post for details: http://www.kinook.com/Forum/showthread.php?threadid=246.

An untested workaround would be to use a Process Files/Replace In File combination to replace all the escaped symbols with the non-standard xml (") that the non-standard parser used in the microsoft compiler requires [in all .csproj and .vbproj files]. This should work, however I can't ensure that any unintended consequences won't occur [specifically that other parts of these 'xml' files don't require an escaped " symbol].

The bottom line is that MS obviously isn't using their own xml parser in their C#/VB.Net file parser (which is what the Make VS.Net action in Visual Build Pro uses!).
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 02:47 PM.


Copyright 1999-2019 Kinook Software, Inc.