I also found this problem today. I didn't pay attention to it before, but I found that every time my colleague checked inCodeOr I will find some blank lines after checking in, and most of them are in comments.
For example
/// <Summary>
/// Set the timer status
/// </Summary>
This annotation will become
/// <Summary>
/// Set the timer status
/// </Summary>
In this way, there will be a lot of warning information during compilation, prompting that the comments are not correctly placed.
I checked it online and basically wrote it like this:
Solution: Enable Automatic Detection UTF-8.
Tools-> options-> Editor-> Auto Detect UTF-8..., check.
Cause Analysis: It may be caused by different identifiers at the end of the line when writing code. By default, the system checks the end of a row.
Solution: Remove the check at the end of the row, or change the content at the end of the row to a uniform one.
Remove the configuration of the row tail check: In the options-> environment-> document, there is a "check for the same row Tail During loading" hook removed and the check will not be performed.
Of course, if garbled characters may occur because of Encoding Problems, you can enable UTF-8 detection, in tools-> options-> Text Editor-> automatic detection without signature UTF-8 encoding, check.
The settings are as follows:
Solution 2:Format the end of the line:
Copy all the file content to notepad or text encoding tool (such as editplus), and then to vs.net. In this way, you can format the end of all rows.
There is another possibility:VSSVersion too low
Vs.netBindVSSRequirementsVSSIn6.0cAnd later versions. IfVSSThe version is6.0cThis may occur in the following versions. We recommend that you upgradeVSSTo6.0d. To solve the problem.
References:
Http://support.microsoft.com/kb/319899/zh-cn? Spid = 1116 & SID = 76