runtime icon indicating copy to clipboard operation
runtime copied to clipboard

msbuild Publish fails with Error: Invalid directory size.

Open vsfeedback opened this issue 3 years ago • 7 comments

This issue has been moved from a ticket on Developer Community.


[severity:I'm unable to use this version] [regression] [worked-in:16 to 17] We are switching from VS 2019/.NET 5 to VS 2022/.NET 6 in our projects. Unfortunately, we now get an exception with the publish target. The build target works fine and the application works normally. When publishing with the following pubxml

Release
x64
..\bin\Release\publish\
FileSystem
net6.0-windows
win-x64
true
False
True
False

you end up in the exception

... 3>--out:"obj\x64\Release\win-x64\R2R\ActiproSoftware.Shared.Wpf.dll" 3>C:\Program Files (x86)\Actipro Software\WPF-Controls\v14.1.0601\Assemblies\ActiproSoftware.Shared.Wpf.dll 3> 3>Error: Invalid directory size. 3>System.BadImageFormatException: Invalid directory size. 3> at System.Reflection.PortableExecutable.PEReader.ReadDebugDirectory() 3> at Internal.TypeSystem.Ecma.PortablePdbSymbolReader.TryOpenEmbedded(PEReader peReader, MetadataStringDecoder stringDecoder) 3> at ILCompiler.CompilerTypeSystemContext.AddModule(String filePath, String expectedSimpleName, Boolean useForBinding, ModuleData oldModuleData) 3> at ILCompiler.CompilerTypeSystemContext.GetOrAddModuleFromPath(String filePath, Boolean useForBinding) 3> at ILCompiler.CompilerTypeSystemContext.GetModuleFromPath(String filePath) 3> at ILCompiler.Program.Run(String[] args) 3> at ILCompiler.Program.Main(String[] args) 3>C:\Users\wolfgang.nuget\packages\microsoft.netcore.app.crossgen2.win-x64\6.0.6\tools\crossgen2.exe --targetos:windows 3>--targetarch:x64 3>-O ...

This old third-party DLL from 2014 is included in the project as a reference

  C:\Program Files (x86)\Actipro Software\WPF-Controls\v14.1.0601\Assemblies\ActiproSoftware.Shared.Wpf.dll

Original Comments

Wolfgang Kordts on 7/9/2022, 01:48 AM:

(private comment, text removed)

Feedback Bot on 7/10/2022, 07:20 PM:

(private comment, text removed)

Wenwen Fan [MSFT] on 7/12/2022, 08:48 PM:

(private comment, text removed)

Wolfgang Kordts on 7/14/2022, 00:47 PM:

(private comment, text removed)

Wenwen Fan [MSFT] on 7/12/2022, 08:48 PM:

(private comment, text removed)

Wenwen Fan [MSFT] on 7/14/2022, 07:51 PM:

(private comment, text removed)


Original Solutions

(no solutions)

vsfeedback avatar Jul 19 '22 02:07 vsfeedback

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

the move has really changed the description ;-) I hope you got the attached zip file to reproduce it.

wolfkor avatar Jul 19 '22 19:07 wolfkor

Hi @wolfkor, unfortunately your zip was lost somewhere in the move. Do you think you could post it again here? Thanks!

ivdiazsa avatar Jul 25 '22 17:07 ivdiazsa

R2RProblem.zip

wolfkor avatar Jul 26 '22 16:07 wolfkor

The Debug Directory size in the ActiproSoftware.Shared.Wpf.dll binary is corrupted (which might be caused by running some old obfuscation tool). You can fix it by opening the file in a hex editor and changing the byte at offset 0x12c from 0x96 to 0x1c.

AntonLapounov avatar Aug 04 '22 19:08 AntonLapounov

That's not really a solution. It is a third-party dll installed on many build agents. And why does it work with .NET 5?

wolfkor avatar Aug 05 '22 07:08 wolfkor

By default, .NET 5 used a different ReadyToRun compiler, which would produce the diagnostic message below and ignore the invalid debug directory:

IMAGE_DIRECTORY_ENTRY_DEBUG size (150) should be a multiple of 28
Native image obj\x64\Debug\net5.0-windows\win-x64\R2R\ActiproSoftware.Shared.Wpf.dll generated successfully.

