Value cannot be null. Parameter name: type

Not sure what changed, but now when I build I get this error on every XAML file in my project. Has anyone ran into this issue before? Tried all of the usual fixes - del bin/obj, restart, clean rebuild, downgrade Forms...

Answers

  • JasonFox.2139JasonFox.2139 USMember

    Appreciate the response @ClintStLaurent, I hadn't tried building each project individually. Still no go though, same result.

  • MohammadShabanMohammadShaban ✭✭ USMember ✭✭

    did you manage to solve it?

  • MohammadShabanMohammadShaban ✭✭ USMember ✭✭

    you have 2 choices,
    first: re-create your entire project from scratch, this is painfull
    or
    remove [XamlCompilation(XamlCompilationOptions.Compile)] from all your xaml.cs pages, and it will work

  • GaetanFGaetanF ✭✭✭ USMember ✭✭✭

    remove [XamlCompilation(XamlCompilationOptions.Compile)] from all your xaml.cs pages, and it will work

    This only hides the sh*t under the carpet, excuse me the expression.

  • ClintStLaurentClintStLaurent ✭✭✭✭✭ USUniversity ✭✭✭✭✭

    Wish I could give you 100 likes for that @GaetanF

  • GreekTreatGreekTreat ✭✭ Member ✭✭

    @ClintStLaurent said:
    Clean the solution
    Close it
    delete the bin and obj directories from each project
    Reopen the solution.
    Build each project individually - NOT rebuild solution
    After all the projects are built... Then Rebuild Solution

    Thank you, it worked for me!!!

  • AmerAlfaqeehAmerAlfaqeeh SAMember

    @lClintStLaurent

    June 2018
    Clean the solution
    Close it
    delete the bin and obj directories from each project
    Reopen the solution.
    Build each project individually - NOT rebuild the solution
    After all the projects are built... Then Rebuild Solution

    Thank You.......... work fine 100%

Sign In or Register to comment.