Moving Project folder within solution in VSS - visual-sourcesafe

I have a solution in VSS with this structure (simplified):
Solution1
|-Project1
|-Project2
|--Project2
|-Project3
You see the second Project2 folder?
Somehow it got inside that wrapping project2 folder.
How can I move painlessly all content of Project2 one level up,
so that I wont have Project2/Project2?
Thanks

You can try the steps below:
Backup the solution
Open VSS Explorer, move project2 folder
Open VS, go to File->Source Control->Change Source Control, update the server path of Project2
Save the solution.

Related

How can share code/files/folders between projects in same solution using Visual Studio?

How can copy all files and folders in 'Folder' from 'ProjectB' to 'ProjectA'
Solution
*ProjectA*
*ProjectB*
**Folder**
SubFolder
Files.extension
SubFolder
SubFolder
Files.extension
In visual studio i have created two different project in same solution.
I use AngularJS in both of projects, i have create some mine components for management data. Also i use AngularUI routing and i include all components as dependencies.
How can create a copy link for folder 'Folder' from 'ProjectB' that can include in 'ProjectA' ?
For now, i have duplicated all files, so if any change has been place in one project that include 'Folder', i must copy/paste folder 'Folder' to other project, so both projects have same files and code.
SOLUTION
In windows you can create linked folder from command prompt with this command 'mklink /D target source'. So any change to one file will bind to other always

Keep CLion's project files separately from the project

Is there anyway to keep CLion's project files (i.e. .idea directory) in a separate directory than the project? This feature already exists in IntelliJ IDE but I can't find something similar to CLion...
I'm looking for a structure like this one:
~/my_project/CMakelists.txt
~/my_project/other_source_files
~/project_files/my_project/.idea

Build from a Solution folder into a specific subfolder of the output folder

I know how to move built .dlls to a folder using post-build events to copy the files, or using the output path setting.
Can I do something like that for all projects in a solution folder, where I wouldn't need to set up build events. I want all projects in a solution folder "SomeDir" to be moved to a "SomeDir" folder when built.
"SomeDir" would be the subfolder of the main output folder
Thanks

Copy Files on Build without .sln files - Visual Studio

I have a project in VS that doesn't have a .sln file in it, let's say it's a Java project (or any unmanaged code. However, I'd like to copy everything: the root folder and all of it's subdirectories over to another folder (eventually in the same domain) after Build. Is there an easier way to do this than include an empty .csproj and use MSBuild to copy?
The folder structure looks something like:
{Root}
|A
|C
|B
...

Visual Studio Test Project - Does not copy folder on deployment

Here is the problem:
1. Create a TestProject in your Visual Studio solution.
2. Open the .testrunconfig file and under the 'deployment' menu item, select the 'Enable Deployment' checkbox.
3. Now click on 'Add Directory...' button and add a folder which has some files in it.
4. Run the test project (use a dummy test).
Ok, now go check the TestResults folder: You will see that all the files got directly copied (to the top level)- the folder itself is not copied (with the files under them). This messes up my paths during testing. Can anybody tell how to get the folder copied instead of just the files underneath ?
Thanks.
Use the [DeploymentItem] attribute on the test classes that use it. You can specify a directory:
[TestClass]
[DeploymentItem("blahblah\\myDirectory", "myDirectory")]
public class MyTest
{
}
Note:
DeploymentItem is very slow when starting the tests. It seems to copy 2 files per second.
You can specify the attribute on a test base class. But it does not always work if you have more than one test project.
You can probably specify it on a TestClass that has a method marked with [AssemblyInitialize]. Then you have only to provide it once. Not sure, you have to try.
The source directory is relative to the solution location. This is hardly documented.
Open the .testsettings file in notepad. Now, you should see that for every folder to copy
<DeploymentItem filename="FolderName\" />
Change this to
<DeploymentItem filename="FolderName\" outputDirectory="FolderName\" />
The other option you have is to create another folder beneath the original folder, and then that folder will be deployed to the out directory. For example you can have this structure:
TestFolder/
TestFolder/TestDeployment/
And then in the testrunconfig you still select the TestFolder folder and the TestDeployment folder will be deployed to the out directory.
I just had this problem too today. I solved it by adding a folder called "deployment_files" in the project that contained the required folder. Then I put the required folder into the "deployment_files" folder. THEN, I opened the LocalTestRun.testrunconfig file under the "Solution Items" folder in the Solution Explorer. Went to the "Deployment" panel in the testrunconfig property window. Added the "deployment_files" directory to the deployment and voila. The folder within that was copied to the test results Out folder.

Resources