The "CompileXaml" task returned false but did not log an error?

Markus Schertler 41 Reputation points
2020-09-08T11:25:17.827+00:00

Hello,

i have a UWP Project with 2 DLLs. This did compile without problems. Now i copied the code to reuse it for a new project. But wenn i try to compile the message The "CompileXaml" task returned false but did not log an error comes. What can be the reason?

Universal Windows Platform (UWP)
{count} votes

2 answers

Sort by: Most helpful
  1. Slion 41 Reputation points
    2021-02-25T15:02:22.36+00:00

    Starting from a clean repository fixed it for me. Close visual studio, delete all files generated by visual studio, bin folder, obj folder, .vs folder, BundleArtifacts folder, AppPackages folder. Open your solution again, compiling, building and publishing should work now.

    1 person found this answer helpful.
    0 comments No comments

  2. Jussi Palo 6 Reputation points
    2021-03-12T13:35:52.877+00:00

    Just deleting the bin and obj folders was enough for me. No need to restart anything.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.