I have an application which is written in VB6 and VB.Net. When reviewing changes in Team Foundation Server diff tool (in VS2012+) is possible to edit the file. The problem is that Visual Studio threats VB6 files like VB.Net and applies changes which cause syntax errors in VB6. The situation is especially annoying when merging in the merge tool.
Is it possible to either make VB6 files (.frm, .cls, ...) readonly or more preferably allow their editing as simple text (without automatic VB.Net formatting)?
Examples of destructive changes
Result is wrong syntax in VB6
Option Explicit
changes to Option Explicit On
SubCall
changes to SubCall()
(Adds Round brackets)
b as Integer, _
changes to b as Integer,
(line-continuation character ( _
) is removed)
Partial solution
It is possible to set an external tool e.g. Winmerge for VB6 extensions (Replace diff/merge tool in Visual Studio Team System with WinMerge thx to MarkL for a hint). However setting an external tool to every developer in a company is at least annoying.