摘要: 什么是Build Action? Build Action is how the file relates to the build and deployment processes.在Visual Studio 2010的Windows Phone工程中, 有多个build action。它们之间有什么区别呢? * None: 此文件不参与编译也不被输出。比如:工程中的文档文件, readme.txt。* Compile: 参与编译并输出。主要是代码文件。* Content: 不参与编译,但会被输出。* Embedded Resource: 此文件被嵌入到主工程生成的DLL或exe中。主要是阅读全文
摘要: Asp.Net MVC项目在编译代码同时编译View,需要手动修改Project文件。用Notepad或其他文本编辑器打开Project文件,或者直接在Visual Studio中Unload project,然后右键点Project,选择Edit Project菜单,将MvcBuildViews改为true,如下:<MvcBuildViews>true</MvcBuildViews>修改后保存并Reload project,此时编译代码的同时也会编译各个View。如果出现如下编译错误Error 47 It is an error to use a section re阅读全文
摘要: 客户带来一个虚拟机,结果C盘分了126GB。如下图所示:用CSUpload上传,会出现“TheVHDs logical size of 130048MB exceeds the system maximum of 66560MB”.错误。解决办法:收缩C盘空间具体步骤:1.Shut down theVM.2.Copy VHD fileto your machine from where you will be performing CSUpload.3.Attach locallycopied VHD from Disk Management Console.4.Right Clickand 阅读全文
摘要: 1.上传VHD文件到Azure Blob StorageVHDUpload程序的源代码在Windows Azure Training Kit目录Labs\ExploringWindowsAzureStorageVS2010\Source\Assets\VHDUpload,先编译成VHDUpload.exe。然后上传Uploads a virtual hard disk (VHD) file to Windows Azure page blob service.usage: VHDUPLOAD vhdFilePath blobUri accountName accountKey vhdFileP阅读全文
摘要: 使用Azure SDK 1.6 ,在Web Role和Worker Role里加载Azure Drive没问题。但是在VM Role里加载会出现以下错误:CloudDriveException 0x80070103 When Using Windows Azure Drive from a VM Role和微软的Andrew Edwards 讨论,发现是驱动的问题,需要手动安装驱动。The workaround for this issue has been published to MSDN:http://msdn.microsoft.com/en-us/library/windowsazu阅读全文