Here is the compiler code that performed the check: https://github.com/dotnet/runtime/blob/4aadfea70082ae23e6c54a449268341e9429434e/src/coreclr/src/zap/zapheaders.cpp#L586-L588 We might want to do the same in the new compiler. Given that .NET 6 was released in November 2021 and this is the first report of the issue (as far as I know), only few old assemblies may be affected. Here is the list of your options:

  • Exclude the assembly from ReadyToRun compilation by adding the following lines to the project file:
<ItemGroup>
  <PublishReadyToRunExclude Include="ActiproSoftware.Shared.Wpf.dll" />
</ItemGroup>
  • Fix the invalid byte in the assembly as mentioned above.
  • Upgrade the assembly to any recent version. I verified that recent versions have a correct debug directory.
  • Continue using .NET 5 and wait until the issue is fixed in .NET 7.

Note that using an invalid PE file may crash other tools that read the debug directory, such as debuggers and profilers. For instance, link.exe /dump /headers ActiproSoftware.Shared.Wpf.dll crashes the linker when it tries to dump the content of the debug directory.

AntonLapounov avatar Aug 06 '22 20:08 AntonLapounov

Going back to .NET 5 or waiting for .NET 7 isn't currently an option. So I tried to use the PublishReadyToRunExclude variant. Unfortunately this doesn't work because I get the invalid directory size error now with self-built DLLs that use ActiproSoftware DLLs. The callstack is a little bit different and probably helps.

