You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
I am trying to create a single executable file targeting x86 windows, from a .net core 2.0 project. The command that I execute on x86 Native Tools Command Prompt for VS 2017 is :
Microsoft (R) Build Engine version 15.6.82.30579 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 54,81 ms for C:\Work\Server\DataSoft.ServiceIntegration\DataSoft.ServiceIntegration.csproj.
DataSoft.ServiceIntegration -> C:\Work\Server\DataSoft.ServiceIntegration\bin\x86\Release\netcoreapp2.0\win7-x86\DataSoft.ServiceIntegration.dll
Generating native code
EXEC : error : [TEMPORARY EXCEPTION MESSAGE] ClassLoadGeneral: System.Reflection.Emit.AssemblyBuilder, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [C:\Work\Server\DataSoft.ServiceIntegration\DataSoft.ServiceIntegration.csproj]
Internal.TypeSystem.TypeSystemException+TypeLoadException: [TEMPORARY EXCEPTION MESSAGE] ClassLoadGeneral: System.Reflection.Emit.AssemblyBuilder, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
at Internal.TypeSystem.ThrowHelper.ThrowTypeLoadException(ExceptionStringID id, String typeName, String assemblyName) in C:\Work\CoreRT\src\Common\src\TypeSystem\Common\ThrowHelper.cs:line 18
at Internal.TypeSystem.Ecma.EcmaModule.GetType(String nameSpace, String name, Boolean throwIfNotFound) in C:\Work\CoreRT\src\Common\src\TypeSystem\Ecma\EcmaModule.cs:line 296
at Internal.TypeSystem.Ecma.EcmaModule.GetType(String nameSpace, String name, Boolean throwIfNotFound) in C:\Work\CoreRT\src\Common\src\TypeSystem\Ecma\EcmaModule.cs:line 299
at Internal.TypeSystem.Ecma.EcmaModule.ResolveTypeReference(TypeReferenceHandle handle) in C:\Work\CoreRT\src\Common\src\TypeSystem\Ecma\EcmaModule.cs:line 455
at Internal.TypeSystem.Ecma.EcmaModule.EcmaObjectLookupHashtable.CreateValueFromKey(EntityHandle handle) in C:\Work\CoreRT\src\Common\src\TypeSystem\Ecma\EcmaModule.cs:line 117
at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey key) in C:\Work\CoreRT\src\Common\src\TypeSystem\Common\Utilities\LockFreeReaderHashtable.cs:line 417
at Internal.TypeSystem.Ecma.EcmaModule.GetObject(EntityHandle handle) in C:\Work\CoreRT\src\Common\src\TypeSystem\Ecma\EcmaModule.cs:line 327
at Internal.TypeSystem.Ecma.EcmaModule.GetType(EntityHandle handle) in C:\Work\CoreRT\src\Common\src\TypeSystem\Ecma\EcmaModule.cs:line 303
at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType(SignatureTypeCode typeCode) in C:\Work\CoreRT\src\Common\src\TypeSystem\Ecma\EcmaSignatureParser.cs:line 73
at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseFieldSignature() in C:\Work\CoreRT\src\Common\src\TypeSystem\Ecma\EcmaSignatureParser.cs:line 237
at Internal.TypeSystem.Ecma.EcmaField.InitializeFieldType() in C:\Work\CoreRT\src\Common\src\TypeSystem\Ecma\EcmaField.cs:line 102
at Internal.TypeSystem.MetadataFieldLayoutAlgorithm.ComputeInstanceLayout(DefType defType, InstanceLayoutKind layoutKind) in C:\Work\CoreRT\src\Common\src\TypeSystem\Common\MetadataFieldLayoutAlgorithm.cs:line 37
at Internal.TypeSystem.DefType.ComputeInstanceLayout(InstanceLayoutKind layoutKind) in C:\Work\CoreRT\src\Common\src\TypeSystem\Common\DefType.FieldLayout.cs:line 304
at ILCompiler.DependencyAnalysis.EETypeNode.CheckCanGenerateEEType(NodeFactory factory, TypeDesc type) in C:\Work\CoreRT\src\ILCompiler.Compiler\src\Compiler\DependencyAnalysis\EETypeNode.cs:line 1098
at ILCompiler.DependencyAnalysis.NodeFactory.<CreateNodeCaches>b__36_1(TypeDesc type) in C:\Work\CoreRT\src\ILCompiler.Compiler\src\Compiler\DependencyAnalysis\NodeFactory.cs:line 198
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at ILCompiler.DependencyAnalysis.CodeBasedDependencyAlgorithm.AddDependenciesDueToReflectability(DependencyList& dependencies, NodeFactory factory, MethodDesc method) in C:\Work\CoreRT\src\ILCompiler.Compiler\src\Compiler\DependencyAnalysis\CodeBasedDependencyAlgorithm.cs:line 21
at ILCompiler.DependencyAnalysis.CodeBasedDependencyAlgorithm.AddDependenciesDueToMethodCodePresence(DependencyList& dependencies, NodeFactory factory, MethodDesc method) in C:\Work\CoreRT\src\ILCompiler.Compiler\src\Compiler\DependencyAnalysis\CodeBasedDependencyAlgorithm.cs:line 75
at ILCompiler.ILScanner.ComputeDependencyNodeDependencies(List`1 obj) in C:\Work\CoreRT\src\ILCompiler.Compiler\src\Compiler\ILScanner.cs:line 73
at ILCompiler.DependencyAnalysisFramework.DependencyAnalyzer`2.ComputeMarkedNodes() in C:\Work\CoreRT\src\ILCompiler.DependencyAnalysisFramework\src\DependencyAnalyzer.cs:line 262
at ILCompiler.ILScanner.ILCompiler.IILScanner.Scan() in C:\Work\CoreRT\src\ILCompiler.Compiler\src\Compiler\ILScanner.cs:line 83
at ILCompiler.Program.Run(String[] args) in C:\Work\CoreRT\src\ILCompiler\src\Program.cs:line 408
at ILCompiler.Program.Main(String[] args) in C:\Work\CoreRT\src\ILCompiler\src\Program.cs:line 619
C:\Work\CoreRT\bin\Windows_NT.x64.Release\build\Microsoft.NETCore.Native.targets(171,5): error MSB3073: The command ""C:\Work\CoreRT\bin\Windows_NT.x64.Release\tools\ilc" @"obj\x86\Release\netcoreapp2.0\win7-x86\native\DataSoft.ServiceIntegration.ilc.rsp"" exited with code 1. [C:\Work\Server\DataSoft.ServiceIntegration\DataSoft.ServiceIntegration.csproj]
I am trying to create a single executable file targeting x86 windows, from a .net core 2.0 project. The command that I execute on x86 Native Tools Command Prompt for VS 2017 is :
Here is the output I get :
This is my csproj file :
I have tried every solution I have found online with no luck so far. Can someone please point me in the right direction ?
Thanks in advance.
The text was updated successfully, but these errors were encountered: