Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error MSB3073: The command exited with code 3

When I try build the solution created in Visual Studio 2013 in Visual Studio 2015,

I got the follow error:

"18>C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1250,5): error MSB3073: The command ""%CommonProgramFiles(x86)%\microsoft shared\TextTemplating\12.0\TextTransform.exe" -a !!build!true "C:\Users\b3bi\Documents\Visual Studio 2015\Projects\SKNL\trunk\GDP\My Project\AssemblyInfo.tt"" exited with code 3."

The file in this error shows is:

<PropertyGroup>
    <PreBuildEventDependsOn></PreBuildEventDependsOn>
  </PropertyGroup>
  <Target
      Name="PreBuildEvent"
      Condition="'$(PreBuildEvent)'!=''"
      DependsOnTargets="$(PreBuildEventDependsOn)">

    **<Exec WorkingDirectory="$(OutDir)" Command="$(PreBuildEvent)" />**

  </Target>

Someone knows what is the problem?

like image 715
user3153918 Avatar asked May 13 '16 18:05

user3153918


People also ask

What is error MSB3073?

targets(153,5): error MSB3073: :VCEnd" exited with code -1. This works with any both Visual Studio 2015 and 2019. EDIT: The reason for this is that VisualStudio IDE will interpret lines in the output as Viorel describes below. Note that if you run this in a bat file "echo %errorlevel%" will of course give 0 as output.

Has exited with code 3?

The error"exit with code 3" means that the system cannot find the specified path.


1 Answers

The path is wrong. In my case the WiX version was updated in the files. But I had not changed the name (the version number) in the code, thus leading to the path error - which is reffered to as "code 3".

The answer is therefore to edit the path in the pre-build event command line (Project Settings -> Pre-Build Event), so that it is correct.

visual-studio-2013 visual-studio-2015

like image 175
ToFo Avatar answered Sep 20 '22 15:09

ToFo