msbuild Package

dsalodki's Avatar


28 Nov, 2015 06:40 PM

I go to VM & launch in cmd the same command:
msbuild WiseLabs.WeekPlan/WiseLabs.WeekPlan.csproj /t:Package / /p:PackageAsSingleFile=True
It is OK, but as you can see build failed

The target "MvcBuildViews" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets (843,131)" does not exist in the project, and will be ignored.
Project "C:\projects\weekplan\WiseLabs.WeekPlan\WiseLabs.WeekPlan.csproj" on node 1 (Package target(s)).
C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(617,5): error : The OutputPath property is not set for project 'WiseLabs.WeekPlan.csproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='UI Tests' Platform='Any CPU'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project.

  1. 1 Posted by dsalodki on 28 Nov, 2015 06:42 PM

    dsalodki's Avatar

    was specified for Configuration='UI Tests' Platform='Any CPU'

  2. 2 Posted by dsalodki on 28 Nov, 2015 07:13 PM

    dsalodki's Avatar


  3. Support Staff 3 Posted by Feodor Fitsner on 28 Nov, 2015 07:21 PM

    Feodor Fitsner's Avatar

    Most probably Any CPU is incorrect platform for the project. Usually, Any CPU (with space in the name) is defined on solution level and translates to AnyCPU (without the space) for the project.

    Specify platform in the command line:

    msbuild WiseLabs.WeekPlan/WiseLabs.WeekPlan.csproj /t:Package / /p:PackageAsSingleFile=True /p:Platform=AnyCPU
  4. 4 Posted by dsalodki on 28 Nov, 2015 08:03 PM

    dsalodki's Avatar

    You absolutely correct

  5. dsalodki closed this discussion on 28 Nov, 2015 09:03 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac