.net core Dotnet运行时存储:Crossgen can';找不到系统。运行时4.2.2.0
我正在尝试为我的应用程序构建运行时存储,并针对目标运行时进行了优化。但是,它无法解析System.Runtime 4.2.2.0依赖项 我的清单文件的内容如下:.net core Dotnet运行时存储:Crossgen can';找不到系统。运行时4.2.2.0,.net-core,.net-core-3.1,.net Core,.net Core 3.1,我正在尝试为我的应用程序构建运行时存储,并针对目标运行时进行了优化。但是,它无法解析System.Runtime 4.2.2.0依赖项 我的清单文件的内容如下: 命令如下: dotnet商店--清单./store\u breaked.manifest--输出./store\u breaked\u工件--框架netcoreapp3.1--运行时ubuntu.18.04-x64 输出: Copyright (C) Microsoft Corporation. All rights reserve
命令如下:
dotnet商店--清单./store\u breaked.manifest--输出./store\u breaked\u工件--框架netcoreapp3.1--运行时ubuntu.18.04-x64
输出:
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 543.01 ms for /mnt/c/Dev/xxxxx/store_broken.manifest.
Restore completed in 202.77 ms for /mnt/c/Dev/xxxxx/store_broken.manifest.
Native image /tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Runtime.dll generated successfully.
Native image /tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.IO.dll generated successfully.
Error: Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
Error compiling /home/olegk/.nuget/packages/automapper/9.0.0/lib/netstandard2.0/AutoMapper.dll: Could not find or load a specific file. (0x80131621)
Error: compilation failed for "/home/olegk/.nuget/packages/automapper/9.0.0/lib/netstandard2.0/AutoMapper.dll" (0x80131621)
/usr/share/dotnet/sdk/3.1.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(148,5): error MSB3073: The command "/tmp/3lf1fntj.wem/Optimize/netcoreapp/crossgen -nologo -readytorun -in "/home/olegk/.nuget/packages/automapper/9.0.0/lib/netstandard2.0/AutoMapper.dll" -out "/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/AutoMapper.dll" -jitpath "/home/olegk/.nuget/packages/microsoft.netcore.app.runtime.linux-x64/3.1.0/runtimes/linux-x64/native/libclrjit.so" -platform_assemblies_paths "/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimeref:/tmp/3lf1fntj.wem/Optimize/netcoreapp"" exited with code 33. [/mnt/c/Dev/xxxxx/store_broken.manifest]
Native image /tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Reflection.dll generated successfully.
Successfully generated perfmap for native assembly '/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.IO.dll'.
Successfully generated perfmap for native assembly '/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Runtime.dll'.
Native image /tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Reflection.Primitives.dll generated successfully.
Successfully generated perfmap for native assembly '/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Reflection.dll'.
Successfully generated perfmap for native assembly '/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Reflection.Primitives.dll'.
Native image /tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Text.Encoding.dll generated successfully.
Native image /tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Threading.Tasks.dll generated successfully.
Successfully generated perfmap for native assembly '/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Text.Encoding.dll'.
Native image /tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Private.Uri.dll generated successfully.
Successfully generated perfmap for native assembly '/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Threading.Tasks.dll'.
Successfully generated perfmap for native assembly '/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Private.Uri.dll'.
Native image /tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Reflection.Emit.dll generated successfully.
Successfully generated perfmap for native assembly '/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Reflection.Emit.dll'.
Native image /tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Reflection.Emit.ILGeneration.dll generated successfully.
Successfully generated perfmap for native assembly '/tmp/3lf1fntj.wem/AutoMapper_9.0.0/runtimopt/System.Reflection.Emit.ILGeneration.dll'.
Dotnet信息:
.NET Core SDK (reflecting any global.json):
Version: 3.1.100
Commit: cd82f021f4
Runtime Environment:
OS Name: ubuntu
OS Version: 18.04
OS Platform: Linux
RID: ubuntu.18.04-x64
Base Path: /usr/share/dotnet/sdk/3.1.100/
Host (useful for support):
Version: 3.1.0
Commit: 157910edee
.NET Core SDKs installed:
3.1.100 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
我希望有人能向我解释发生了什么,为什么它会寻找System.Runtime的确切版本,它在Nuget中甚至不存在,而不是4.3,它是下一个匹配的版本
我能做些什么使它工作吗