try
{
var myFont = new Font( "Arial", 10 );
}
catch( Exception ex )
{
var err = $"[{ex.GetType().Name}] {ex.Message}\r\n{ex.StackTrace}";
}
/*
err = [PlatformNotSupportedException] System.Drawing is not supported on this platform.
at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style)
at FunctionApp1.Function1.HttpStart(HttpRequestMessage req, DurableOrchestrationClient starter, ILogger log)
*/
同一代码块在.NET Core控制台应用程序中可以正常工作。 Azure持久功能有何不同?我在Windows机器上运行Visual Studio 2017
我想念一些简单的事情吗?