﻿
{"id":10208,"date":"2019-01-23T13:42:28","date_gmt":"2019-01-23T13:42:28","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=10208"},"modified":"2019-01-23T13:44:10","modified_gmt":"2019-01-23T13:44:10","slug":"net-coreda-severity-code-description-project-file-line-suppression-hatasi-ve-cozumu","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/net-coreda-severity-code-description-project-file-line-suppression-hatasi-ve-cozumu\/","title":{"rendered":".NET Core&#8217;da &#8220;Severity Code Description Project File Line Suppression&#8230;&#8221; Hatas\u0131 ve \u00c7\u00f6z\u00fcm\u00fc"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Merhaba,<\/p>\n<p>Bu i\u00e7eri\u011fimizde, i\u00e7erisinde hem .NET Core hem de .NET Standart Framework projeleri bar\u0131nd\u0131ran geni\u015f \u00e7apl\u0131 bir proje senaryosunda kar\u015f\u0131la\u015f\u0131lmas\u0131 olas\u0131 olan &#8220;Severity Code Description Project File Line Suppression&#8230;&#8221; hatas\u0131 \u00fczerine konu\u015fuyor olaca\u011f\u0131z. <\/p>\n<p>Yukar\u0131daki giri\u015f paragraf\u0131nda bahsetti\u011fim gibi birden \u00e7ok farkl\u0131 \u00e7ekirdekten projenin bir araya gelmesi sonucu olu\u015fan kar\u0131\u015f\u0131kl\u0131k neticesinde a\u015fa\u011f\u0131daki olas\u0131 hatayla kar\u015f\u0131la\u015f\u0131labilir;<br \/>\n<a href=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2019\/01\/NET-Coreda-Severity-Code-Description-Project-File-Line-Suppression...-Hatas\u0131-ve-\u00c7\u00f6z\u00fcm\u00fc.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2019\/01\/NET-Coreda-Severity-Code-Description-Project-File-Line-Suppression...-Hatas\u0131-ve-\u00c7\u00f6z\u00fcm\u00fc.png\" alt=\".NET Core\u2019da \u201cSeverity Code Description Project File Line Suppression\u2026\u201d Hatas\u0131 ve \u00c7\u00f6z\u00fcm\u00fc\" width=\"1691\" height=\"135\" class=\"aligncenter size-full wp-image-10215\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2019\/01\/NET-Coreda-Severity-Code-Description-Project-File-Line-Suppression...-Hatas\u0131-ve-\u00c7\u00f6z\u00fcm\u00fc.png 1691w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2019\/01\/NET-Coreda-Severity-Code-Description-Project-File-Line-Suppression...-Hatas\u0131-ve-\u00c7\u00f6z\u00fcm\u00fc-300x24.png 300w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2019\/01\/NET-Coreda-Severity-Code-Description-Project-File-Line-Suppression...-Hatas\u0131-ve-\u00c7\u00f6z\u00fcm\u00fc-768x61.png 768w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2019\/01\/NET-Coreda-Severity-Code-Description-Project-File-Line-Suppression...-Hatas\u0131-ve-\u00c7\u00f6z\u00fcm\u00fc-1024x82.png 1024w\" sizes=\"auto, (max-width: 1691px) 100vw, 1691px\" \/><\/a><br \/>\n\u0130lgili hatan\u0131n metinsel halinide a\u015fa\u011f\u0131ya al\u0131rsak e\u011fer;<\/p>\n<blockquote><p>\n<strong><em>Severity Code Description Project File Line Suppression State Error NETSDK1004 Assets file &#8216;xxx\\project.assets.json&#8217; not found. Run a NuGet package restore to generate this file. Business C:\\Program Files\\dotnet\\sdk\\2.2.101\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.PackageDependencyResolution.targets<\/em><\/strong>\n<\/p><\/blockquote>\n<p>Bu olas\u0131 hatam\u0131z\u0131n nedeni DotNet CLI&#8217;in gerekli t\u00fcm dosyalar\u0131 ba\u015flang\u0131\u00e7ta yaratamamas\u0131ndan kaynaklanmaktad\u0131r. \u00c7\u00f6z\u00fcm olarak ise dotnet&#8217;i ya restore etmeliyiz yahut yeniden in\u015fa etmeliyiz. Dolay\u0131s\u0131yla hatay\u0131 bu a\u00e7\u0131dan de\u011ferlendirdi\u011fimizde &#8220;Package Manager Console&#8221; \u00fczerinden a\u015fa\u011f\u0131daki iki komutu \u00e7\u00f6z\u00fcm ama\u00e7l\u0131 uygulayabilirsiniz;<\/p>\n<ul>\n<li>\n<strong>1. \u00c7\u00f6z\u00fcm<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndotnet restore\r\n<\/pre>\n<p>ya da<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndotnet restore solutionfilename.sln\r\n<\/pre>\n<p>Bu y\u00f6ntemle projeyi\/projeleri restore edebilir ve DotNet CLI&#8217;\u0131n y\u00fcklemeyedi\u011fi dosyalar\u0131 yeniden y\u00fckleyerek uygulamay\u0131 onarabilirsiniz.\n<\/li>\n<li>\n<strong>2. \u00c7\u00f6z\u00fcm<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndotnet build\r\n<\/pre>\n<p>Bu y\u00f6ntem ise t\u00fcm k\u00fct\u00fcphaneleri yeniden uygulamaya dahil edebilir, bir ba\u015fka deyi\u015fle uygulamay\u0131 ba\u015ftan a\u015fa\u011f\u0131 yeniden in\u015fa edebilirsiniz. Ayr\u0131ca &#8220;dotnet build&#8221; varsay\u0131lan olarak &#8220;dotnet restore&#8221; komutunu tetiklemektedir.\n<\/li>\n<\/ul>\n<p>Bu iki y\u00f6ntemle bu i\u00e7eri\u011fimizde ele alamad\u0131\u011f\u0131m\u0131z bir\u00e7ok olas\u0131 hatay\u0131 engelleyebilir ve ba\u015fka t\u00fcrl\u00fc hatalarda da bu komutlar\u0131 \u00e7al\u0131\u015ft\u0131rarak \u015fans\u0131m\u0131z\u0131 deneyebiliriz. Tabi yer yer di\u011fer hatalarda ve senaryolarda bu ve bunun gibi i\u015flevsel komutlar\u0131n kullan\u0131m\u0131na dair i\u00e7erikler kalame(klavyeye) alaca\u011f\u0131m\u0131zdan \u015f\u00fcpheniz olmas\u0131n&#8230;<\/p>\n<p>\u0130lgilenenlerin faydalanmas\u0131 dile\u011fiyle&#8230;<br \/>\nSonraki yaz\u0131lar\u0131mda g\u00f6r\u00fc\u015fmek \u00fczere&#8230;<br \/>\n\u0130yi \u00e7al\u0131\u015fmalar&#8230;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Merhaba, Bu i\u00e7eri\u011fimizde, i\u00e7erisinde hem .NET Core hem de .NET Standart Framework projeleri bar\u0131nd\u0131ran geni\u015f \u00e7apl\u0131 bir proje senaryosunda kar\u015f\u0131la\u015f\u0131lmas\u0131 olas\u0131 olan &#8220;Severity Code Description Project File Line Suppression&#8230;&#8221; hatas\u0131 \u00fczerine konu\u015fuyor olaca\u011f\u0131z. Yukar\u0131daki&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":3014,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2668,2656],"tags":[2740,2741,1576,849,484],"class_list":["post-10208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-asp-net-core-2","category-asp-net-core-2-mvc","tag-net-core-hata","tag-net-core-hata-cozumu","tag-c-hata","tag-hata-cozumleri","tag-hata-cozumu"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/10208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=10208"}],"version-history":[{"count":10,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/10208\/revisions"}],"predecessor-version":[{"id":10220,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/10208\/revisions\/10220"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/3014"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=10208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=10208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=10208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}