IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
第1åãMonoÃLinuxã§ASP.NET MVCãåããã¾ã§ï¼é£è¼ï¼Monoã§OSSãªASP.NET MVCã¢ããªï¼1/2 ãã¼ã¸ï¼ ãªã¼ãã³ã½ã¼ã¹ã®.NETç°å¢ã§ãããMonoãããªã¼ãã³ã½ã¼ã¹ã»ãã¼ã¿ãã¼ã¹ã®ãMySQLãã使ã£ã¦æ¬æ ¼ASP.NET MVCãµã¤ããå®éç¨ãã¦ããçè ãããã®ç°å¢ã®æ§ç¯æ¹æ³ãã¬ã¯ãã£ã¼ããé£è¼ãã¹ã¿ã¼ãã é£è¼ç®æ¬¡ Monoæ¦è¦ æ¬ç¨¿ã§ã¯ã.NETã¨äºææ§ã®ãããMonoãï¼å¾è¿°ï¼ã¨ã.NETããMySQLãã¼ã¿ãã¼ã¹ã«ã¢ã¯ã»ã¹ã§ããADO.NETãã©ã¤ãã®ãMySQL Connectorãã¨ãããªã¼ãã³ã½ã¼ã¹ç°å¢ãé§ä½¿ãããASP.NET MVCããã¸ã§ã¯ãã»ãµã¼ãã®æ§ç¯æ¹æ³ãç´¹ä»ããã Monoã¯ãXamarin社ã«ããã¹ãã³ãµã¼ãããããECMA C#è¨èªä»æ§ã¨ECMA CLIï¼Common Language Infrastructureï¼ã®ãªã¼
C#ãªã©ã®.NETç³»ãLinuxã§å©ç¨ããããã«mono projectãããã¾ã 2013/07/06ç¾å¨ææ°çã3.0.12ã§ããã¾ããã¡ããCentOSã«ã¤ã³ã¹ãã¼ã«ãããã¨æã£ãã®ã§ã¡ã¢ãã¾ãã ã½ã¼ã¹ã³ã¼ãã¯70Mç¨åº¦ã®å®¹éãããã®ã§ãµã¤ãºã«æ³¨æã§ã ç°å¢ ç°å¢æ å ± æ§ç¯æ¥ ã½ããã¦ã§ã¢ çµæ§ããããå¿ è¦ãªã®ã§OSãã¤ã³ã¹ãã¼ã«ãã¦ããã®æ³å®ã§è¡ãã¾ã $ su - # ã¨ããããdevç°å¢ãæ´ããããã«å¿ è¦ãããªãã®ãã¤ã³ã¹ãã¼ã« $ yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake
Mono 3.10 ã®ãã«ãã»ã¤ã³ã¹ãã¼ã« â ç·æ¦ã½ããã¦ã§ã¢æ¨é²æãåèã«ãã¦ãCentOS6ã¸Mono3.10ãã¤ã³ã¹ãã¼ã«ããã®ã§ããã®éç¨ãæ®ãã¦ããããã¨æãã¾ãã ä»åã¯Monoããã¨ãã¨å ¥ã£ã¦ããªãç°å¢ã§ãã¤ã³ã¹ãã¼ã«å ãã©ã«ãã®ãªãã·ã§ã³ã¯ä½¿ç¨ãã¦ãã¾ããã libgdiplus(3.8)ã®ã¤ã³ã¹ãã¼ã« libgdiplusã¯ãWindows Formsãªã©ãåããã®ã«å¿ è¦ã¨ãªãã©ã¤ãã©ãªã§ãã å¿ é ã§ã¯ãªãã¯ãã§ãããã¤ã³ã¹ãã¼ã«ãã¦ããã¹ãã ã¨æãã¾ãã ä¾åããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã« $ sudo yum install \ cairo-devel libexif-devel freetype-devel fontconfig-devel \ glib2-devel libjpeg-devel libpng-devel libtiff-devel \ giflib-d
CentOS/FreeBSD/WindowsServerãªã©ã主ã«ãµã¼ãã¼è¨å®ã«é¢ããå¿å´ã¡ã¢ãã¾ã¨ãã¦ãã¾ã åã ããASP.NETã«èå³ããã£ãã®ã§ãããWindowsServerãç°¡åã«æºåã§ããªãã®ã§ã¨æã£ã¦ããã®ã§ãããããããã°monoããã£ããªã¼ã¨æãã ããããããã¨èª¿ã¹ã¦ãã£ãããCentOSã«mono3ãå ¥ããã°ãASP.NETãã§ããã¿ããã¨ãããã¨ã§ããã£ãããã£ã¬ã³ã¸ãããã¨ã«ã ãããããASP.NET MVC5ãã§ãã¿ããããã¨ãããããASP.NET MVC4ã®ãµã¼ãã¼ãæ§ç¯ãã¦ã¿ãã¨æãã¾ãã ãã¤ãã®ã©ãããCentOS6.6ãæå°ã¤ã³ã¹ãã¼ã«ããç¶æ ããã®è¨å®ã§ãã ã¾ããSELinuxãç¡å¹ã«ãã¾ãã # vi /etc/sysconfig/selinux (å¤æ´) SELINUX=disabled yumã§ã³ã³ãã¤ã«ãªå¿ è¦ãªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ã
C#㧠WebClient.UploadFile() ã¨ããã¯ã©ã¹ã¨ã¡ã½ããã使ãã¨Webãµã¼ãã¼ã«ãã¡ã¤ã«ãéä¿¡ã§ããããã§ãã ãã ããWebãµã¼ãã¼å´ã§ASP.NETã®ã³ã¼ããå®è¡ããå¿ è¦ãããããã§ãã ãã¹ãããããã¡ã¤ã«ãåãå ¥ãããã¨ãã§ããUploadFile ã¡ã½ããã®ä½¿ç¨ã«é©ãã ASP.NET ãã¼ã¸ã®ã³ã¼ãä¾ã次ã«ç¤ºãã¾ãã ãã®ãã¼ã¸ã¯ Web ãµã¼ãã¼ä¸ã«å¸¸é§ãããå¿ è¦ãããã¾ãã ãã®ã¢ãã¬ã¹ã«ãããUploadFile ã¡ã½ããã® address ãã©ã¡ã¼ã¿ã¼ã®å¤ãæä¾ããã¾ãã <%@ Import Namespace="System"%> <%@ Import Namespace="System.IO"%> <%@ Import Namespace="System.Net"%> <%@ Import NameSpace="System.Web"%> <S
Debugging a problem in an application is like solving a puzzle. There are certain tools that can help you solve the puzzle. This page documents some of the strategies, tools and tricks that you can use in solving these puzzles. You can find bugs by using a debugger: setting breakpoints, running the code line-by-line, examining variables, changing its state, exploring what other threads are doing,
ã¯ããã« heroku-buildback-mono ã使ãã° C# ã§æ¸ãã WEB ã¢ããªã Heroku ã§åãããã¨ãã§ããã ã©ã³ã¿ã¤ã 㯠.NET Framework ãããªã㦠Mono ã ãã©ã Heroku + Mono ã®ããã©ã¼ãã³ã¹ãç¥ããããªã£ãã®ã§ æå°ã® Owin ã¢ããªã±ã¼ã·ã§ã³ããããã¤ãã¦è¨æ¸¬ãããã¨ã«ããã ã³ã³ã½ã¼ã«ã¢ããªã±ã¼ã·ã§ã³ã®ããã¸ã§ã¯ããä½æ ã»ã«ããã¹ããªã®ã§ã³ã³ã½ã¼ã«ã¢ããªã±ã¼ã·ã§ã³ã®ããã¸ã§ã¯ããä½æããã NuGet ããã±ã¼ã¸ã追å NuGet ããã±ã¼ã¸ããã¼ã¸ã£ã¼ã§ Owin Microsoft.Owin.Hosting Microsoft.Owin.Host.HttpListener ã追å ã Visual Studio ã®å ´åã¯ãNuGet Package ã®å¾©å ãæå¹åãã¦ããã MonoDevelop(Xamarin
ãã«ããã©ãããã©ã¼ã éçºãå®ç¾ããããã®.NET Frameworkã®äºæç°å¢ã«ã¤ãã¦èª¬æããã®ä»£è¡¨ã¨ãã¦ãä»åã¯Monoã¨ãMonoãã¼ã¹ã®ãã¬ã¼ã ã¯ã¼ã¯ãåãä¸ããã â åå é£è¼ INDEX ååç´¹ä»ãããããªãã«ããã©ãããã©ã¼ã éçºãå®ç¾ããããã«ãä»åã¯.NET Frameworkã®äºæç°å¢ã«ã¤ãã¦èª¬æãããäºæç°å¢ãããã¤ããããããã®ä»£è¡¨ã¨ãã¦ãå©ç¨è ãå¤ããµãã¼ãããã£ããå¾ãããMonoã¨ãMonoãã¼ã¹ã®ãã¬ã¼ã ã¯ã¼ã¯ã«ã¤ãã¦èª¬æãããã Mono Monoã¯ãGNOMEããã¸ã§ã¯ãã®åµè¨è Miguel de Icazaæ°ã®ä¸»å°ã§éçºããã¦ãã.NET Frameworkäºæãã¬ã¼ã ã¯ã¼ã¯ã§ããï¼ä»¥ä¸ãæ¬ç¨¿ã§åã«ã.NET Frameworkãã¨ããå ´åããã¤ã¯ãã½ãã製ã®.NET Frameworkãæãï¼ãWindowsãMax OS XãLinuxãªã©ãä¸å¿
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}