ROCKY: Need help

ROCKY: Need help

Old forum URL: forums.lhotka.net/forums/t/2732.aspx


david.wendelken posted on Wednesday, April 18, 2007

I just updated the c# version of the CslaSrd project in the CslaContrib project.

Unfortunately, I placed the new version in a sub-directory of the old version.

I don't know how to fix it with the tools and/or permissions that I have.

Can you move the contents of CslaContrib\CSharp\CslaSrd\CslaSrd to CslaContrib\CSharp\CslaSrd?

Or let me know how?

Thanks!

PS - take a look at the public Rules property and BrokenRules property of RuleBusinessBase.

You can use an existing business object class to test it, just change references from Csla.Validation.CommonRules to CslaSrd.Validation.StdRules.

Of course, your custom rules won't have been coded with the error messages the same way I did it, but the standard rules should work as is.  It's an easy fix to make custom rules compatible.

 

RockfordLhotka replied on Friday, April 20, 2007

I don't think it is a permission thing - it is a TFS feature thing.

I'll contact a couple friends who know more about TFS and see what they suggest - but it appears to me that the answer is to

  1. copy the files off somewhere safe
  2. delete the errant directory from your working directory and TFS
  3. copy the files to where they belong
  4. add them back into TFS

Obviously this will lose any history. Let me see what others think.

RockfordLhotka replied on Friday, April 20, 2007

Actually, looking at this a bit further - there are already files by those names in the target directory. So even if the Move option was available we'd be in trouble due to a conflict there.

I think you are going to have to delete those files and get your working directory in order, then re-add them, otherwise how are you going to merge any file changes and make sure the csproj file is correct, etc?

RockfordLhotka replied on Tuesday, April 24, 2007

OK, got it figured out with some help from Brian Randell.

The deal is this: you can move folders and you can move single files. You can't move groups of files.

Obviously you can't move a folder into its parent, so moving folders won't help you here.

Instead, you'll have to move each file, one at a time. And while you are at it, the files that already exist in the parent directory are ones you can't move, because you need to merge the contents of the two files. You can do that in VS or a text editor or whatever.

RockfordLhotka replied on Tuesday, April 24, 2007

Shoot, I didn't say how to move them.

In the Source Control Explorer you can right-click on a file and there's a Move menu option.

david.wendelken replied on Friday, April 27, 2007

Corrections to file placement made.  Thanks!

Copyright (c) Marimer LLC