14
votes

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?

1

1 Answers

13
votes

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.