ç§ä¸¸ãã¯ããããã¯ã¦ãªãã¤ã¢ãªã¼ã«æ稿ãã
ç§ä¸¸ãã¯ã d.hatena.macã使ã£ã¦ãã¯ã¦ãªãã¤ã¢ãªã¼ã«æ稿ãã
d.hatena.mac
ãã¹ã¯ã¼ãè¨å®
- d.hatena.mac.html ãåç §ãã¦ãã¯ã¦ãIDã»ãã¹ã¯ã¼ãã®è¨å®
hash[""] = ""; // IDã¨ãã¹ã¯ã¼ã
ãããæ¸ãæããã
ãã¯ãå®è¡
ãã¯ãå®è¡
ãã¹ã¯ã¼ãã¯æ¯åå
¥åããå¿
è¦ãããï¼ï¼
IDãã¹ã¯ã¼ãè¨å®ãã¡ã¤ã«ã§ããã¹ã¯ã¼ããè¨å®ãã¦ãã³ã³ãã¤ã«ãã¦ã
æ¯åãã¹ã¯ã¼ããèãããã
以ä¸ã®ã¨ã©ã¼ã»ã»ã»ã»
ã¯ã¦ãªãã¤ã¢ãªã¼ç¨ãã¯ã - d.hatena.mac.util.dll d.hatena.mac.exe ã®ããããor両æ¹ã®ã³ã³ãã¤ã«ãä¸æ¢ãã¾ããã ãçç±ã¯ãã¶ã ã» d.hatena.mac.Settings.cs ã«ã¨ã©ã¼ãããã ã».Net Frameworkãã¤ã³ã¹ãã¼ã«ããã¦ããªããå¤ãã ã»ã³ãã³ãã©ã¤ã³ãé·ã(ãã¯ããåå¨ãããã£ã¬ã¯ããªã®ãã«ãã¹åãé·ã) ã®ããããã§ããã¢ã¦ããããæ ãåç §ãã¦ãã ããã
.Net Frameworkã¯Fullçãå
¥ã£ã¦ãã
ãã¯ãã®ä¸èº«ã¿ãã¨ãcscã§ã³ã³ãã¤ã«ãã¦ãã
ãã®ç°å¢ã§ã¯ãã·ã¹ãã ãã¦ã¼ã¶ã¼ç°å¢å¤æ°ã«ã¯C#ã®ç°å¢å¤æ°ã¯è¨å®ããã¦ãªããªã
Visual C# 2010 Expressããç°å¢å¤æ°ãè¨å®ãããã³ãã³ãããã³ãããèµ·åãã¦
æåã³ã³ãã¤ã«ã
æåã³ã³ãã¤ã«
DLL
d.hatena.mac.Settings.cs ã®ã³ã¡ã³ãã¿ãã¨ä»¥ä¸ã®ããã«ãªã£ã¦ãã
/// <remarks> /// ãã®ãã¡ã¤ã«ã«ã¯ãd.hatena.macã®è¨å®(ã¯ã¦ãªãã¤ã¢ãªã¼ã®ã¦ã¼ã¶åã¨ãã¹ã¯ã¼ã)ãè¨è¼ãã¦ããã /// è¨å®ãè¨è¼ãã¦ä¿åããããæ¬ãã¡ã¤ã«ã®ãã¡ã¤ã«åãã(ã¡ã¤ã³ãã¯ãã®ãã¡ã¤ã«å).Settings.csãã®ããã«æ¹åããã /// (ã¡ã¤ã³ãã¯ãã®ãã¡ã¤ã«åãd.hatena.macã¨ããã¨ãd.hatena.mac.Settings.csã¨ããæãã) /// ã¡ã¤ã³ãã¯ããå®è¡ããã¨ãdllã¨ãã¦ã³ã³ãã¤ã«ãããããã¯ãç¨ã®å®è¡ãã¡ã¤ã«ããããªã³ã¯&åç §ãããã /// /// æåã§ã³ã³ãã¤ã«ããå ´åã¯ã以ä¸ã®ããã«ããã(%b=ãã®ãã¡ã¤ã«ã®ãã¡ã¤ã«å) /// csc.exe /t:library /w:4 /doc:%b.xml %b /// </remarks>
d.hatena.mac.html ãè¦ãã¨ãDLLåã¯ãd.hatena.mac.Settings.dllã§ã¯ãªãd.hatena.mac.util.dllã®ããã ã
ã³ã³ãã¤ã«ã«ã¤ã㦠ãã¯ãã確èªããã®ã¯2ã¤ã®ãã¡ã¤ã«ã§ãã æ¬ãã¯ãç¨å®è¡ãã¡ã¤ã«(d.hatena.mac.exe) : \srcãã©ã«ãã«ãã4ã¤ã®ãã¡ã¤ã«ããã³ã³ãã¤ã«ããã¾ãã å®è¡ãã¡ã¤ã«ã§ç¨ããDLL(d.hatena.mac.util.dll) : IDãã¹ã¯ã¼ãè¨å®ãã¡ã¤ã«(d.hatena.mac.Settings.cs)ããã³ã³ãã¤ã«ããã¾ãã
d.hatena.mac.util.dllã®ååã§ã³ã³ãã¤ã«
>csc.exe /t:library /out:d.hatena.mac.util.dll /w:4 /doc:d.hatena.mac.Settings.cs.xml d.hatena.mac.Settings.cs Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1 Copyright (C) Microsoft Corporation. All rights reserved. d.hatena.mac.Settings.cs(10,15): warning CS1591: å ¬éããã¦ããåã¾ãã¯ã¡ã³ãã¼ 'x10d.HidemaruMacro.d_hatena_mac.Settings' ã® XML ã³ã¡ã³ããããã¾ããã d.hatena.mac.Settings.cs(11,36): warning CS1591: å ¬éããã¦ããåã¾ãã¯ã¡ã³ãã¼ 'x10d.HidemaruMacro.d_hatena_mac.Settings.hash' ã® XML ã³ã¡ã³ããããã¾ããã d.hatena.mac.Settings.cs(26,1): warning CS1587: XML ã³ã¡ã³ããæå¹ãªè¨èªè¦ç´ ã®ä¸ã«ããã¾ããã
è¦åã¯ã§ããã©ãã³ã³ãã¤ã«ã¯ã§ããããã ã
>dir /b *.dll d.hatena.mac.util.dll
exe
>csc.exe /w:4 /t:winexe /R:d.hatena.mac.util.dll /out:d.hatena.mac.exe .\src\*.cs Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1 Copyright (C) Microsoft Corporation. All rights reserved. >dir /b *.exe d.hatena.mac.exe
æå
ãã¯ãå®è¡
åãããã«ã¯ãªã£ãã
IDãã¹ã¯ã¼ãè¨å®ãã¡ã¤ã«(d.hatena.mac.Settings.cs)ã«ã¦ã¼ã¶ã¼ããã¹ã¯ã¼ãè¨å®ãã¦
ã³ã³ãã¤ã«ãããã©ããã¹ã¯ã¼ããæ¯åå
¥åããå¿
è¦ãããã
ãã
ã¼ãããã
test.csã§å¤åå¾ããã¢ããªã ã¨ãã¦ã¼ã¶ã¼ããã¹ã¯ã¼ãã®ä¸¡æ¹è¨å®ããã¦ããã ãã©ãªã