diff --git a/Sharpmake.Generators/FastBuild/Bff.cs b/Sharpmake.Generators/FastBuild/Bff.cs index 2c09b6058..8031f19b1 100644 --- a/Sharpmake.Generators/FastBuild/Bff.cs +++ b/Sharpmake.Generators/FastBuild/Bff.cs @@ -558,7 +558,7 @@ List skipFiles { if (isLastSubConfig) // post-build steps on the last subconfig { - if (isOutputTypeExe || isOutputTypeAppleApp || conf.ExecuteTargetCopy) + if (isOutputTypeExeOrDllOrAppleApp || conf.ExecuteTargetCopy) { if (conf.CopyDependenciesBuildStep != null) throw new NotImplementedException("CopyDependenciesBuildStep are not supported with FastBuild"); diff --git a/Sharpmake.Generators/VisualStudio/Vcxproj.cs b/Sharpmake.Generators/VisualStudio/Vcxproj.cs index 5078f1cda..8ef689f88 100644 --- a/Sharpmake.Generators/VisualStudio/Vcxproj.cs +++ b/Sharpmake.Generators/VisualStudio/Vcxproj.cs @@ -1901,7 +1901,11 @@ IList skipFiles if (conf.IsFastBuild) // copies handled in bff continue; - if (conf.Output != Project.Configuration.OutputType.Exe && !conf.ExecuteTargetCopy) + bool isOutputTypeExe = conf.Output == Project.Configuration.OutputType.Exe; + bool isOutputTypeDll = conf.Output == Project.Configuration.OutputType.Dll; + bool isOutputTypeExeOrDll = isOutputTypeExe || isOutputTypeDll; + + if (!isOutputTypeExeOrDll && !conf.ExecuteTargetCopy) continue; var copies = ProjectOptionsGenerator.ConvertPostBuildCopiesToRelative(conf, context.ProjectDirectory);