2022-08-10T13:57:43.0832829Z          --out:"obj\x64\Release\win-x64\R2R\MID.Innovator.ApplicationFramework.dll"
2022-08-10T13:57:43.0833910Z          C:\Agent\_work\8\s\bin\Release\win-x64\MID.Innovator.ApplicationFramework.dll
2022-08-10T13:57:43.0834416Z          
2022-08-10T13:57:43.7715791Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error : Error: Invalid directory size.
2022-08-10T13:57:43.7718107Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error : Error: Invalid directory size. [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7839354Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error : System.BadImageFormatException: Invalid directory size.
2022-08-10T13:57:43.7842052Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error : System.BadImageFormatException: Invalid directory size. [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7853397Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at System.Reflection.PortableExecutable.PEReader.ReadDebugDirectory()
2022-08-10T13:57:43.7857990Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at System.Reflection.PortableExecutable.PEReader.ReadDebugDirectory() [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7866650Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.PortablePdbSymbolReader.TryOpenEmbedded(PEReader peReader, MetadataStringDecoder stringDecoder)
2022-08-10T13:57:43.7869279Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.PortablePdbSymbolReader.TryOpenEmbedded(PEReader peReader, MetadataStringDecoder stringDecoder) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7876725Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.CompilerTypeSystemContext.AddModule(String filePath, String expectedSimpleName, Boolean useForBinding, ModuleData oldModuleData)
2022-08-10T13:57:43.7879470Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.CompilerTypeSystemContext.AddModule(String filePath, String expectedSimpleName, Boolean useForBinding, ModuleData oldModuleData) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7885324Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.CompilerTypeSystemContext.GetModuleForSimpleName(String simpleName, Boolean throwIfNotFound)
2022-08-10T13:57:43.7887788Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.CompilerTypeSystemContext.GetModuleForSimpleName(String simpleName, Boolean throwIfNotFound) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7893279Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.CompilerTypeSystemContext.ResolveAssembly(AssemblyName name, Boolean throwIfNotFound)
2022-08-10T13:57:43.7895707Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.CompilerTypeSystemContext.ResolveAssembly(AssemblyName name, Boolean throwIfNotFound) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7901225Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaModule.ResolveAssemblyReference(AssemblyReferenceHandle handle)
2022-08-10T13:57:43.7904016Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaModule.ResolveAssemblyReference(AssemblyReferenceHandle handle) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7922144Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaModule.EcmaObjectLookupHashtable.CreateValueFromKey(EntityHandle handle)
2022-08-10T13:57:43.7924679Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaModule.EcmaObjectLookupHashtable.CreateValueFromKey(EntityHandle handle) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7930862Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey key)
2022-08-10T13:57:43.7933258Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey key) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7938696Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaModule.GetObject(EntityHandle handle, NotFoundBehavior notFoundBehavior)
2022-08-10T13:57:43.7941540Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaModule.GetObject(EntityHandle handle, NotFoundBehavior notFoundBehavior) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7947649Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaModule.ResolveTypeReference(TypeReferenceHandle handle)
2022-08-10T13:57:43.7950047Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaModule.ResolveTypeReference(TypeReferenceHandle handle) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7955525Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaModule.EcmaObjectLookupHashtable.CreateValueFromKey(EntityHandle handle)
2022-08-10T13:57:43.7958329Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaModule.EcmaObjectLookupHashtable.CreateValueFromKey(EntityHandle handle) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7964721Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey key)
2022-08-10T13:57:43.7967135Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey key) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7972604Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaModule.GetObject(EntityHandle handle, NotFoundBehavior notFoundBehavior)
2022-08-10T13:57:43.7975051Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaModule.GetObject(EntityHandle handle, NotFoundBehavior notFoundBehavior) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7980851Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ResolveHandle(EntityHandle handle)
2022-08-10T13:57:43.7983596Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ResolveHandle(EntityHandle handle) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7989084Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseTypeImpl(SignatureTypeCode typeCode)
2022-08-10T13:57:43.7991593Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseTypeImpl(SignatureTypeCode typeCode) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.7997020Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType(SignatureTypeCode typeCode)
2022-08-10T13:57:43.7999372Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType(SignatureTypeCode typeCode) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8004994Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType()
2022-08-10T13:57:43.8007183Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType() [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8012458Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseTypeImpl(SignatureTypeCode typeCode)
2022-08-10T13:57:43.8014855Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseTypeImpl(SignatureTypeCode typeCode) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8020268Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType(SignatureTypeCode typeCode)
2022-08-10T13:57:43.8022612Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType(SignatureTypeCode typeCode) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8027752Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType()
2022-08-10T13:57:43.8029937Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType() [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8036567Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseMethodSignatureImpl(Boolean skipEmbeddedSignatureData)
2022-08-10T13:57:43.8039247Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseMethodSignatureImpl(Boolean skipEmbeddedSignatureData) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8045380Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseMethodSignatureInternal(Boolean skipEmbeddedSignatureData)
2022-08-10T13:57:43.8047998Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseMethodSignatureInternal(Boolean skipEmbeddedSignatureData) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8053756Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseMethodSignature()
2022-08-10T13:57:43.8056051Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseMethodSignature() [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8061476Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaMethod.InitializeSignature()
2022-08-10T13:57:43.8063963Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaMethod.InitializeSignature() [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8071973Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at Internal.TypeSystem.Ecma.EcmaMethod.get_Signature()
2022-08-10T13:57:43.8074171Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at Internal.TypeSystem.Ecma.EcmaMethod.get_Signature() [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8079451Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.ReadyToRunRootProvider.CheckCanGenerateMethod(MethodDesc method)
2022-08-10T13:57:43.8081753Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.ReadyToRunRootProvider.CheckCanGenerateMethod(MethodDesc method) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8087223Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.ReadyToRunRootProvider.RootMethods(TypeDesc type, String reason, IRootingServiceProvider rootProvider)
2022-08-10T13:57:43.8089864Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.ReadyToRunRootProvider.RootMethods(TypeDesc type, String reason, IRootingServiceProvider rootProvider) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8095393Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.ReadyToRunRootProvider.AddCompilationRoots(IRootingServiceProvider rootProvider)
2022-08-10T13:57:43.8097841Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.ReadyToRunRootProvider.AddCompilationRoots(IRootingServiceProvider rootProvider) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8104723Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.Compilation..ctor(DependencyAnalyzerBase`1 dependencyGraph, NodeFactory nodeFactory, IEnumerable`1 compilationRoots, ILProvider ilProvider, DevirtualizationManager devirtualizationManager, IEnumerable`1 modulesBeingInstrumented, Logger logger, InstructionSetSupport instructionSetSupport)
2022-08-10T13:57:43.8108847Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.Compilation..ctor(DependencyAnalyzerBase`1 dependencyGraph, NodeFactory nodeFactory, IEnumerable`1 compilationRoots, ILProvider ilProvider, DevirtualizationManager devirtualizationManager, IEnumerable`1 modulesBeingInstrumented, Logger logger, InstructionSetSupport instructionSetSupport) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8119219Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.ReadyToRunCodegenCompilation..ctor(DependencyAnalyzerBase`1 dependencyGraph, NodeFactory nodeFactory, IEnumerable`1 roots, ILProvider ilProvider, Logger logger, DevirtualizationManager devirtualizationManager, IEnumerable`1 inputFiles, String compositeRootPath, InstructionSetSupport instructionSetSupport, Boolean resilient, Boolean generateMapFile, Boolean generateMapCsvFile, Boolean generatePdbFile, Func`2 printReproInstructions, String pdbPath, Boolean generatePerfMapFile, String perfMapPath, Int32 perfMapFormatVersion, Boolean generateProfileFile, Int32 parallelism, ProfileDataManager profileData, ReadyToRunMethodLayoutAlgorithm methodLayoutAlgorithm, ReadyToRunFileLayoutAlgorithm fileLayoutAlgorithm, Int32 customPESectionAlignment, Boolean verifyTypeAndFieldLayout)
2022-08-10T13:57:43.8126769Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.ReadyToRunCodegenCompilation..ctor(DependencyAnalyzerBase`1 dependencyGraph, NodeFactory nodeFactory, IEnumerable`1 roots, ILProvider ilProvider, Logger logger, DevirtualizationManager devirtualizationManager, IEnumerable`1 inputFiles, String compositeRootPath, InstructionSetSupport instructionSetSupport, Boolean resilient, Boolean generateMapFile, Boolean generateMapCsvFile, Boolean generatePdbFile, Func`2 printReproInstructions, String pdbPath, Boolean generatePerfMapFile, String perfMapPath, Int32 perfMapFormatVersion, Boolean generateProfileFile, Int32 parallelism, ProfileDataManager profileData, ReadyToRunMethodLayoutAlgorithm methodLayoutAlgorithm, ReadyToRunFileLayoutAlgorithm fileLayoutAlgorithm, Int32 customPESectionAlignment, Boolean verifyTypeAndFieldLayout) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8134481Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.ReadyToRunCodegenCompilationBuilder.ToCompilation()
2022-08-10T13:57:43.8136899Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.ReadyToRunCodegenCompilationBuilder.ToCompilation() [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8143281Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.Program.RunSingleCompilation(Dictionary`2 inFilePaths, InstructionSetSupport instructionSetSupport, String compositeRootPath, Dictionary`2 unrootedInputFilePaths, HashSet`1 versionBubbleModulesHash, CompilerTypeSystemContext typeSystemContext)
2022-08-10T13:57:43.8146697Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.Program.RunSingleCompilation(Dictionary`2 inFilePaths, InstructionSetSupport instructionSetSupport, String compositeRootPath, Dictionary`2 unrootedInputFilePaths, HashSet`1 versionBubbleModulesHash, CompilerTypeSystemContext typeSystemContext) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8152323Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.Program.Run(String[] args)
2022-08-10T13:57:43.8154744Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.Program.Run(String[] args) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.8159770Z ##[error]C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): Error :    at ILCompiler.Program.Main(String[] args)
2022-08-10T13:57:43.8161856Z      1>C:\Program Files\dotnet\sdk\6.0.302\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.CrossGen.targets(463,5): error :    at ILCompiler.Program.Main(String[] args) [C:\Agent\_work\8\s\InnoUrl\InnoUrl.csproj]
2022-08-10T13:57:43.9589971Z          Der Buildvorgang wird fortgesetzt, da ContinueOnError in der RunReadyToRunCompiler-Aufgabe auf "ErrorAndContinue" festgelegt ist.
2

We plan to upgrade ActiproSoftware but it will take longer due to massive changes since 2014. Until then I have no reasonable solution.

wolfkor avatar Aug 10 '22 17:08 wolfkor

I hope you seriously consider fixing this in .NET 6 as well.

wolfkor avatar Aug 12 '22 23:08 wolfkor