Last post Jun 11, 2015 02:03 AM by Angie xu - MSFT
Jun 03, 2015 10:24 AM|curtiszarger|LINK
I am moving this discussion from the MSBuild forum (and before that Build and Release Management) as I was directed to find someone more expert in "website" solutions.
I am using a publishprofile with a website project. The problem is that when I execute the build, the InitialTargets from the profile are found, but the DefaultTargets are ignored.
The environment I'm using to build is:
- Build template = TfvcTemplate.12.xaml
- Build Definition: Project to Build = $/DevWeb1/WebSiteTemplate1/WebSite1.Web/website.publishproj
Configurations = Any CPU/TeamBuild
- MSBuild arguments = /p:PublishProfile=B /p:DeployOnBuild=true /p:OutputPath=bin\ /p:VisualStudioVersion=12.0 /p:AspnetMergePath="C:\Program Files
(x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools"
I have placed the Web Site project on OneDrive (http://1drv.ms/1KMsxlx).
Thanks for any help.
Jun 11, 2015 02:03 AM|Angie xu - MSFT|LINK
Welcome to asp.net forum.
The problem is that when I execute the build, the InitialTargets from the profile are found, but the DefaultTargets are ignored.
For this DefaultTargets attribute in MSBuild, it is optional, the default target or targets to be the entry point of the build if no target has been specified. Multiple targets are semi-colon (;) delimited.
If no default target is specified in either the DefaultTargets attribute or the MSBuild command line, the engine executes the first target in the project file after the Import elements have been evaluated.
Here are some suggestions for you: