2nd step in Managed C++ (.NET 2.0 beta 2)

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I add an app.config in my C++ project
it's not automatically renamed & added to the output directory...

any workaround?
 
Lloyd Dupont said:
I add an app.config in my C++ project
it's not automatically renamed & added to the output directory...

any workaround?

A post-build step?

David
 
Indeed....

However, for some reason, the build event keeps failing.

I set something like that:
copy $(ProjectDir)app.config $(TargetPath).config

in my Build Events/Post Build Event/Command line
and VS told me one of the tool exited with an error (while building)

and if I put it in the Command Line of the CUstom Build Step it just do
nothing...

:/ :(
 
Lloyd Dupont said:
Indeed....

However, for some reason, the build event keeps failing.

I set something like that:
copy $(ProjectDir)app.config $(TargetPath).config

Look in your build log to see what's wrong, but this works for me:

copy /Y $(ProjectDir)app.config $(OutDir)\$(ProjectName).exe.config


where

$(OutDir)\$(ProjectName).exe

is whatever is in the Configuration\Linker\General\Output File

David
 
thanks, I'll try that!

David Browne said:
Look in your build log to see what's wrong, but this works for me:

copy /Y $(ProjectDir)app.config $(OutDir)\$(ProjectName).exe.config


where

$(OutDir)\$(ProjectName).exe

is whatever is in the Configuration\Linker\General\Output File

David
 
Back
Top