You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The commented out "ExcludeFoldersFromDeployment" and "ExcludeFilesFromDeployment" properties fail. It has to do with supplying multiple file types. If you use a single entry, like the uncommented 'ExcludeFoldersFromDeployment' statement it works OK.
The text was updated successfully, but these errors were encountered:
`gulp.task("package-web", function (cb) {
console.log("[Create Web Deploy package]");
gulp.src(paths.expenseWebSitePath + "/Deployment/*.xml")
.pipe(gulp.dest(paths.expenseWebDeployPath));
var msbuild = new _msbuild(cb);
msbuild.sourcePath = paths.expenseWebSiteProject;
msbuild.toolsVersion = config.vsToolsVersion;
msbuild.configuration = config.environment.buildConfiguration;
//targets
msbuild.overrideParams.push('/target:Clean;Build;Package');
msbuild.overrideParams.push('/p:VisualStudioVersion=' + config.vsVersion);
msbuild.overrideParams.push('/p:DeployOnBuild=false');
msbuild.overrideParams.push('/p:DeployTarget=PipelinePreDeployCopyAllFilestoOneFolder');
msbuild.overrideParams.push('/p:DeployIISAppPath=' + config.iisAppPaths.web);
msbuild.overrideParams.push('/p:AutoParameterizationWebConfigConnectionStrings=false');
msbuild.overrideParams.push('/p:PackageLocation=' + paths.expenseWebDeployPath);
//msbuild.overrideParams.push('/p:ExcludeFilesFromDeployment=".;.js;.json;.csproj;packages.config;paylocity-grey.png;Web.*.config"');
//msbuild.overrideParams.push('/p:ExcludeFoldersFromDeployment=bower_components;Claims;Controllers;Framework;Initialization;Models;Properties;ViewModels;src');
msbuild.overrideParams.push('/p:ExcludeFoldersFromDeployment=bower_components');
msbuild.overrideParams.push('/p:FilesToIncludeForPublish=AllFilesInProjectFolder');
msbuild.overrideParams.push('/verbosity:minimal');
msbuild.package();
});`
The commented out "ExcludeFoldersFromDeployment" and "ExcludeFilesFromDeployment" properties fail. It has to do with supplying multiple file types. If you use a single entry, like the uncommented 'ExcludeFoldersFromDeployment' statement it works OK.
The text was updated successfully, but these errors were encountered: