Wow, I just tried that and got the same behavior (meaning, it hasn't been fixed in post-v1 code). I'll file a bug for it. It could be solved by writing some code that uses the OM. Here's the snippet of code you would need (I haven't run it, so there might something that needs to be slightly tweaked). Note that you won't be able edit the new type (Designer vb files) in the GUI (you'll get the error you reported).
TeamFoundationServer tfs = new TeamFoundationServer(http://yourtfsserver:8080); VersionControlServer vcs = (VersionControlServer) tfs.GetService(typeof(VersionControlServer)); FileType[] fileTypes = vsc.GetFileTypes(); FileType[] newFileTypes = new FileType[fileTypes.Length]; Array.CopyTo(fileTypes, newFileTypes, 0, fileTypes.Length); newFileTypes[fileTypes.Length] = new FileType("Designer vb files", new String[] { "*.designer.vb" }); newFileTypes[fileTypes.Length].AllowMultipleCheckout = false; vcs.SetFileTypes(newFileTypes);
Buck
http://blogs.msdn.com/buckh |