From http://www.cnblogs.com/procoder/archive/2013/01/09/azure-configuration-files.html
在publish的时候,如果想使用Remote Desktop
有时候会出现“the remote desktop configuration was not generated by windows azure Tools”问题。
这是因为我们曾经手动的改动配置文件导致的。但是由于做CI Build,因此配置文件是根据环境来生成的,所以必须面对手工修改(其实也是程序生成)文件的问题。对于这个问题,可以通过下面的步骤来解决:
1. 打开ServiceDefinition.csdef文件,把下面的代码全部删除。
<Import moduleName="RemoteAccess" />
<Import moduleName="RemoteForwarder" />
<Import moduleName="RemoteAccess" />
<Import moduleName="RemoteForwarder" />
2. 打开ServiceConfiguration.cscfg文件,把下面的代码全部删除。每个ServiceConfiguration.cscfg都需要删除,否则格式检查会报错!!!
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="" />
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="" />
<Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="" thumbprintAlgorithm="sha1" />
Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="" thumbprintAlgorithm="sha1" />
注意步骤要按顺序进行,否则ServiceConfiguration.cscfg文件又自动生成了,有时候你删除,它又生成导致开发人员非常恼火。