Using Visual Studio 2015 update 1, I am experimenting with a problem (which did not happen with Visual Studio 2015) in the Visual C ++ CLR Class Library Project (C ++ / CLI) when I run the AL.EXE command in Post- Build Event: AL Application .EXE crashed and the system returned error code -1073741819 (0xC0000005).
Here is the contents of the event after the build:
sn -Rca "$(SolutionDir)bin\$(Configuration)\$(Platform)\$(TargetName)$(TargetExt)" dwo Resgen "$(ProjectDir)Recursos.es-ES.resx" "$(IntDir)$(ProjectName).Recursos.es-ES.resources" Al.exe /t:lib /embed:"$(IntDir)$(ProjectName).Recursos.es-ES.resources",Recursos.es-ES.resources /version:15.0.0.0 /culture:es-ES /out:"$(OutDir)es-ES\$(TargetName).resources.dll" /keyname:dwo
And here the event viewer is turned off, showing the AL.exe application error every time I run it from the event after the build (compiling my project).

The command line is correct, as you can see if I am executing it from the console:

Therefore, I am sure that the problem is not that on the command line.
I also tried to specify the path to another AL.EXE command, because in Visual Studio 2015 Update 1, the path is used:
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools
So, I tried using
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
but still not working.
You can reproduce the problem of creating a new Visual C ++ CLR class library and adding a simple AL.exe call to the Post-build event.
Do you know how to solve this problem?
EDIT: I also tried to do this using the AfterBuild Target object as follows:
<Target Name="AfterBuild"> <Exec Command="Al.exe /t:lib /embed:"$(IntDir)$(ProjectName).Recursos.es-ES.resources",Recursos.es-ES.resources /version:15.0.0.0 /culture:es-ES /out:"$(OutDir)es-ES\$(TargetName).resources.dll" /keyname:dwo"/> </Target>
And the result is the same: Visual Studio tries to run the AL.EXE command, but it resets the return -1073741819.