ho un progetto che ha un evento di post-generazione che xcopies una DLL per una certa directory:MSBuild'ing un progetto con un post-generazione evento xcopy
xcopy "$ (TargetDir) $ (TargetName) .dll "" $ (SolutionDir) .. \ UdpLocationService \ bin \ Plugin \ "/ d/y xcopy" $ (TargetDir) $ (TargetName) .pdb "" $ (SolutionDir) .. \ UdpLocationService \ bin \ Plugin \ "/ d/y
Tuttavia, ho CruiseControl.NET impostato come un server di build e MSBuild non riesce a costruire quel progetto a causa di questo evento xcopy post-generazione:
MSB3073: il comando "xcopy" C: \ Build \ Services \ Windows \ VehicleServer \ Plugins \ Payload \ bin \ Debug \ Payload.dll "" Non definito .. \ UdpLocationService \ bin \ Plugins \ "/ d/y xcopy "C: \ Build \ Services \ Windows \ VehicleServer \ Plugins \ Payload \ bin \ Debug \ Payload.pdb" "Non definito .. \ UdpLocationService \ bin \ Plugin \"/d/y "terminato con codice 4. in Microsoft.Common.targets (3397, 13)
Qualche suggerimento per farlo? Grazie,
Justin
Grazie, che ha fissato il primo errore, ma non la seconda: MSB3073: Il comando "xcopy "C: \ costruire \ Services \ Windows \ VehicleServer \ Plugins Payload \ bin \ Debug \ Payload.pdb"" \ * Non definito * .. \ UdpLocationService \ bin \ Plugin \ "/ d/y" terminato con codice 4. in Microsoft.Common.targets (3397, 13) – Justin
Devo anche aggiungere che non vi sono AfterBuild o exec nel file csproj.Ecco come appare: xcopy "$ (TargetDir) $ (TargetName) .dll" "$ (SolutionDir) .. \ UdpLocationService \ bin \ Plugins \"/d/y PostBuildEvent> xcopy "$ (TargetDir) $ (TargetName) .pdb" "$ (SolutionDir) .. \ UdpLocationService \ bin \ Plugins \"/d/y PostBuildEvent> PropertyGroup> –
Justin
Quale versione di Visual Studio stai usando? –