I am working on a ASP.Net project and I unloaded a folder "Reports" that had subfolders and RDLC files in it. The folder I un-loaded is from this path:
"C:\Users\TestUser\Documents\Project1\changerapp\Content\reports"
The folder Reports has some sub folders and RDLC files. Now I want to load the Reports folder like the same way it was before. But when I select "Add existing item" , it is not letting me add the folder (with all its contents). Rather it is making me select files inside that Reports folder. Any way to achieve this?
Figured out in 2 minutes after posting the question.
So we have to click the "Show all files" icon on top and select the folder we want to add back. Right click the folder and select "Include in the project" and the folder will be included.
Related
I have an old ASP.NET website. need to exclude folder from publishing , but keep that folder on server.
Folder: img contains many images marked as "content"
Publish method: FTP
In setting I have "Delete all existing file prior to publish" UNCHECKED, yet files are still being when publish.
For Visual Studio go to the Solution Explorer, right-click on the file you do not want to copy and then click on properties. Set the "Copy to Output Directory" to "Do not copy."
I am using Code::Blocks 17.12 on Windows, and would like to create a folder to house the header files.
By default, when I create a console project, a Sources folder is created virtually (there isn't such a folder on disk, but it appears as such in Code::Blocks in the Management window's Project tab.
How do I create additional folders? When I right-click on the project (in the Management window's Project tab), I don't see a way to create a folder.
After Googling around for a bit, I came across this post, although dated 2009:
http://forums.codeblocks.org/index.php?topic=11365.0
Combining that answer with mine, these are the steps for creating a folder in Code::Blocks:
On your disk (i.e. outside of Code::Blocks), create your folders and add any existing files that you need to it. In my case I created an Includes folder and copied existing .h files into it.
Right-click on the project name in the Management windows' Project tab, and choose Project tree. Tick the Display folders as disk option.
Right-click on the project name again, and choose Add files recursively....
A dialog box appears. Navigate to your subfolder and click OK. Another dialog box appears asking you to select the files to add to the project. By default all the files in the subfolder are selected, so click OK.
The folder will appear in Code::Blocks, under a folder called Headers.
You will also need to add the folder(s) that you created outside of Code::Blocks to the compiler's search directories by clicking on Settings -> Compiler.... Then click on the Search directories tab, select the Compiler tab, then click Add.
In the dialog box that appears, click on the folder icon and navigate to your folder. Then click OK.
I have deleted an app_data folder accidentally from my project in Visual Studio 2015. It was generated automatically and the database files was there in it. Now I want that folder back,so can you help me how to get that back in my project.
I'm leaning on a more positive side, so I assume you've only removed the folder from the vs project solution explorer.
You could add it back by clicking on the show all file button Show all file
and include back the app_data folder.
I'm facing out a strange problem while using ASP.NET MVC 4.
I have 2 "Web Site" projects:
The first named "MyWebSite"
The second named "MyWebSite.Support"
I need to include the scripts under MyWebSite into MyWebSite.Support, so i thought to create a bundle in MyWebSite.Support and to reference that directory (MyWebSite/Scripts) inside that bundle by using "IncludeDirectory"
The problem is that i didn't found a way to correctly do that. It simply doesn't work because the starting path for the IncludeDirectory should be "~", which is the project virtual root path.
PS: If you have another solutions they are welcome!.
I don't even know if it's a good solution (i usually am not a everything_related_microsoft developer)
You could add the scripts as a link to the other project. This will assure you that they are copied when you deploy and you can use them in bundles. To do that, right-click on your scripts folder and select "Add existing item". In the dialog box select the files you want to add. Instead of clicking "Add Item", click on the little arrow next to it and select "Add as a link".
This will not actually copy the files, but include them as a linked file.
This has several advantages:
Files are shared between projects at Design time
You only need to share the files you want, not everything
You don't need any IIS configuration
You can easily edit the same file from each project (without copying it)
The question says it all: where is the group and where is the "physical" folder?
So, to get the Resources group back, do this:
Right-click on your project icon in the navigation view on the left (blue icon).
Rename the group to "Resources."
That's it.
But what if you also want the Resources folder on your disk? Easy:
Open Finder.
Navigate to your project folder and create a new folder on the same level of the .xcodeproj directory, named "Resources".
Back in Xcode, select the Resources group and activate the "Utilities" view (all the way in the top right corner next to the Organizer icon).
Under the "Location" drop down box you see a small white-ish icon: Click it: A dialog called "Choose a directory this group represents" will come up.
Choose the Resources folder you created in step 2.
That's it. Now you can drag resources into the Resources group in Xcode and they will end up in the Resources folder on your disk.
I had the same problem by accidentally deleting the folder in the project.
For my environment (XCode v11), right click on the project in the project navigator and select "Add Files to ...
This will bring up your current project folder (if not, simply navigate to that directory) and then select the Assets.xcassets folder and click Add.
This will bring the assets folder back to your project.