Check the post build event settings. On the Assembly Events tab, change the Execute Assembly Event After Assembly event to When the assembly project is updated. Post build events will only be executed when the build assembly is updated.
OR
Use the MSBuild command to create your solution (this is useful for projects with multiple solutions). Create the file "DisableBuildEvents.msbuild" on your PC. DisableBuildEvents.msbuild :
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Target Name="PostBuildEvent"/> <Target Name="PreBuildEvent" /> </Project>
Run MsBuild using the CustomAfterMicrosoftCommonTargets property specified on the command line:
MSBuild.exe YourSolution.sln /t:Build p:CustomAfterMicrosoftCommonTargets="c:\DisableBuildEvents.msbuild"
Note. The value of CustomAfterMicrosoftCommonTargets must be the fully qualified path name.
Ludwo source share