Xamarin Studio: Rebuild project error with error : The "DebugType" parameter is not supported by the "XamlCTask" task
Asked Answered
U

2

6

I have managed to rebuild the project by remove the line DebugType = "$(DebugType)" in the xml file below. What does this line really do and why it can fix my problem. I have the error because I pulling the new code from source tree.

<Target Name="XamlC">
    <XamlCTask
        Assembly = "$(IntermediateOutputPath)$(TargetFileName)"
        ReferencePath = "@(ReferencePath)"
        Verbosity = "2"
        OptimizeIL = "true"
        DebugSymbols = "$(DebugSymbols)"
        />
</Target>
Unseemly answered 19/5, 2017 at 0:49 Comment(0)
O
6

I solved this problem by simply restarting Visual Studio and doing a rebuild in the solution.

I did nothing, and the project worked.

Following this thought, in your case, restarting Xamarin Studio should resolve.

Ostensible answered 4/6, 2017 at 12:40 Comment(0)
D
1

Following the instruction here fixed it for me: https://forums.xamarin.com/discussion/95724/xamarin-forms-2-3-4-247-update-project-wont-build

I had to close Visual Studio, delete all bin/ and obj/ directories in ALL projects, and then restart. Simply cleaning or deleting the directories in a single project without restarting did not work.

Not sure if it had anything to do with it, but it seemed to have started after a renamed an assembly. iOS did not experience this problem.

Downe answered 23/6, 2017 at 19:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.