1

私は自分のプロジェクトをビルドしようとしていますが、このエラーが発生しています:

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

このコピー プロセスのコンパイラ生成コードは次のとおりです。

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

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

    </Target>

エラーは次の行を指しています。

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

私は何を間違っていますか?

4

1 に答える 1

1

私の場合、ソース構成ファイルは存在しませんでした(カスタムビルドプロファイルがありました)。その構成ファイルを別の既知の正常なファイルからコピーし、自分の環境に合わせて変更すると、すべてが機能し始めました。

于 2013-02-11T15:00:29.087 に答える