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?
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.
The error"exit with code 3" means that the system cannot find the specified path.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With