I thought it would be as easy as creating a new folder, copy-pasting source tree into it and referencing the lib from a source file. But the copied files do not show up under the new folder in Solution Explorer sidebar. Obviously there is more than that.
What do I need to do to make this work?
You need to click on the "Show All Files" in the Solution explorer toolbar, and then right click on the folders/files and select "Include in project".
Related
I am new to ASP.NET and I was asked to create a portal program which will be just a part of the existing ASP.NET portal project. Meaning, it will be just like 2 web pages and will be going to be added to the existing project. The thing is I have to do it in a separate ASP.NET Project file. I have the source code of the existing main project but I am not allowed to modify this unless the pages that I will develop are completed. How can I do it? I know I just have to create a new project but what is the next step after that? How can I import the one that I made to the main project? They mention that I just have to export it as DLL but I have no idea how to do that. Please help me.
Open your new project in Visual Studio.
Open the old project in Visual Studio.
Right click the name of your new project on Solution Explorer, select Open Folder in File Explorer
Copy the 2 new pages you created
Go to the Visual Studio Instance of your old project. Click the name of the solution and CTRL + V or Right Click > Paste. (If there is a folder let's say Pages where ASPX files are located, click and paste there instead).
Your new files might not be included in the project and if its happens, click the 'Show all Files' option on the Solution Explorer.
Right click on the 2 new ASPX files and select 'Include In Project'.
I am not sure if I understood you right. If you just have to export the dll from the project that you created, right click on your solution, open the bin folder, you will see a file named yourprojectname.dll. Copy this to your target projects bin folder using the steps mentioned above.
If I understood it right, you are being asked to created a classlibrary or something and not an aspx page. Again, I might be wrong, but others can help you if you are lucid about your requirement.
Selenium WebDriver
Visual Studio 2015
I am trying to add an Excel File that I have existing on my computer to the Solution Explorer in my Project, but when I try to look for the existing item (or add a new item for that matter) looking for an excel file nothing related to a xlsx File exists, not sure if I am missing a nuget package I have tried to download everyting i know pertinent to the project. please help
You don't add the file using the Add Item dialogue.
You can right click on the project in the Solution Explorer and go to Add and then Existing Item and find the file in the project directory.
or
You can just put the file in the project's folder directory, check Show All Files in the Solution Explorer panel, and then find the file, wherever you put it in the directory, right click and then go to Include In Project.
I have two projects. One where I can see the properties folder within the project and the other I can't. I have right-clicked on the solution and selected properties, but I see no way to add the folder.
I have tried (within Windows), going to the folder of my project and adding the folder that way, but I still need a way to associate the project properties with that folder I have added.
I've seen this thread. It says the folder is created by default when you create a project and if I delete them, I'll have to recreate it. I've never seen the folder on any of my projects, except one and I didn't delete it from the others, so not sure.
I attached a picture of what I am referring to in my project that actually has it if that would help. Thanks.
You need not just add folder in windows explorer, but also include it in Project (with 'Show all files' option, find this folder under project and 'Include in project' from rigth click menu).
OR, just create it from within VS (right click on Project -> Add -> New folder, and name it 'Properties')
I have created a project of Online Book Shop like Flipkart but now I lost my .sln file of this project, it has a database connection so how can I create a new .sln file and run my project??
I tried to make blank .sln file and want to add all files of my project but failed to do that so anyone has a solution share.....
Go to file-> New Project in Visual Studio. Then go to "Other Project Types"-> "Visual Studio Solutions". You should see "Blank Solution". Just create a blank solution. Once you have that right click on the solution and go to "Add"->"Existing Project" and select your projects.
Solutions contains projects. So you have to add projects to a blank solution.
So, first create a new blank solution. Then right click on the solution icon and select Add existing project. Then browse to the project folder and select the .*proj file.
Finally check if any external reference is missing, and add it to the project references.
At this point you should be able to build the solution.
I added a folder to my project by right clicking on the project and adding a new folder. Now I added the image to the folder (using copy paste in Windows File Explorer), but the solution explorer is not showing my added image. I did refresh the solution as well.
Also, in that folder, there is no option of adding an image, only Visual Studio files (new items etc)..
Why isn't Solution Explorer showing my image?
You just need to have an existing file, open the context menu on your folder , and then choose Add => Existing item...
If you have the file already placed within your project structure, but it is not yet included, you can do so by making them visible in the solution explorer
and then include them via the file context menu
You need to turn on Show All Files option on solution pane toolbar and include this file manually.
Click on the Project in Visual Studio and then click on the button titled "Show all files" on the Solution Explorer toolbar. That will show files that aren't in the project. Now you'll see that image, right click in it, and select "Include in project" and that will add the image to the project!
If you're having an issue where the Resources added are images and are not getting copied to your build folder on compiling. You need to change the "Build Action" to None from Resource ( which is the default) and change the Copy to "If Newer" or "Always" as shown below :