Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude file and folder properties only accept one file or folder #26

Open
jsnplank opened this issue Dec 4, 2019 · 0 comments
Open

Comments

@jsnplank
Copy link

jsnplank commented Dec 4, 2019

`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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant