Michael,
This might be unrelated to your question, but since you are using
protection tools for your .NET applications, you may want to take a
look of my DeProtector sample with full source code before shipping
ypur products. It explains the mechanims howl whole assembly encryption
is failed to protect intellectual properties. Theis simple DeProtector
defeats all current protection tools on the market, whether it's
anti-debug or not.
http://www.remotesoft.com/deprotector
Huihong
michael.lang@xquisoft.com wrote:[color=blue]
> I am using PostBuild events in a C# project to run some tasks, but only
> when in release configuration mode. The build events run perfectly as
> expected when run. The problem comes when I save the project, close
> VS, and reopen VS and the project.
>
> When I build again, i get a post-build event error. So I open the
> event to look at it. Guess what, it is not the post-build event i
> saved. Instead all the carriage returns are replaced with 
.
> and line feeds with 
. This is proper formatting for saving to
> xml format from what I can tell. However, visual studio should parse
> that format into the orginal format when the project opens.
>
> What can I do? Is it too late to get a service pack for VS2003 now
> that Visual Studio 2005 is out?
>
> here is a partial of my orginal post-build event. I left out a bunch
> of calls to xcopy release files around.
>
>
> IF NOT $(ConfigurationName) == Release GOTO end
>
> call "C:\Program Files\XHEO\CodeVeil\v1.0\cve.exe" /project
> $(ProjectDir)$(TargetName).cvp
>
> :end
> echo Finished Post Build Event
>
> I use the same post-build event text for all my projects in the
> solution. That's why I use variables. I have a separate "cvp" file
> for each project.
>
> I tried hardcoding paths and putting them in an external batch file
> that I called in the post-build event. But to call that just in
> release mode I still needed the IF statement, and thus multiple lines.
> This still has the same formatting issue.
>
> Anyone have a workaround? Anyone know if this is fixed in VS2005?
>
> Michael Lang[/color]