Czy mamy coś takiego:VS2010: Czy możemy mieć wiele, jeśli wydarzenie odbywa się po instalacji?
if "Debug"=="$(ConfigurationName)"
(
goto :nocopy
)
else if "Release"=="$(ConfigurationName)"
(
del "$(TargetPath).config"
copy "$(ProjectDir)\App.Release.config" "$(TargetPath).config"
)
else if "ReleaseBeta"=="$(ConfigurationName)"
(
del "$(TargetPath).config"
copy "$(ProjectDir)\App.ReleaseBeta.config" "$(TargetPath).config"
)
else if "ReleaseProduction"=="$(ConfigurationName)"
(
del "$(TargetPath).config"
copy "$(ProjectDir)\App.ReleaseProduction.config" "$(TargetPath).config"
)
:nocopy
ja próbowałem, ale to nie działa. Kod błędu to 255.