Using Visual Studio and MSBuild, I would like to be able to exclude all .js files and include all .min.js in my deployments.
I know this can be achieved using the file properties in visual studio, but this is not an option since there are too many files.
I have the following PublishProfile in my Visual Studio project. Everything works fine except for <ItemGroup>
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <WebPublishMethod>FileSystem</WebPublishMethod> <LastUsedBuildConfiguration>Delpoy-Static</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform> <SiteUrlToLaunchAfterPublish /> <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> <ExcludeApp_Data>True</ExcludeApp_Data> <publishUrl>\\***\wwwroot\***.com\static</publishUrl> <DeleteExistingFiles>False</DeleteExistingFiles> </PropertyGroup> <ItemGroup> <Deploy Exclude="**\*.js" Include="**\*.min.js" /> </ItemGroup> </Project>
Can this be done using PublishProfile ? If so, how?
visual-studio build deployment msbuild msdeploy
Blowsie Aug 27 '14 at 10:48 2014-08-27 10:48
source share