【问题标题】:Xamarin Studio: Rebuild project error with error : The "DebugType" parameter is not supported by the "XamlCTask" taskXamarin Studio:重建项目错误并出现错误:“XamlCTask”任务不支持“DebugType”参数
【发布时间】:2017-05-19 00:49:48
【问题描述】:

我已经设法通过删除下面 xml 文件中的行 DebugType = "$(DebugType)" 来重建项目。这条线的真正作用是什么以及为什么它可以解决我的问题。我有错误,因为我从源代码树中提取了新代码。

<Target Name="XamlC">
    <XamlCTask
        Assembly = "$(IntermediateOutputPath)$(TargetFileName)"
        ReferencePath = "@(ReferencePath)"
        Verbosity = "2"
        OptimizeIL = "true"
        DebugSymbols = "$(DebugSymbols)"
        />
</Target>

【问题讨论】:

    标签: xml compiler-errors xamarin-studio rebuild


    【解决方案1】:

    我通过简单地重新启动 Visual Studio 并在解决方案中进行重建解决了这个问题。

    我什么也没做,项目成功了。

    按照这个想法,在您的情况下,重新启动 Xamarin Studio 应该可以解决。

    【讨论】:

      【解决方案2】:

      按照此处的说明为我修复了它:https://forums.xamarin.com/discussion/95724/xamarin-forms-2-3-4-247-update-project-wont-build

      我不得不关闭 Visual Studio,删除所有项目中的所有 bin/ 和 obj/ 目录,然后重新启动。简单地清理或删除单个项目中的目录而不重新启动是行不通的。

      不确定它是否与它有关,但它似乎是在重命名程序集后开始的。 iOS 没有遇到这个问题。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2020-09-15
        • 1970-01-01
        • 1970-01-01
        • 2016-08-04
        • 2015-10-27
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多