【发布时间】:2016-04-05 13:04:04
【问题描述】:
执行 cspack 命令时出现以下错误 “错误 CloudServices051:XML 规范无效:命名空间 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition' 中的元素 'WebRole' 的内容不完整。预期的可能元素列表:命名空间 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition' 中的 'Sites'。”
<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="CloudService1" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
<WebRole name="WebRole1" enableNativeCodeExecution="false">
<InputEndpoints>
<InputEndpoint name="HttpIn" protocol="http" port="80"/>
</InputEndpoints>
<ConfigurationSettings/>
</WebRole>
</ServiceDefinition>
【问题讨论】:
-
由于几乎没有文档,我在尝试使用 CSPack 时没有任何运气。你想完成什么?
-
我刚刚开始在 Azure 中编写 hello world 程序,并开始关注一本书。在书中作者建议使用命令行工具,因为它可以让初学者很好地了解技术。无论如何都会切换到MSVS,但在此之前想调试这个问题
标签: azure