{"id":3007,"date":"2014-05-03T03:13:18","date_gmt":"2014-05-03T03:13:18","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=3007"},"modified":"2014-05-03T03:24:09","modified_gmt":"2014-05-03T03:24:09","slug":"web%e5%8f%91%e5%b8%83%e4%b8%8e%e5%8e%8b%e7%bc%a9","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2014\/05\/03\/web%e5%8f%91%e5%b8%83%e4%b8%8e%e5%8e%8b%e7%bc%a9\/","title":{"rendered":"web\u53d1\u5e03\u4e0e\u538b\u7f29"},"content":{"rendered":"<p>vs2012\u5df2\u7ecf\u63d0\u4f9b\u4e86\u53d1\u5e03\u529f\u80fd\uff0c\u53ef\u4ee5\u76f4\u63a5ftp\u4e0a\u4f20\uff0c\u4f46ftp\u4e0a\u4f20\u662f\u5bf9\u6bcf\u4e2a\u6587\u4ef6\u4e0a\u4f20\uff0c\u82e5\u7f51\u901f\u6bd4\u8f83\u6162\uff0c\u5c31\u65f6\u95f4\u6bd4\u8f83\u957f\u3002\u8fd9\u91cc\u63d0\u4f9b\u547d\u4ee4\u884c\u53d1\u5e03\uff0c\u7136\u540e\u8fdb\u884c\u538b\u7f29\u64cd\u4f5c\u3002<\/p>\n<div>\n<pre class=\"brush:shell;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;\">\r\n@echo off\r\n\r\nset fdir=%WINDIR%\\Microsoft.NET\\Framework64\r\n\r\nif not exist %fdir% (\r\nset fdir=%WINDIR%\\Microsoft.NET\\Framework\r\n)\r\nset msbuild=%fdir%\\v4.0.30319\\msbuild.exe\r\n%msbuild% website.publishproj \/p:DeployOnBuild=true \/p:PublishProfile=.\\App_Data\\PublishProfiles\\\u53d1\u5e03.pubxml \/p:VisualStudioVersion=11.0 \/p:OutputPath=M:\\deploy\r\n\r\nrd \/s \/q M:\\deploy\\images\r\nrd \/s \/q M:\\deploy\\Files\r\ndel M:\\deploy\\web.config\r\ndel M:\\deploy\\login.aspx\r\nrename M:\\deploy\\login3.aspx login.aspx\r\n\r\n&quot;C:\\Program Files\\WinRAR\\rar.exe&quot;  a -ag -k -r -s -ibck M:\\s6release\\s6_.rar M:\\deploy\r\n\r\nstart M:\\s6release\r\n<\/pre>\n<\/div>\n<div>\n\t<br \/>\n\t\u5176\u4e2d\uff0c\u53d1\u5e03\u7684\u4e24\u4e2a\u6587\u4ef6<span style=\"background-color: rgb(240, 240, 240); font-size: 12px;\">website.publishproj\u4e0e<\/span><span style=\"background-color: rgb(240, 240, 240); font-size: 12px;\">\u53d1\u5e03.pubxml,\u53ef\u4ee5\u901a\u8fc7\u5728\u7f51\u7ad9\u4e0a\u53f3\u952e\u53d1\u5e03\u6765\u751f\u6210\uff0c\u751f\u6210\u7684\u6587\u4ef6\u5206\u522b\u5728\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0e<\/span>App_Data\\PublishProfiles\u4e0b\u3002<br \/>\n\twinrar:<\/p>\n<p style=\"margin: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 14px; line-height: 21px; background-color: rgb(255, 255, 255);\">\n\t\twinrar.exe:\u8fd0\u884cwinrar\uff0c<br \/>\n\t\t\u5982\u679cwinrar.exe\u6ca1\u5728\u9ed8\u8ba4\u8def\u5f84\u4e2d\u5219\u9700\u8981\u6307\u660e\u8def\u5f84\uff0c\u5982c:\\Progra~1\\winrar\\winrar.exe &#8230;\uff1b<br \/>\n\t\ta :\u5907\u4efd\u6240\u6709\u6587\u4ef6\uff1b<br \/>\n\t\t-ag :\u5f53\u521b\u5efa\u538b\u7f29\u6587\u4ef6\u65f6\uff0c\u4ee5\u683c\u5f0f&ldquo;YYYYMMDDHHMMSS&rdquo;\u9644\u52a0\u5f53\u524d\u65e5\u671f\u5b57\u7b26\u4e32,\u6587\u4ef6\u540dbakYYYYMMDDHHMMSS.rar\uff1b<br \/>\n\t\t-k :\u9501\u5b9a\u538b\u7f29\u6587\u4ef6\uff1b<br \/>\n\t\t-r:\u5907\u4efd\u76ee\u5f55\u548c\u5b50\u76ee\u5f55\uff1b<br \/>\n\t\t-s :\u521b\u5efa\u56fa\u5b9e\u538b\u7f29\u6587\u4ef6\uff1b<br \/>\n\t\t-ibck :\u540e\u53f0\u8fd0\u884c\uff1b<\/p>\n<p style=\"margin: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 14px; line-height: 21px; background-color: rgb(255, 255, 255);\">\n\t\t<span style=\"background-color: rgb(240, 240, 240); font-size: 12px;\">M:\\s6release\\s6_.rar<\/span>&nbsp;:\u5907\u4efd\u7684\u8def\u5f84\u548c\u57fa\u672c\u540d\u79f0(-ag\u53c2\u6570\u4f1a\u81ea\u52a8\u5728bak\u540e\u52a0\u4e0a\u7cfb\u7edf\u5f53\u524d\u65f6\u95f4)\uff0c<br \/>\n\t\t\u4e5f\u53ef\u4e0d\u7528-ag\u53c2\u6570\uff0c\u901a\u8fc7&ldquo;%date:~0,4%%date:~5,2%%date:~8,2%&rdquo;\u53d6\u5f97\u65f6\u95f4\u5b57\u4e32\uff0c<br \/>\n\t\t\u4e5f\u53ef\u5199\u4f5cc:\\bak.zip\uff1b<\/p>\n<p style=\"margin: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 14px; line-height: 21px; background-color: rgb(255, 255, 255);\">\n\t\t<span style=\"background-color: rgb(240, 240, 240); font-size: 12px;\">M:\\deploy<\/span>&nbsp;:\u8981\u5907\u4efd\u7684\u6587\u4ef6\u76ee\u5f55\u3002<\/p>\n<p style=\"margin: 0px; padding: 0px; color: rgb(69, 69, 69); font-family: tahoma, helvetica, arial; font-size: 14px; line-height: 21px; background-color: rgb(255, 255, 255);\">\n\t\t&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>vs2012\u5df2\u7ecf\u63d0\u4f9b\u4e86\u53d1\u5e03\u529f\u80fd\uff0c\u53ef\u4ee5\u76f4\u63a5ftp\u4e0a\u4f20\uff0c\u4f46ftp\u4e0a\u4f20\u662f\u5bf9\u6bcf\u4e2a\u6587\u4ef6\u4e0a\u4f20\uff0c\u82e5\u7f51\u901f\u6bd4\u8f83\u6162\uff0c\u5c31\u65f6\u95f4\u6bd4\u8f83\u957f\u3002 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-3007","post","type-post","status-publish","format-standard","hentry","category-aspdotnet"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/3007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=3007"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/3007\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=3007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=3007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=3007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}