Autocheckout code behind when using RazorGenerator

If you are having a problem using Vault, post a message here.
Post Reply
JohnBot
Posts: 17
Joined: Fri Apr 15, 2011 2:27 am

Autocheckout code behind when using RazorGenerator

Post by JohnBot » Fri Jun 03, 2016 7:12 am

Hi

When using Razor Generator to build MVC views into your dll, each View cshtml file gains a cs file behind it. For example, index.cshtml gets a backing file of index.generated.cs.

If you edit a view then that view is automatically checked out by Vault however the cs file behind is not and remains readonly. This means that when the view is saved, the cs file is not regenerated.

Is there a way to configure Vault so that when a cshtml file is checked out, a corresponding cs file will also be checked out?

Many thanks

John

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Autocheckout code behind when using RazorGenerator

Post by Beth » Fri Jun 03, 2016 9:24 am

Sometimes Visual Studio add-ins do not trigger source code control events within Visual Studio's SCC events.

The best immediate option would be to use the Vault Enhanced Client and then use CVS mode. CVS mode is set in the Vault Tools - Options - Concurrent Development Style. Just click the button for CVS mode and allow it to change the options. CVS mode will work on files that have had a fresh Get performed on them.
Beth Kieler
SourceGear Technical Support

Post Reply