'Complier warning C4634 XML document comment: cannot be applied: Discarding XML document comment for invalid target

Once I added a file header to a .h file in my WinRT/C++ project, I started getting a warning randomly: C4634 XML document comment: cannot be applied: Discarding XML document comment for invalid target.

I have applied same header in files A, B, C. At first I got 3 warnings. Then I made a blank space in file A and started build again. This time I got only 1 error and that was in file A. Not sure what could be wrong.

This is the sample:

/**
 * Copyright(c) TPCi 2007
 *
 * MoveCounter.h - Counter for strategic moves
 *
 * @author  :  XYZ
 * @version :  1             
 */


#pragma once

#include "MoveCounter.g.h"

namespace winrt::GenX::implementation
{
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source