1

i am trying to build my project and getting this error:

Error   148 The command "copy "C:\Users\agordon\Documents\Visual Studio 2008\Projects\SubversionRepository\Internal Application\eFormsSystem\eFormsApp\Debug.config" "C:\Users\agordon\Documents\Visual Studio 2008\Projects\SubversionRepository\Internal Application\eFormsSystem\eFormsApp\bin\Debug\eFormsApp.exe.config"
copy "C:\Users\agordon\Documents\Visual Studio 2008\Projects\SubversionRepository\Internal Application\eFormsSystem\eFormsApp\Debug.config" "C:\Users\agordon\Documents\Visual Studio 2008\Projects\SubversionRepository\Internal Application\eFormsSystem\eFormsApp\App.config"" exited with code 1.   C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets    3397    13  eFormsApp

here is the compiler generated code for this copying process:

 <Target
        Name="PostBuildEvent"
        Condition=
        "
            '$(PostBuildEvent)'!=''
            and
            (
                '$(RunPostBuildEvent)'!='OnOutputUpdated'
                or
                '$(_AssemblyTimestampBeforeCompile)'!='$(_AssemblyTimestampAfterCompile)'
            )
        "
        DependsOnTargets="$(PostBuildEventDependsOn)">

            <Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)" />

    </Target>

the error points to this line:

<Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)

what am i doing wrong?

Alex Gordon
  • 57,446
  • 287
  • 670
  • 1,062

1 Answers1

1

For me, the source config file did not exist (I had custom build profile). Once I copied that config file from another known good one and modified it for my environment, everything started working.

Dan
  • 1,729
  • 18
  • 11