We are having problems compiling the solution with MSBuild. The line is not executed randomly at the stage of linking resources within the "AL" task, which is executed by the "AL.exe" linker.
ALINK : error AL1019: Metadata failure while creating assembly
The build log shows the following thread of execution.
4>Target "GenerateSatelliteAssemblies" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\source\MyProject.csproj" (target "CreateSatelliteAssemblies" depends on it): 4>Building target "GenerateSatelliteAssemblies" completely. 4>Output file "obj\Debug\de\MyProject.dll" does not exist. 4>Task "MakeDir" 4>Done executing task "MakeDir". 4>Task "AL" 4> C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\AL.exe /culture:de /out:obj\Debug\de\MyProject.resources.dll /template:obj\Debug\MyProject.dll /embed:obj\Debug\MyProject.SomeResource.de.resources 4> Microsoft (R) Assembly Linker version 14.0.0081.0 4> Copyright (C) Microsoft Corporation. All rights reserved. 4> 4>Done executing task "AL". 4>Done building target "GenerateSatelliteAssemblies" in project "MyProject.csproj". 4>Target "GenerateSatelliteAssemblies" in file "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\source\MyProject.csproj" (target "CreateSatelliteAssemblies" depends on it): 4>Building target "GenerateSatelliteAssemblies" completely. 4>Output file "obj\Debug\en\MyProject.resources.dll" does not exist. 4>Task "MakeDir" 4>Done executing task "MakeDir". 4>Task "AL" 4> C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\AL.exe /culture:en /out:obj\Debug\en\MyProject.resources.dll /template:obj\Debug\MyProject.dll /embed:obj\Debug\MyProject.SomeResource.en.resources 4> Microsoft (R) Assembly Linker version 14.0.0081.0 4> Copyright (C) Microsoft Corporation. All rights reserved. 4> 4>ALINK : error AL1019: Metadata failure while creating assembly -- The volume for a file has been externally altered so that the opened file is no longer valid. 4> The command exited with code 1. 4>Done executing task "AL" -- FAILED. 4>Done building target "GenerateSatelliteAssemblies" in project "MyProject.csproj" -- FAILED.
It is completely incomprehensible to me what is meant by error code AL1019. The MSDN error code also failed.
source share