{"id":9801,"date":"2025-06-04T17:34:34","date_gmt":"2025-06-04T08:34:34","guid":{"rendered":"https:\/\/www.auctionpro.co.kr\/?p=9801"},"modified":"2025-06-04T17:36:57","modified_gmt":"2025-06-04T08:36:57","slug":"web-debug-config-web-release-config","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=9801","title":{"rendered":"Web.Debug.config Web.Release.config"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">C# ASMX \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c \ube4c\ub4dc \uc2dc <code>Web.Debug.config<\/code>\uc640 <code>Web.Release.config<\/code>\uac00 \uc790\ub3d9\uc73c\ub85c <code>Web.config<\/code>\uc5d0 \uc801\uc6a9\ub418\ub3c4\ub85d \uc124\uc815\ud558\ub294 \uac83\uc740 <strong>Web.config Transformation<\/strong> \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. ASP.NET \uc6f9 \ud504\ub85c\uc81d\ud2b8(ASMX \ud3ec\ud568)\uc5d0\uc11c\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \uc774 \uae30\ub2a5\uc774 \uc81c\uacf5\ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Web.config Transformation\uc758 \ub3d9\uc791 \ubc29\uc2dd<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Web.config<\/code> \ubcc0\ud658\uc740 **\ube4c\ub4dc \uad6c\uc131(Debug, Release \ub4f1)**\uacfc <strong>\uac8c\uc2dc \ud504\ub85c\ud544<\/strong>\uc5d0 \ub530\ub77c <code>Web.config<\/code> \ud30c\uc77c\uc744 \ubcc0\uacbd\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-vivid-red-color has-text-color has-link-color wp-elements-1\"><strong>\uac1c\ubc1c \ud658\uacbd (Debug \ubaa8\ub4dc\uc5d0\uc11c F5 \uc2e4\ud589):<\/strong> \uae30\ubcf8\uc801\uc73c\ub85c Visual Studio\uc5d0\uc11c F5\ub97c \ub20c\ub7ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud560 \ub54c\ub294 <code>Web.Debug.config<\/code> \ubcc0\ud658\uc774 \uc790\ub3d9\uc73c\ub85c \uc801\uc6a9\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc774\ub294 \uac1c\ubc1c\uc790\uac00 <code>Web.config<\/code> \uc790\uccb4\ub97c \uc9c1\uc811 \ud3b8\uc9d1\ud558\uc5ec \ub85c\uceec \uac1c\ubc1c \ud658\uacbd\uc5d0 \ub9de\ub294 \uc124\uc815\uc744 \uc0ac\uc6a9\ud558\ub3c4\ub85d \ud558\ub294 \uac83\uc774 \uc77c\ubc18\uc801\uc774\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4. <code>Web.Debug.config<\/code>\ub294 \uc8fc\ub85c \ub514\ubc84\uadf8 \ubaa9\uc801\uc73c\ub85c \uac8c\uc2dc\ud560 \ub54c \uc801\uc6a9\ub429\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong>\ube4c\ub4dc \ubc0f \uac8c\uc2dc \uc2dc:<\/strong> <code>Debug<\/code> \ub610\ub294 <code>Release<\/code> \ube4c\ub4dc \uad6c\uc131\uc73c\ub85c \ud504\ub85c\uc81d\ud2b8\ub97c &#8220;\uac8c\uc2dc(Publish)&#8221;\ud560 \ub54c, \ud574\ub2f9 \ube4c\ub4dc \uad6c\uc131\uc5d0 \ub9de\ub294 <code>.config<\/code> \ud30c\uc77c(\uc608: <code>Web.Debug.config<\/code> \ub610\ub294 <code>Web.Release.config<\/code>)\uc5d0 \uc815\uc758\ub41c \ubcc0\ud658 \uaddc\uce59\uc774 \uc6d0\ubcf8 <code>Web.config<\/code>\uc5d0 \uc801\uc6a9\ub429\ub2c8\ub2e4. \uacb0\uacfc\uc801\uc73c\ub85c \ubcc0\ud658\ub41c <code>Web.config<\/code> \ud30c\uc77c\uc774 \ubc30\ud3ec \ud328\ud0a4\uc9c0 \ub610\ub294 \uac8c\uc2dc\ub41c \ud3f4\ub354\uc5d0 \uc0dd\uc131\ub429\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Web.Debug.config \ubc0f Web.Release.config \uc0ac\uc6a9 \ubc29\ubc95<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774 \ud30c\uc77c\ub4e4 \ub0b4\ubd80\uc5d0\ub294 XML-Document-Transform \ub124\uc784\uc2a4\ud398\uc774\uc2a4(<code>xmlns:xdt=\"http:\/\/schemas.microsoft.com\/XML-Document-Transform\"<\/code>)\uc5d0 \uc815\uc758\ub41c \ud2b9\uc218 \uc18d\uc131(<code>xdt:Transform<\/code>, <code>xdt:Locator<\/code>)\uc744 \uc0ac\uc6a9\ud558\uc5ec <code>Web.config<\/code>\uc758 \ud2b9\uc815 \ubd80\ubd84\uc744 \ubcc0\uacbd\ud558\ub3c4\ub85d \uc9c0\uc2dc\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uc608\uc2dc:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Web.config (\uae30\ubcf8 \uc124\uc815):<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">XML<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n&lt;configuration&gt;\n  &lt;appSettings&gt;\n    &lt;add key=\"Environment\" value=\"Development\" \/&gt;\n  &lt;\/appSettings&gt;\n  &lt;connectionStrings&gt;\n    &lt;add name=\"DefaultConnection\" connectionString=\"Data Source=.\\SQLEXPRESS;Initial Catalog=MyDb_Dev;Integrated Security=True\" providerName=\"System.Data.SqlClient\" \/&gt;\n  &lt;\/connectionStrings&gt;\n  &lt;system.web&gt;\n    &lt;compilation debug=\"true\" targetFramework=\"4.7.2\" \/&gt;\n  &lt;\/system.web&gt;\n&lt;\/configuration&gt;<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Web.Debug.config (\ub514\ubc84\uadf8 \ube4c\ub4dc \uc2dc \ubcc0\uacbd\ub420 \ub0b4\uc6a9):<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">XML<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \">&lt;?xml version=\"1.0\"?&gt;\n&lt;configuration xmlns:xdt=\"http:\/\/schemas.microsoft.com\/XML-Document-Transform\"&gt;\n  &lt;appSettings&gt;\n    &lt;add key=\"Environment\" value=\"DebugLocal\" xdt:Transform=\"SetAttributes\" xdt:Locator=\"Match(key)\" \/&gt;\n  &lt;\/appSettings&gt;\n  &lt;connectionStrings&gt;\n    &lt;add name=\"DefaultConnection\" connectionString=\"Data Source=(LocalDb)\\MSSQLLocalDB;Initial Catalog=MyDb_LocalDebug;Integrated Security=True\" xdt:Transform=\"SetAttributes\" xdt:Locator=\"Match(name)\" \/&gt;\n  &lt;\/connectionStrings&gt;\n  &lt;system.web&gt;\n    &lt;compilation xdt:Transform=\"RemoveAttributes(debug)\" \/&gt;\n    &lt;\/system.web&gt;\n&lt;\/configuration&gt;\n<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Web.Release.config (\ub9b4\ub9ac\uc988 \ube4c\ub4dc \uc2dc \ubcc0\uacbd\ub420 \ub0b4\uc6a9):<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">XML<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c# decode:true \">&lt;?xml version=\"1.0\"?&gt;\n&lt;configuration xmlns:xdt=\"http:\/\/schemas.microsoft.com\/XML-Document-Transform\"&gt;\n  &lt;appSettings&gt;\n    &lt;add key=\"Environment\" value=\"Production\" xdt:Transform=\"SetAttributes\" xdt:Locator=\"Match(key)\" \/&gt;\n  &lt;\/appSettings&gt;\n  &lt;connectionStrings&gt;\n    &lt;add name=\"DefaultConnection\" connectionString=\"Data Source=ProdServer;Initial Catalog=MyDb_Prod;Integrated Security=True\" xdt:Transform=\"SetAttributes\" xdt:Locator=\"Match(name)\" \/&gt;\n  &lt;\/connectionStrings&gt;\n  &lt;system.web&gt;\n    &lt;compilation xdt:Transform=\"RemoveAttributes(debug)\" \/&gt;\n  &lt;\/system.web&gt;\n&lt;\/configuration&gt;<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uc8fc\uc694 <code>xdt:Transform<\/code> \ubc0f <code>xdt:Locator<\/code> \ud2b9\uc131:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>xdt:Transform=\"SetAttributes\"<\/code><\/strong>: \ud574\ub2f9 \uc694\uc18c\uc758 \uc18d\uc131\uc744 \ubcc0\uacbd\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong><code>xdt:Transform=\"Insert\"<\/code><\/strong>: \uc694\uc18c\ub97c \uc0bd\uc785\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong><code>xdt:Transform=\"Remove\"<\/code><\/strong>: \uc694\uc18c\ub97c \uc81c\uac70\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong><code>xdt:Transform=\"Replace\"<\/code><\/strong>: \uc694\uc18c\ub97c \uc644\uc804\ud788 \uad50\uccb4\ud569\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong><code>xdt:Locator=\"Match(key)\"<\/code> \ub610\ub294 <code>xdt:Locator=\"Match(name)\"<\/code><\/strong>: <code>key<\/code> \ub610\ub294 <code>name<\/code> \uc18d\uc131 \uac12\uc774 \uc77c\uce58\ud558\ub294 \uc694\uc18c\ub97c \ucc3e\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong><code>xdt:Locator=\"XPath(\/configuration\/system.web\/compilation)\"<\/code><\/strong>: XPath\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud2b9\uc815 \uc694\uc18c\ub97c \ucc3e\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\ube4c\ub4dc \uc2dc \uc790\ub3d9 \uc120\ud0dd (Web.config Transformation\uc758 \uae30\ubcf8 \ub3d9\uc791)<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Visual Studio\uc5d0\uc11c <code>Debug<\/code> \ub610\ub294 <code>Release<\/code> \uad6c\uc131\uc744 \uc120\ud0dd\ud558\uace0 \ud504\ub85c\uc81d\ud2b8\ub97c **\uac8c\uc2dc(Publish)**\ud560 \ub54c, MSBuild\ub294 \uc790\ub3d9\uc73c\ub85c \ud574\ub2f9 \uad6c\uc131\uc5d0 \ub9de\ub294 <code>Web.&lt;Configuration&gt;.config<\/code> \ud30c\uc77c\uc744 \ucc3e\uc544 <code>Web.config<\/code>\uc5d0 \ubcc0\ud658\uc744 \uc801\uc6a9\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\uc8fc\uc758\uc0ac\ud56d:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\ub514\ubc84\uae45 \uc2dc <code>Web.config<\/code> \ubcc0\ud658:<\/strong> \uc704\uc5d0\uc11c \uc5b8\uae09\ud588\ub4ef\uc774, Visual Studio\uc5d0\uc11c F5\ub97c \ub20c\ub7ec \ub514\ubc84\uae45\ud560 \ub54c\ub294 <code>Web.config<\/code> \ubcc0\ud658\uc774 \uc790\ub3d9\uc73c\ub85c \uc801\uc6a9\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \uc774\ub294 \uac1c\ubc1c \ud3b8\uc758\ub97c \uc704\ud55c \uac83\uc774\uba70, <code>Web.config<\/code> \ud30c\uc77c \uc790\uccb4\uac00 \ub85c\uceec \uac1c\ubc1c \ud658\uacbd \uc124\uc815\uc744 \ud3ec\ud568\ud558\ub3c4\ub85d \ud558\ub294 \uac83\uc774 \uc77c\ubc18\uc801\uc785\ub2c8\ub2e4. \ubcc0\ud658\uc740 \uc8fc\ub85c \uac8c\uc2dc(\ubc30\ud3ec)\ub97c \uc704\ud574 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong>\ubcc0\ud658 \ubbf8\ub9ac \ubcf4\uae30:<\/strong> Visual Studio\uc5d0\uc11c\ub294 <code>Web.Debug.config<\/code> \ub610\ub294 <code>Web.Release.config<\/code> \ud30c\uc77c\uc744 \ub9c8\uc6b0\uc2a4 \uc624\ub978\ucabd \ubc84\ud2bc\uc73c\ub85c \ud074\ub9ad\ud558\uace0 &#8220;Preview Transform&#8221; (\ubcc0\ud658 \ubbf8\ub9ac \ubcf4\uae30)\uc744 \uc120\ud0dd\ud558\uc5ec \ubcc0\ud658 \ud6c4\uc758 <code>Web.config<\/code> \ud30c\uc77c\uc774 \uc5b4\ub5bb\uac8c \ubcc0\uacbd\ub420\uc9c0 \ubbf8\ub9ac \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n\n\n\n<li><strong>\uc18c\uc2a4 \uc81c\uc5b4:<\/strong> <code>Web.config<\/code>\uc640 <code>Web.Debug.config<\/code>, <code>Web.Release.config<\/code> \ud30c\uc77c\uc740 \ubaa8\ub450 \uc18c\uc2a4 \uc81c\uc5b4(Git \ub4f1)\uc5d0 \ud3ec\ud568\ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4. <code>Web.config<\/code>\uac00 \ube4c\ub4dc \ub610\ub294 \uac8c\uc2dc \uc2dc\uc5d0 \ubcc0\ud658\ub418\uc5b4 \uc0dd\uc131\ub418\ub294 \ud30c\uc77c\uc774\ubbc0\ub85c, \uc2e4\uc81c\ub85c \ubc30\ud3ec\ub420 <code>Web.config<\/code>\ub294 \uc18c\uc2a4 \uc81c\uc5b4\uc5d0\uc11c \uc81c\uc678\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\uc774\ub7ec\ud55c Web.config Transformation\uc740 C# ASMX \ud504\ub85c\uc81d\ud2b8\ubfd0\ub9cc \uc544\ub2c8\ub77c ASP.NET Web Forms, MVC \ub4f1 \ubaa8\ub4e0 ASP.NET \uc6f9 \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c \ub3d9\uc77c\ud558\uac8c \uc801\uc6a9\ub429\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>C# ASMX \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c \ube4c\ub4dc \uc2dc Web.Debug.config\uc640 Web.Release.config\uac00 \uc790\ub3d9\uc73c\ub85c Web.config\uc5d0 \uc801\uc6a9\ub418\ub3c4\ub85d \uc124\uc815\ud558\ub294 \uac83\uc740 Web.config Transformation \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4. ASP.NET \uc6f9 \ud504\ub85c\uc81d\ud2b8(ASMX \ud3ec\ud568)\uc5d0\uc11c\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \uc774 \uae30\ub2a5\uc774 \uc81c\uacf5\ub429\ub2c8\ub2e4. <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=9801\" title=\"Web.Debug.config Web.Release.config\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-9801","post","type-post","status-publish","format-standard","hentry","category-devc"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/9801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9801"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/9801\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}