.targets file for Package using only VS2013

I am currently creating a new build machine for VS2013 and .NET 4.5. I did NOT install any of the previous versions of visual studio. I have an msbuild step that I am trying to execute using / target: package. This is not possible if nothing is installed with this error:

MSB4057: The target "Package" does not exist in the project.

Is there something I can do to fix this without installing the old version of visual studio?

EDIT: I can find files that I am missing, but I don’t want to know, I’m interested in what the solution is, because I don’t have these files and you don’t want to install them, therefore, not only installed older versions of the visual studio.

EDIT: I am trying to package the csproj file, which is a web deployment application on the Internet.

+4
source share
1 answer

For VS2013 you need to do it a little differently ...

  • If you do not want VS to install Build Tools 2013 on the collector
  • Create a publishing profile (publish the context menu to VS) called say Release
  • The command line is as follows.

    msbuild / p: DeployOnBuild = True / p: DeployTarget = Package / p: PublishProfile = Release

+2
source

Source: https://habr.com/ru/post/1526973/


All Articles