Hi
We are using vault standard integrated with Visual Studio. We have .less files and the resulting .css files in our project and under source control. On save of the .less file, we generate the .css file.
Editing the .less file automatically checks the file out of vault, but not the .css file. We have the .css file as a dependant file within the project.
Is there any way to make both the .css auto checkout when the .less file does?
Many thanks
Automatically Checkout .less and .css files
Moderator: SourceGear
-
- Posts: 2
- Joined: Thu Aug 21, 2014 4:30 am
Re: Automatically Checkout .less and .css files
When your .css file is generated, is there first a .css file already present that it is replacing, and is that original file set to writable or read-only?
Automatic check outs can only occur on files that are read-only.
Automatic check outs can only occur on files that are read-only.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
-
- Posts: 2
- Joined: Thu Aug 21, 2014 4:30 am
Re: Automatically Checkout .less and .css files
Hi Beth
Yes, the file is already there and under source control. Therefore read only and not checked out.
What I am after, is for it to work the same way as aspx, aspx.cs and aspx.designer.cs, which all checkout when you edit any one of them.
Thanks
Mike
Yes, the file is already there and under source control. Therefore read only and not checked out.
What I am after, is for it to work the same way as aspx, aspx.cs and aspx.designer.cs, which all checkout when you edit any one of them.
Thanks
Mike
Re: Automatically Checkout .less and .css files
Just because a file is in source control does not necessarily mean it is read-only. I'd still recommend checking to see if it's writable or read-only after it's generated.
After your .css file is generated, could you open your Vault GUI client and check the status of the .css file. Is it set to edited, renegade, or have a blank status?
After your .css file is generated, could you open your Vault GUI client and check the status of the .css file. Is it set to edited, renegade, or have a blank status?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support