在publish的时候,如果想使用Remote Desktop

解决Azure publish “the remote desktop configuration was not generated by windows azure Tools”问题

有时候会出现“the remote desktop configuration was not generated by windows azure Tools”问题。

解决Azure publish “the remote desktop configuration was not generated by windows azure Tools”问题

这是因为我们曾经手动的改动配置文件导致的。但是由于做CI Build,因此配置文件是根据环境来生成的,所以必须面对手工修改(其实也是程序生成)文件的问题。对于这个问题,可以通过下面的步骤来解决:

1. 打开ServiceDefinition.csdef文件,把下面的代码全部删除。

      <Import moduleName="RemoteAccess" />
      <Import moduleName="RemoteForwarder" />

2. 打开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="" />
<Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="" thumbprintAlgorithm="sha1" />

 

注意步骤要按顺序进行,否则ServiceConfiguration.cscfg文件又自动生成了,有时候你删除,它又生成导致开发人员非常恼火。

相关文章:

  • 2021-05-22
  • 2022-12-23
  • 2022-02-27
  • 2021-08-05
  • 2021-09-15
  • 2022-12-23
  • 2021-05-20
猜你喜欢
  • 2022-01-27
  • 2022-12-23
  • 2021-12-02
  • 2022-01-24
  • 2021-05-02
  • 2022-02-05
  • 2021-08-27
相关资源
相似解决方案