问题
Using the following steps (taken from page 39 of "Pragmatic Guide to Subversion"):
* Using Windows Explorer, right-drag the file to a different location in your working copy, and choose "SVN Move versioned item(s) here."
* Commit your changes by right-clicking the base of your working copy and choosing SVN Commit...
...I moved several files into new folders I created within my project (Classes, Data, Forms).
When I then re-loaded the project in Visual Studio and mashed F6, I got five of these err msgs:
Unable to create a manifest resource name for "ChosenPlatypi.resx". Could not find file 'C:\duckBills\duckBills\ChosenPlatypi.cs'.
So I saw that all of the files that I had moved over in Explorer were NOT in their folders in the Solution Explorer, but were in their previous location (directly below the project), but now with a red x and a yellow warning icon on them.
So I tried dragging them into the folders I had created (which I had already done in Windows Explorer), but that gives me the error, "The source file ChosenPlatypi.cs could not be found"
UPDATE
So I decided to "start over" by reversing the changes (In Windows Explorer, right-clicked the base/trunk directory, selected Tortoise SVN | Show Log, highlighted the change that wreaked the mayhem, and selected "Revert changes from this revision."
The solution in Visual Studio now compiles again, BUT the files that I had previously moved into new subfolders I created are decoated with a yellow plus sign and, beneath those, red pinwheel (or ...????) icons/glyphs.
ONE of the subfolders I created is still there (Forms), and ONE of the file sets (*.cs, *.Designer.cs, and *.resx) I copied into it is still there. I don't know what, if anything, I did differently with that file move...
回答1:
Did you move the files in the Apache Subversion repository or on the file system (i.e. on the disk)? If you are moving or renaming files, do it in the repository and then update your local working copy.
If you have moved them on the file system, the "red X" icon means the file has been deleted and the "yellow warning icon" means a conflict that you should resolve. See Tortoise SVN explorer integration for more information.
After backing up any important changes, resolve any conflicts and then commit the changes for all the folders affected. Remember that the history is still present in the repository and you can just update to an earlier revision if needed.
If you intend to rename or move files around in a Visual Studio solution, consider using a Visual Studio plug-in like VisualSVN or AnkhSVN to make this much easier within the IDE. Moving them in the solution explorer will be much easier and hassle-free.
来源:https://stackoverflow.com/questions/12699828/how-can-i-un-quagmirize-my-rearranged-project