Referenced DLL. In root, move to folder - visual-studio-2012

I have several DLLs referenced in my project. On build, they get dumped to the root directory.
How do I set a folder to which to copy these to and have the project reference them from the folder?
Basically, I want my output to have a folder called "whatever" and have my app reference them from the folder instead of the root.

Move your DLLs to the folder (source folder, as you have described). Then set your references to get the DLLs from that folder. (remove current reference, add reference, browse to your preferred folder).
In the /project/references (for the DLLs you have mentioned) set the property "Copy Local" to False.

Related

How to make Intellij (19.3) to perform absolute auto imports for python?

It seems the paths are relative to the root package. Should I define the project folder as the source root of the Intellij module, instead of the package folder?
Yes, Setting the project folder as the root will change the paths to be relative to that folder
Press Ctrl+Alt+Shift+S.
Click on Proj. Settings / Modules
Click on / Sources tab
Set as Source only the project root folder and mark as Excluded all folders that should not be considered as source or indexed.

How to create a folder and sub folder

How to create folder using live code. I am using linux operating system my current Directory is
"/home/user1/myproject/"
I want to create folder inside myproject
create folder pathName should work fine

Reference Dll not copying to bin even though copylocal is set to true

I have a project - projA to which I have added a reference for another project - projB which is located in the same solution.
One of the dll's in projB which has its CopyToLocal set to true. When I build the entire solution the dll is copied to the bin directory of projB but not to the bin directory of projA.
What needs to be set to get it to copy to the bin directory of projA.
Thank you,
gmat

Copying symbolic links but pointing to same files(copied) but different target base directories

I am trying to create a test environment by updating it with another test environment files. Heres my situation:
I have a directory SRC. It has directories "test_bundles" and "tools_bundles" which has all the required builds. Additionally, SRC has "latest" directory which has files "test_bundle_1", "tools_bundle_1" etc. which points to specific builds within directories "test_bundles" and "tools_bundles", i.e., symbolic links.
Now on a different Linux system, I have DEST directory which is regularly updated with contents of "test_bundles" and "tools_bundles" from the SRC directory. I also want to have "latest" directory in DEST that has same files as in "latest" within SRC directory, however, points to builds (these builds are same) inside "test_bundles" and "tools_bundles" within the DEST.
Note that files change their links to different builds and moreover, new files get added to "latest" within SRC as well. So whenever I do copy operation it should update everything.
I dont know what to call this. Am I trying to copy the SRC "latest" to DEST "latest" files (symbolic links) with links to different parent directory structure.
Note that my script is doing good by updating "test_bundles" and "tools_bundles". I just need a way for "latest" files with the test environment uses different base directories.
If the links in latest are relative there is nothing special that
needs to be done - parent directory names do not matter. – Michał
Politowski
Actually its the opposite, the links are not relative rather the
parent directory structure(tree) is different – user3685188
What Michał Politowski surely meant to suggest is that you should make the symbolic links relative in order to have your problem solved - and that is the most sane solution.

Copying a folder from pluginBasedir to the target project

I want one folder to be copied from my plugin's base directory (pluginBasedir) to the target project when someone installs my plugin. If I keep that folder within web-app, it gets copied. But I want to keep that folder under base directory.
Do I have to ovverride _GrailsPluginDev.groovy script?
Regards,
Paras
You can use the plugin's _Install script (in the scripts folder). Assuming the folder you want to copy is named 'foo' and the plugin name is 'bar', you can use this:
ant.mkdir dir: "$basedir/foo"
ant.copy(todir: "$basedir/foo") {
fileset dir: "$barPluginDir/foo"
}

Resources