{"id":86,"date":"2019-02-10T19:20:12","date_gmt":"2019-02-10T11:20:12","guid":{"rendered":"http:\/\/jrblog.mooo.com\/john\/2019\/02\/10\/net-core-faq\/"},"modified":"2019-02-10T19:20:12","modified_gmt":"2019-02-10T11:20:12","slug":"net-core-faq","status":"publish","type":"post","link":"https:\/\/john.pentaidea.com\/?p=86","title":{"rendered":".NET\/.NET.Core\/Powershell FAQ"},"content":{"rendered":"<p><span style=\"font-size: 18.6667px;font-weight: bold;letter-spacing: normal;text-indent: 0px\">PowerShell&nbsp;<\/span><\/p>\n<ul>\n<li><\/li>\n<li>\n<p><span style=\"font-weight: bold\">Create symbolic link from folder to folder.<\/span><\/p>\n<\/li>\n<\/ul>\n<pre><code>move C:\\ProgramData\\docker\\* D:\\ProgramData\\docker\ncmd \/c mklink \/d C:\\ProgramData\\docker D:\\ProgramData\\docker\n\n# \/d for folder\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-weight: bold\">HTTP error 500.30 &#8211; ANCM in-process start failure<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>ANCM == AspNetCoreModule&nbsp;<\/p>\n<\/li>\n<li>\n<p>Issue: Logging to specific log folder permission denied<\/p>\n<\/li>\n<li>\n<p>Solve:<\/p>\n<\/li>\n<ul>\n<li>\n<p>Get issue detail by opening stdoutLogEnabled=&quot;true&quot; in web.config.<\/p>\n<\/li>\n<li>\n<p>Set log folder permission &quot;Read\/Write\/Modify&quot; to local user &quot;IIS_IUSRS&quot;.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/efccd39a7a6b02b1fea249596cb43b03.png\" \/><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<li>\n<p><span style=\"font-size: 10pt;font-weight: bold\">Json config with strong type<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">\u5728<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">&nbsp;<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Consolas, monospace, sans-serif\">Startup.ConfigureServices<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">&nbsp;<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">\u900f\u904e<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">&nbsp;<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Consolas, monospace, sans-serif\">services.Configure&lt;T&gt;()<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">\u4ee5\u5f37\u578b\u5225\u5c0d\u61c9<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">&nbsp;<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Consolas, monospace, sans-serif\">IConfiguration<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">&nbsp;<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">\u5be6\u4f8b\u7684\u65b9\u5f0f\uff0c\u52a0\u5165\u81f3 DI \u5bb9\u5668\uff1a<\/span><\/p>\n<p><span><span style=\"font-size: 10pt;font-style: italic\">Startup.cs<\/span><\/span><\/p>\n<table style=\"border-spacing: 0px;border-collapse: collapse;min-width: 100%\">\n<tr style=\"padding: 0px\">\n<td style=\"text-align: right;width: 130px;padding: 8px\">\n<div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">1<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">2<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">3<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">4<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">5<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">6<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">7<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">8<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">9<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">10<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">11<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">12<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">13<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">14<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">15<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">16<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">17<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">18<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<td style=\"vertical-align: top;width: 802px;padding: 8px\">\n<div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;color: green;, Consolas, monospace, sans-serif\">\/\/ &#8230;<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">public<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">class<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">Startup<\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">{<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">private<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">IConfiguration _config;<\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">public<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">Startup<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">(<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">IConfiguration config<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">)<\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">{<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">_config = config;<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">}<\/span><\/span><\/div>\n<div><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">public<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">void<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">ConfigureServices<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">(<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">IServiceCollection services<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">)<\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">{<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;color: green;, Consolas, monospace, sans-serif\">\/\/ &#8230;<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">services.Configure&lt;Settings&gt;(_config);<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">}<\/span><\/span><\/div>\n<div><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;color: green;, Consolas, monospace, sans-serif\">\/\/ &#8230;<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">}<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">\u4f7f\u7528\u7684 DI \u578b\u5225\u6539\u6210<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">&nbsp;<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Consolas, monospace, sans-serif\">IOptions&lt;T&gt;<\/span><span style=\"letter-spacing: normal;text-indent: 0px;font-size: 10pt;, Arial, sans-serif\">\uff0c\u5982\u4e0b\uff1a<\/span><\/p>\n<p><span style=\"letter-spacing: normal;text-indent: 0px\"><span style=\"font-size: 10pt;, Arial, sans-serif;font-style: italic\">Controllers\\HomeController.cs<\/span><\/span><\/p>\n<table style=\"border-spacing: 0px;border-collapse: collapse;min-width: 100%\">\n<tr style=\"padding: 0px\">\n<td style=\"text-align: right;width: 130px;padding: 8px\">\n<div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">1<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">2<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">3<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">4<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">5<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">6<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">7<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">8<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">9<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">10<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">11<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">12<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">13<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">14<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">15<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">16<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">17<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">18<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">19<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">20<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">21<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">22<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">23<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">24<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">25<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">26<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">27<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">28<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">29<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<td style=\"vertical-align: top;width: 801px;padding: 8px\">\n<div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">using<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">Microsoft.AspNetCore.Mvc;<\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">using<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">Microsoft.Extensions.Configuration;<\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">using<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">Microsoft.Extensions.Options;<\/span><\/div>\n<div><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">namespace<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">MyWebsite.Controllers<\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">{<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">public<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">class<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">HomeController<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">:<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">Controller<\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">{<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">private<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">readonly<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">Settings _settings;<\/span><\/div>\n<div><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">public<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">HomeController<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">(<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">IOptions&lt;Settings&gt; settings<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">)<\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">{<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">_settings = settings.Value;<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">}<\/span><\/span><\/div>\n<div><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">public<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">string<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">Index<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">()<\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">{<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">var<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">defaultCulture = _settings.SupportedCultures[<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">1<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">];<\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">var<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">subProperty1 = _settings.CustomObject.Property.SubProperty1;<\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">var<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">subProperty2 = _settings.CustomObject.Property.SubProperty2;<\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">var<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">subProperty3 = _settings.CustomObject.Property.SubProperty3;<\/span><\/div>\n<div><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">return<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">$&quot;defaultCulture(<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">{defaultCulture.GetType()}<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">):<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">{defaultCulture}<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">\\r\\n&quot;<\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">+<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">$&quot;subProperty1(<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">{subProperty1.GetType()}<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">):<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">{subProperty1}<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">\\r\\n&quot;<\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">+<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">$&quot;subProperty2(<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">{subProperty2.GetType()}<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">):<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">{subProperty2}<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">\\r\\n&quot;<\/span><\/div>\n<div><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">+<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">$&quot;subProperty3(<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">{subProperty3.GetType()}<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">):<\/span> <span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">{subProperty3}<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">\\r\\n&quot;<\/span><span style=\"height: 1.2rem;font-size: 10pt;, Consolas, monospace, sans-serif\">;<\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">}<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">}<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">}<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p><span style=\"letter-spacing: normal;text-indent: 0px\"><span style=\"font-size: 10pt;, Arial, sans-serif\">\u8f38\u51fa\u7d50\u679c\u5982\u4e0b\uff1a<\/span><\/span><\/p>\n<table style=\"border-spacing: 0px;border-collapse: collapse;min-width: 100%\">\n<tr style=\"padding: 0px\">\n<td style=\"text-align: right;width: 130px;padding: 8px\">\n<div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">1<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">2<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">3<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">4<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<td style=\"vertical-align: top;width: 811px;padding: 8px\">\n<div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">defaultCulture(System.String): zh-TW<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">subProperty1(System.Int32): 1<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">subProperty2(System.Boolean): True<\/span><\/span><\/div>\n<div><span style=\"height: 1.2rem\"><span style=\"font-size: 10pt;, Consolas, monospace, sans-serif\">subProperty3(System.String): This is sub property.<\/span><\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<p><span style=\"letter-spacing: normal;text-indent: 0px\"><span style=\"font-size: 10pt;, Arial, sans-serif\">\u9019\u6a23\u5c31\u53ef\u4ee5\u662f\u5f37\u578b\u5225\uff0c\u4e14\u6709\u660e\u78ba\u7684\u578b\u614b\u3002<\/span><\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt;font-weight: bold\">Got 502.3 error when upgrading .Net.Core version<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt\">Error message:<\/span><\/p>\n<p><span style=\"font-size: 10pt\">An assembly specified in the application dependencies manifest (CloudKeyPool.deps.json) was not found:<\/span><\/p>\n<p><span style=\"font-size: 10pt\">package: &apos;Microsoft.ApplicationInsights.AspNetCore&apos;, version: &apos;2.1.1&apos;<\/span><\/p>\n<p><span style=\"font-size: 10pt\">path: &apos;lib\/netstandard1.6\/Microsoft.ApplicationInsights.AspNetCore.dll&apos;<\/span><\/p>\n<p><span style=\"font-size: 10pt\">This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:&nbsp;&nbsp;&nbsp;&nbsp;aspnetcore-store-2.0.0-linux-x64.xml;aspnetcore-store-2.0.0-osx-x64.xml;aspnetcore-store-2.0.0-win7-x64.xml;aspnetcore-store-2.0.0-win7-x86.xml<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 10pt\">Solution: Add the follows into .csproj file.<\/span><\/p>\n<p><span style=\"background: transparent;border: 0px;overflow: visible\"><span style=\"background-color: transparent;font-size: 10pt;, Menlo, Courier, monospace\">&lt;PropertyGroup&gt;<\/span><\/span><\/p>\n<p><span style=\"background: transparent;border: 0px;overflow: visible\"><span style=\"background-color: transparent;font-size: 10pt;, Menlo, Courier, monospace\">&lt;PublishWithAspNetCoreTargetManifest&gt;false&lt;\/PublishWithAspNetCoreTargetManifest&gt;<\/span><\/span><\/p>\n<p><span style=\"background: transparent;border: 0px;overflow: visible\"><span style=\"background-color: transparent;font-size: 10pt;, Menlo, Courier, monospace\">&lt;\/PropertyGroup&gt;<\/span><\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"background: transparent;border: 0px;overflow: visible\"><span style=\"background-color: transparent;font-size: 10pt;, Menlo, Courier, monospace\">Ref:<\/span> <a href=\"https:\/\/github.com\/dotnet\/coreclr\/issues\/13542\">https:\/\/github.com\/dotnet\/coreclr\/issues\/13542<\/a><\/span><\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-size: 10pt;font-weight: bold\">Enable IIS Debug log&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 10pt\">\u7de8\u8f2f&nbsp;<\/span><span style=\"font-size: 10pt;font-style: italic\">web.config<\/span><span style=\"font-size: 10pt\">&nbsp;\u6a94\u6848\u3002&nbsp;\u5c07&nbsp;<\/span><span style=\"font-size: 10pt;font-weight: bold\">stdoutLogEnabled<\/span><span style=\"font-size: 10pt\">&nbsp;\u8a2d\u5b9a\u70ba&nbsp;<\/span><span style=\"direction: ltr;font-size: 10pt;font-family: monospace, monospace;line-height: 19px\">true<\/span><span style=\"font-size: 10pt\">\uff0c\u4e26\u5c07&nbsp;<\/span><span style=\"font-size: 10pt;font-weight: bold\">stdoutLogFile<\/span><span style=\"font-size: 10pt\">&nbsp;\u8def\u5f91\u8b8a\u66f4\u70ba\u6307\u5411 [logs] \u8cc7\u6599\u593e (\u4f8b\u5982&nbsp;<\/span><span style=\"direction: ltr;font-size: 10pt;font-family: monospace, monospace;line-height: 19px\">.\\logs\\stdout<\/span><span style=\"font-size: 10pt\">)\u3002&nbsp;\u8def\u5f91\u4e2d\u7684&nbsp;<\/span><span style=\"direction: ltr;font-size: 10pt;font-family: monospace, monospace;line-height: 19px\">stdout<\/span><span style=\"font-size: 10pt\">&nbsp;\u662f\u8a18\u9304\u6a94\u540d\u7a31\u524d\u7f6e\u8a5e\u3002&nbsp;\u5efa\u7acb\u8a18\u9304\u6a94\u6642\uff0c\u7cfb\u7d71\u6703\u81ea\u52d5\u65b0\u589e\u6642\u9593\u6233\u8a18\u3001\u8655\u7406\u5e8f\u8b58\u5225\u78bc\u53ca\u526f\u6a94\u540d\u3002&nbsp;\u4f7f\u7528&nbsp;<\/span><span style=\"direction: ltr;font-size: 10pt;font-family: monospace, monospace;line-height: 19px\">stdout<\/span><span style=\"font-size: 10pt\">&nbsp;\u4f5c\u70ba\u6a94\u6848\u540d\u7a31\u524d\u7f6e\u8a5e\u6642\uff0c\u4e00\u822c\u8a18\u9304\u6a94\u6703\u547d\u540d\u70ba<\/span><span style=\"font-size: 10pt;font-style: italic\">stdout_20180205184032_5412.log<\/span><span style=\"font-size: 10pt\">\u3002<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 10pt;font-weight: bold\">&nbsp;<\/span><span style=\"font-size: 10pt;font-weight: bold\">Error&nbsp;&nbsp;&nbsp;&nbsp;NETSDK1004&nbsp;&nbsp;&nbsp;&nbsp;Assets file &apos;D:\\{solutionPath}\\obj\\project.assets.json&apos; not found. Run a NuGet package restore to generate this file.<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt\">Tools<\/span> <span style=\"font-size: 10pt\">&gt;<\/span> <span style=\"font-size: 10pt\">NuGet Package Manager<\/span> <span style=\"font-size: 10pt\">&gt;<\/span> <span style=\"font-size: 10pt\">Package Manager Console<\/span> <span style=\"font-size: 10pt\">and run:<\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<pre><code>dotnet restore\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt;font-weight: bold\">&nbsp;How to debug with local NuGet packages<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span>Put *<\/span><span>.nupkg at specific folder, and add this folder into Tools -&gt; Options -&gt; Add a new NuGet source.<\/span><\/p>\n<p><span><img decoding=\"async\" src=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/0065cc6b6c97f58bff280f355847d688.png\" \/><\/span><\/p>\n<\/li>\n<li>\n<p><span>Make the new source checked ONLY (avoid other confusing packages)<\/span><\/p>\n<\/li>\n<li>\n<p><span>Refresh NuGet list.<\/span><\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-size: 10pt;font-weight: bold\">&nbsp;Change Nuget feed\/source posiition<\/span><\/p>\n<\/li>\n<\/ul>\n<pre><code>C:\\Users\\{{UserName}}\\AppData\\Roaming\\NuGet\\NuGet.Config\n\n===&nbsp;NuGet.Config ===\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\n&lt;configuration&gt;\n&nbsp;&nbsp;&lt;packageSources&gt;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;add key=&quot;nuget.org&quot; value=&quot;https:\/\/api.nuget.org\/v3\/index.json&quot; protocolVersion=&quot;3&quot; \/&gt;\n&nbsp; &nbsp; &lt;add key=&quot;{{new-source}}&quot; value=&quot;{{serverLink}}&quot; \/&gt;\n&nbsp;&nbsp;&lt;\/packageSources&gt;\n&lt;\/configuration&gt;\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-weight: bold\">Check the log of windows service<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p>&quot;Computer Management&quot; -&gt; &quot;Event Viewer&quot; -&gt; &quot;Windows Logs&quot; -&gt; &quot;System&quot; -&gt; filter by &quot;Service Control Manager&quot;<\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/78d8e37cb1319da8a13d730bd9405fb0.png\" \/><\/p>\n<\/p>\n<p><span style=\"font-size: 18.6667px;font-weight: bold;letter-spacing: normal;text-indent: 0px\">PowerShell&nbsp;<\/span><\/p>\n<p><span><b><\/b><\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt;font-weight: bold\">Got path not exists<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt\">Error message:<\/span><\/p>\n<p><span style=\"font-size: 13.3333px\">&quot;<\/span><span style=\"font-size: 14px;cursor: text;, monospace !important;letter-spacing: normal;text-indent: 0px\">{path}<\/span> <span style=\"font-size: 14px;cursor: text;, monospace !important;letter-spacing: normal;text-indent: 0px\">No such file or directory<\/span><span style=\"font-size: 13.3333px\">&quot;<\/span><\/p>\n<\/li>\n<li>\n<p>Remove the &quot;&quot; on the path behind `cat` command.&nbsp;<\/p>\n<p>git secrets &#8211;add-provider &#8212; cat .\/folder\/*<\/p>\n<\/li>\n<\/ul>\n<li>\n<p><span style=\"font-size: 10pt;font-weight: bold\">Got path not exists<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"font-size: 10pt\">Error message:<\/span><\/p>\n<\/li>\n<\/ul>\n<ul>\n<li><\/li>\n<\/ul>\n<\/ul>\n<p><span style=\"font-size: 10pt\">#Net #Netcore #Powershell<\/span><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>PowerShell&nbsp;<\/p>\n<\/div>","protected":false},"author":1,"featured_media":1028,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[6,7,14],"class_list":["post-86","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-net","tag-netcore","tag-faq"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>.NET\/.NET.Core\/Powershell FAQ - John&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/john.pentaidea.com\/?p=86\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\".NET\/.NET.Core\/Powershell FAQ - John&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"PowerShell&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/john.pentaidea.com\/?p=86\" \/>\n<meta property=\"og:site_name\" content=\"John&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-10T11:20:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/efccd39a7a6b02b1fea249596cb43b03.png\" \/>\n\t<meta property=\"og:image:width\" content=\"382\" \/>\n\t<meta property=\"og:image:height\" content=\"374\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"jj\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"jj\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=86\",\"url\":\"https:\/\/john.pentaidea.com\/?p=86\",\"name\":\".NET\/.NET.Core\/Powershell FAQ - John&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/john.pentaidea.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/john.pentaidea.com\/?p=86#primaryimage\"},\"image\":{\"@id\":\"https:\/\/john.pentaidea.com\/?p=86#primaryimage\"},\"thumbnailUrl\":\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/efccd39a7a6b02b1fea249596cb43b03.png\",\"datePublished\":\"2019-02-10T11:20:12+00:00\",\"dateModified\":\"2019-02-10T11:20:12+00:00\",\"author\":{\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f\"},\"breadcrumb\":{\"@id\":\"https:\/\/john.pentaidea.com\/?p=86#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/john.pentaidea.com\/?p=86\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=86#primaryimage\",\"url\":\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/efccd39a7a6b02b1fea249596cb43b03.png\",\"contentUrl\":\"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/efccd39a7a6b02b1fea249596cb43b03.png\",\"width\":382,\"height\":374},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=86#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/john.pentaidea.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\".NET\/.NET.Core\/Powershell FAQ\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/john.pentaidea.com\/#website\",\"url\":\"https:\/\/john.pentaidea.com\/\",\"name\":\"John's Blog\",\"description\":\"\u4e16\u754c\u56e0\u601d\u7dd2\u800c\u8907\u96dc, \u4eba\u56e0\u5922\u60f3\u800c\u5049\u5927\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/john.pentaidea.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f\",\"name\":\"jj\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g\",\"caption\":\"jj\"},\"sameAs\":[\"https:\/\/john.pentaidea.com\"],\"url\":\"https:\/\/john.pentaidea.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":".NET\/.NET.Core\/Powershell FAQ - John&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/john.pentaidea.com\/?p=86","og_locale":"en_US","og_type":"article","og_title":".NET\/.NET.Core\/Powershell FAQ - John&#039;s Blog","og_description":"PowerShell&nbsp;","og_url":"https:\/\/john.pentaidea.com\/?p=86","og_site_name":"John&#039;s Blog","article_published_time":"2019-02-10T11:20:12+00:00","og_image":[{"width":382,"height":374,"url":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/efccd39a7a6b02b1fea249596cb43b03.png","type":"image\/png"}],"author":"jj","twitter_card":"summary_large_image","twitter_misc":{"Written by":"jj","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/john.pentaidea.com\/?p=86","url":"https:\/\/john.pentaidea.com\/?p=86","name":".NET\/.NET.Core\/Powershell FAQ - John&#039;s Blog","isPartOf":{"@id":"https:\/\/john.pentaidea.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/john.pentaidea.com\/?p=86#primaryimage"},"image":{"@id":"https:\/\/john.pentaidea.com\/?p=86#primaryimage"},"thumbnailUrl":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/efccd39a7a6b02b1fea249596cb43b03.png","datePublished":"2019-02-10T11:20:12+00:00","dateModified":"2019-02-10T11:20:12+00:00","author":{"@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f"},"breadcrumb":{"@id":"https:\/\/john.pentaidea.com\/?p=86#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/john.pentaidea.com\/?p=86"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/john.pentaidea.com\/?p=86#primaryimage","url":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/efccd39a7a6b02b1fea249596cb43b03.png","contentUrl":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/efccd39a7a6b02b1fea249596cb43b03.png","width":382,"height":374},{"@type":"BreadcrumbList","@id":"https:\/\/john.pentaidea.com\/?p=86#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/john.pentaidea.com\/"},{"@type":"ListItem","position":2,"name":".NET\/.NET.Core\/Powershell FAQ"}]},{"@type":"WebSite","@id":"https:\/\/john.pentaidea.com\/#website","url":"https:\/\/john.pentaidea.com\/","name":"John's Blog","description":"\u4e16\u754c\u56e0\u601d\u7dd2\u800c\u8907\u96dc, \u4eba\u56e0\u5922\u60f3\u800c\u5049\u5927","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/john.pentaidea.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f","name":"jj","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g","caption":"jj"},"sameAs":["https:\/\/john.pentaidea.com"],"url":"https:\/\/john.pentaidea.com\/?author=1"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/john.pentaidea.com\/wp-content\/uploads\/2019\/06\/efccd39a7a6b02b1fea249596cb43b03.png","_links":{"self":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86"}],"version-history":[{"count":0,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/media\/1028"}],"wp:attachment":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}