我有一個包含幾個WCF客戶端的PCL。下面是project.json:asp.net核心1.1 WCF客戶端導致整個應用程序崩潰
"dependencies": {
"NETStandard.Library": "1.6.1",
"Newtonsoft.Json": "9.0.1",
"System.ComponentModel.Annotations": "4.3.0",
"System.Net.Http": "4.3.0",
"System.Reflection": "4.3.0",
"System.ServiceModel.NetTcp": "4.3.0",
"System.ServiceModel.Primitives": "4.3.0"
},
"frameworks": {
"netstandard1.4": {}
}
所有正想細跟asp.net核心1.0.1,但在我的asp.net核心項目升級的一切,我的WCF客戶端發出的所有呼叫失敗,一個可怕的錯誤:
An unhandled exception of type 'System.ExecutionEngineException' occurred in System.Private.CoreLib.ni.dll
對我的asp.net核心應用的project.json是這樣的:
{
"dependencies": {
"Microsoft.AspNetCore.Diagnostics": "1.1.0",
"Microsoft.AspNetCore.Mvc": "1.1.0",
"Microsoft.AspNetCore.Razor.Tools": {
"version": "1.1.0-preview4-final",
"type": "build"
},
"Microsoft.AspNetCore.Routing": "1.1.0",
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0",
"Microsoft.AspNetCore.Server.Kestrel": "1.1.0",
"Microsoft.AspNetCore.StaticFiles": "1.1.0",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "1.1.0",
"Microsoft.Extensions.Configuration.Json": "1.1.0",
"Microsoft.Extensions.Logging": "1.1.0",
"Microsoft.Extensions.Logging.Console": "1.1.0",
"Microsoft.Extensions.Logging.Debug": "1.1.0",
"Microsoft.Extensions.Options.ConfigurationExtensions": "1.1.0",
"Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.1.0"
},
"tools": {
"BundlerMinifier.Core": "2.2.306",
"Microsoft.AspNetCore.Razor.Tools": "1.1.0-preview4-final",
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.1.0-preview4-final"
},
"frameworks": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.1.0"
},
"MySharedProject": {
"target": "project"
}
},
"imports": [
"netstandard"
]
}
},
}
,如果我離開一切不變,只是改變版本1.0.1的Microsoft.NETCore.App
EV一切工作正常。我在VS輸出窗口中看到的最後一件事是調用加載System.Xml.XmlDocument
包。然後它只是崩潰。