{"id":58,"date":"2021-10-03T09:44:08","date_gmt":"2021-10-03T09:44:08","guid":{"rendered":"https:\/\/code.handwerkit.com\/?p=58"},"modified":"2025-02-20T14:34:56","modified_gmt":"2025-02-20T14:34:56","slug":"mal-win-mal-unix","status":"publish","type":"post","link":"https:\/\/code.handwerkit.com\/?p=58","title":{"rendered":"Mal Win, mal Linux"},"content":{"rendered":"\n<p>Sollte man auf der Suche sein, auf welchem OS laufe ich denn gerade,<br>hier die L\u00f6sung:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism off-numbers lang-csharp\" data-lang=\"C#\"><code>if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))\n{\n      CurrentDirectory = environment.WebRootPath+ @&quot;\\images\\titles\\&quot;;\n}\nelse\n{\n      CurrentDirectory = @&quot;\/home\/pi\/user\/wwwroot\/images\/&quot;;\n}<\/code><\/pre><\/div>\n\n\n\n<p>gerade bei ASP.net Core sucht man manchmal danach, da ich<br>es mal auf einem ISS laufen lasse oder \u00fcber DotNetCore auf <br>einer Linux Disto.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sollte man auf der Suche sein, auf welchem OS laufe ich denn gerade,hier die L\u00f6sung: gerade bei ASP.net Core sucht man manchmal danach, da iches mal auf einem ISS laufen lasse oder \u00fcber DotNetCore auf einer Linux Disto.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[4,6,9,12,10,11],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-c-net","tag-blazor","tag-c","tag-os","tag-platform","tag-unix","tag-windows","entry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"Rooout","author_link":"https:\/\/code.handwerkit.com\/?author=1"},"uagb_comment_info":4,"uagb_excerpt":"Sollte man auf der Suche sein, auf welchem OS laufe ich denn gerade,hier die L\u00f6sung: gerade bei ASP.net Core sucht man manchmal danach, da iches mal auf einem ISS laufen lasse oder \u00fcber DotNetCore auf einer Linux Disto.","_links":{"self":[{"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":6,"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.handwerkit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}