Publish web projects with msbuild -
i error message:
(setgeneratemanifests target) -> c:\windows\microsoft.net\framework64\v4.0.30319\microsoft.common.targets(4351,5): error : publish valid 'windows application' or 'console application' project types. [e:\myproj\myproj.csproj]
running command line:
c:\windows\microsoft.net\framework\v4.0.30319\msbuild e:\myproj\myproj.csproj /p:visualstudioversion=11.0 /t:resolvereferences;publish /p:deployonbuild=true /p:configuration=release-dev /p:publishprofile=myapp-dev-web /p:deployonbuild=true /p:password=mypass /p:visualstudioversion=11.0 /l:filelogger,microsoft.build.engine;logfile=e:\temp\web-build.txt;verbosity=diagnostic
before run command line succeeds:
c:\windows\microsoft.net\framework\v4.0.30319\msbuild e:\mysln.sln /p:buildprojectreferences=true /p:configuration=release-dev
msbuild cannot used deploy web projects.
the publish feature in msbuild seems used database projects.
the solution use msdeploy deploy web projects.
Comments
Post a Comment