StreamLine PostBuild Event

If you add the List&Label NuGet Package to a project, this code at the end of this post is added to the PostBuild Event.



This could be easily replaced with a single call to a script:


$(SolutionDir)packagescombit.ListLabel20.20.004
"$(SolutionDir)packagescombit.ListLabel20.20.004
"$(SolutionDir)packagescombit.ListLabel20.20.004ToolsPostBuild.bat $(PlatformTarget) $(TargetDir)
$(PlatformTarget)
$(SolutionDir)packagescombit.ListLabel20.20.004

This is how it looks for LL20:

 
if "$(PlatformTarget)" == "AnyCPU" (

if not exist “$(TargetDir)” md “$(TargetDir)”

xcopy /s /y "$(SolutionDir)packagescombit.ListLabel20.20.004Redistribution*.*" "$(TargetDir)"

)

if “$(PlatformTarget)” == “x86” (

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncm??20.dll” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncmll20??.dll” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncmll20??.llx” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncmll20??.lng” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncmls20??.lng” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistribution*.chm” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistribution*.ltpl” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncombit.ListLabel20.Export.x86.dll” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004RedistributionDocumentFormat.OpenXml.dll” “$(TargetDir)”

)

if “$(PlatformTarget)” == “x64” (

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncx??20.dll” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncxll20??.dll” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncxll20??.llx” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncxll20??.lng” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncxls20??.lng” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistribution*.chm” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistribution*.ltpl” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004Redistributioncombit.ListLabel20.Export.x64.dll” “$(TargetDir)”

xcopy /s /y “$(SolutionDir)packagescombit.ListLabel20.20.004RedistributionDocumentFormat.OpenXml.dll” “$(TargetDir)”

)

Promoted to “Planned” state