This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
æ¥ã«Windowsã§ããã°ã©ã ãæ¸ããã¡ã«ãªã£ã人åãã«ãVisual Studio Communityã®ã¤ã³ã¹ãã¼ã«ããC#è¨èªä»æ§ã®å¦ç¿ãåºæ¬ãã¬ã¼ã ã¯ã¼ã¯ãææ¡ããããã«å¿ è¦ãªæ å ±æºã¸ã®ãªã³ã¯ãã¾ã¨ãã¾ããã æãè¦ã¤ã次第éææ´æ°ãã¦ããã¾ãã Visual Studio 2013 åã¨ãã£ã·ã§ã³ã®æ¦è¦ Visual Studio Ultimate 2013 ä½ã§ãåºæ¥ã¾ãã90æ¥éç¡åã§ä½¿ç¨ãããã¨ãåºæ¥ã¾ããUltimateã«ãããªãæ©è½ãå©ç¨ãããã¨ãæãããªã®ã§ããã°ããã使ç¨ãã¾ãã Visual Studio Community 2013 Professionalã¨åçã®æ©è½ãç¡åã§å©ç¨åºæ¥ã¾ããå人å©ç¨ã§ããã°ãããæãããããã§ãã Visual Studio Express 2013 Visual Studio Community 2013ããªãªã¼ã¹ããã以åã¯ã
Webã¢ããªã±ã¼ã·ã§ã³ãããã¼ã¿ãã¼ã¹ã«æ¥ç¶ããã¨ããå¿ è¦ãªã®ã¯connectionStringsã é常ãOracleã«ç¹ãã«ã¯Provider=OraOLEDB.Oracle~ã¨ãData Source=myoracleDBã¨ãæ¸ãããã©ãããã¦ãã®å ´åã¯tnsname.oraãå¿ è¦ã ã£ããããã ã§ããã¡ãã¡ç¨æãã¦ãµã¼ãã¼ç®¡çè ã«ãå ¥ãã¦ï½ãã¨ããã®ã¯ãã®ãããããã©ãããã ãªã®ã§ãtnsname.oraç¡ãã§ç¹ãã§ãã¾ããã¨ããã®ã以ä¸ã®connectionStringsã <connectionStrings> <add name="OracleDB" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ãã¹ãå)(PORT=1521))(CONNECT_DATA=(SERVER=DE
64bitã®ODP.NETï¼Oracle.DataAccess.dllï¼ãVisualStudioï¼Webï¼ã§ä½¿ãéã«æ³¨æãã¹ãï¼ã¤ã®ãã¨C#oracleODP.NET64bitIIS æ¢ãã°åºã¦ãã¾ãã念ã®ããã»ã»ã» ODP.NETï¼Oracle.DataAccess.dllï¼ã®64bitçã使ã£ã¦ãVisualStudioã§Webã¢ããªã±ã¼ã·ã§ã³ãä½ãé㫠以ä¸ã®3ã¤ã®ãã¨ã«æ³¨æãã¹ãã ãã«ããã©ãããã©ã¼ã ãx64ã«ããã㨠Any CPUã ã¨AMD64ãªãããããããã¨åºã¦æããã¾ããå¿ ãx64ã§ã³ã³ãã¤ã«ãã¾ãããã 32bitã®Oracle.DataAccess.dllãªãã°x86ãè¨å®ãã¾ãããã Webãµã¼ãã¼ã¯IIS Expressã使ç¨ããã㨠ããã©ã«ãã®ããã¸ã§ã¯ãè¨å®ã§ã¯VisualStudioå èµã®éçºãµã¼ãã¼ãç«ã¡ä¸ãã¦ãããã¯ããã¾ãã ãããå èµãµã¼ãã¼
Webã¢ããªãä½ã£ã¦ã¦ããDebugæã¨Releaseæã§åæã«DBã®æ¥ç¶å ãå¤ãã£ã¦ãããããªãã»ã»ã»ãã¨æããã¨ã¯ããã¾ãããã£ï¼ ããè¨ãç§ãã½ã¦ãã·ã¿ã»ã»ã»ã ã§ããããç°¡åã«ã§ãããã§ããããã ã¾ããWeb.configã«æ®éã«connectionStringsãæ¸ãã <configuration> <connectionStrings> <add name="OracleDB" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ãã¹ãå)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ãµã¼ãã¹å))); User Id=ã¦ã¼ã¶ã¼å; Password=ãã¹ã¯ã¼ã" /> </connectionStrings> <
Visual Studio 2010 ã§ã®Web.configã®åãæ¿ãã®ç¶ã Transform å±æ§ã¨ Locator å±æ§ã®åå¥ã®è¦ç´ ã§ã®ä½¿ç¨ã£ã¦ããã¨ããã®æ¥æ¬èªããã¾ã²ã¨ã¤åããã«ããã¦ãã¢ããªã±ã¼ã·ã§ã³ã®çºè¡æã«ä½åº¦ãã¨ã©ã¼ãåºããã©ãããããåãã£ããç解ããã®é ã£ã ãã¨ãã°ãWeb.configã«2ã¤ã»ã©Keyã®ããappSettingsãããã¨ãã¦ã <appSettings> <!-- è¨å®1ï¼ãã¹ï¼ --> <add key="Settings1" value="C:\Work\"/> <!-- è¨å®2 ï¼ãµã¤ãºï¼--> <add key="Settings2" value="1"/> </appSettings> Web.Release.configã«ã¯ãã®ããã«æ¸ãã¦ããã¨ããã¾ãå¤æãã¦ãããããªãã»ã©ãã¼ãLogatorã¨Transformã£ã¦ãããããã¨ã
ãã®ãããã¯ã§ã¯ xdt:Transform ã¨ã次ã®è£½åã® Web.config ã®å¤æãã¡ã¤ã«ã§ä½¿ç¨ãã xdt:Locator ã®å±æ§ã®æ§æã«é¢ããåç §æ å ±ãæä¾ãã¾ã: Visual Studio 2012 Visual Studio Express 2012 for Web ã®Visual Studio 2010Visual Studio ã® Web çºè¡ã®æ´æ° ã®Visual Web Developer 2010 ExpressVisual Studio ã® Web çºè¡ã®æ´æ° å¤æãã¡ã¤ã«ã¯ãWeb.config ãã¡ã¤ã«ã®é ç½®æã®å¤æ´æ¹æ³ãæå®ãã XML ãã¡ã¤ã«ã§ãã å¤ææä½ã¯ãxdt ãã¬ãã£ãã¯ã¹ã«ãããããã XML-Document-Transform åå空éã§å®ç¾©ããã¦ãã XML å±æ§ã使ç¨ãã¦æå®ãã¾ãã XML-Document-Transform
When you deploy a Web site, you often want some settings in the deployed application's Web.config file to be different from the development Web.config file. For example, you might want to disable debug options and change connection strings so that they point to different databases. This topic explains how to set up a Web.config transform file that is applied automatically during deployment in orde
Visual Studio 2010 ããæ°ãã«å ãã£ãæ©è½ã§ãã£ã¨ãæåããã®ããWeb.config/Web.Debug.config/Web.Release.configã®ç»å ´ãããªããã¨æããä»ååãã¦ã¡ããã¨ä½¿ã£ãã®ã§ã¡ã¢ã Web.configã¯ãããªæãã§é常éãè¨å®ãããCatalogãtestDbForUt <connectionStrings> <add name="connkuma" connectionString="Data Source=MachineName\DbName;Initial Catalog=testDbForUt;Persist Security Info=True;User ID=sa;Password=kuma" providerName="System.Data.SqlClient" /> </connectionStrings> çµåãã¹
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}