我跟着引导波纹管运行一个简单的C#
在我的Ubuntu箱控制台程序,一切顺利。 (我试图使用本地运行一切.Net Core
没有任何使用Mono
!)
该指南: https://github.com/dotnet/core/blob/master/samples/RaspberryPiInstructions.md
但是,当我做了同样的,试图运行的ASP.Net web application
(由Visual Studio生成的非常基本的和简单的模板),我得到这个错误:
root@dotnet:/dotnet/aspnetcore/PublishOutput# /dotnet/dotnet WebApplication1.dll
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.ComponentModel.Primitives, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Microsoft.Extensions.FileProviders.PhysicalFileProvider.CreateFileWatcher(String root)
at Microsoft.AspNetCore.Hosting.Internal.HostingEnvironmentExtensions.Initialize(IHostingEnvironment hostingEnvironment, String applicationName, String contentRootPath, WebHostOptions options)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildHostingServices()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at WebApplication1.Program.Main(String[] args)
Aborted (core dumped)
能有人帮我解决这一点,在我的RPi3 本地运行ASP.Net应用程序 ?
PS我不认为这是很重要的,但我在工作的Docker
容器。