I am new in TFS, i have did GetLatestVersion but all newly added file in TFS was not getting in visual stdio but i can see those added file in TFS Server. Please suggest?
Click on the Show All Files in solution explorer to see the newly added file. It will be greyed out. Right click on the file and select Include to get it added to your project or soltion.
Common problem is that file will be present in source control but not included into the solution.
You can do it this way:
File > Source Control > Advanced > Open from Source Control
Find you Team Project
Open its .proj, .sln file, whichever is appropriate
Select 'Yes' / 'Overwrite' if it says you have the same files locally
This will ensure you get all the files from source control, rather than just those in your local project definition.
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 want to make a backup from the whole project. I also need to rename every backup. I'dont like the way to copy the project folder and rename the folder and the project file.
I've already tried to make it like that:
http://jasonfaulkner.com/VisualStudioExpressProjectBuildBackups.aspx
But it doesn't work, I am always getting the error "Invalid parameters"
Does anyone already tried this?
Thanks
The DPack extension for Visual Studio includes the Solution Backup tool that creates a zip archive of the solution and auto names it.
Manually edit .sln file
This method is entirely aimed at renaming the directory for the project, as viewed in Windows Explorer.
This method does not suffer from the problems in the Remove/add project file method below (references disappearing), but it can result in problems if your project is under source control (see notes below). This is why step 2 (backup) is so important.
1- Close Visual Studio.
2- Create a backup of your .sln file (you can always roll back).
3- Imagine you want to rename directory "Project1" to "Project2".
If not using source control, rename the folder from "Project1" to "Project2" using Windows Explorer.
4- If using source control, rename the folder from "Project1" to "Project2" using the functions supplied by source control. This preserves the history of the file. For example, with TortoiseSVN, right click on the file, select TortoiseSVN .. Rename.
5- In the .sln file, edit all instances of "Project1" to be "Project2", using a text editor like NotePad.
6- Restart Visual Studio, and everything will work as before, but with the project in a different directory.
Alse would recommend TFS, a powerfull tool to do what you pretend. You will be able even to recover previous versions of specific files,if you have any error and you have troubles find it you can see what changes you did since last "check in " etc. There are many options
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 :
I am having some issues with VS C# 2010. Upon create a project I can not seem to locate the project files after saving.
On my laptop they store to C:\Users\james\Documents\Visual Studio 2010\Projects but on my desktop they are being stored in C:\Users\james\AppData\Local\Temporary Projects\mediaplayer
I can seem to locate this folder, even when using the variable %appData%. There is no Local, or Tempory Projects folder. At least I can't see them.
I much preferred the project being stored in Documents. Is it possible to change this? If not, how can I physically access the folder with my project within it?
You can change default folder for new projects in Visual Studio settings.
Click Tools menu
Click Options
Find "Projects and Solutions"
Choose "Project location"
AppData folder is hidden. You have to type its address in address bar manually or you can enable view for hidden files in Windows Explorer.
For Visual Studio 2019 & 2017 :
Click Tools menu
Click Options
Find Projects and Solutions
Choose Locations
and edit the projects location box (the first one)
When you first fully save everything (or exit and choose to save) the project files will be saved in the expected location. It's only in a temporary location until you explicitly save.
C:Windows\Users\"username"\source\repos
this the location of all your projects.
thank you
Projects are stored in Temporary Projects under some settings only if you never save them. If you save the project (File → Save All) then you can choose where to save it. The default is the Projects folder inside your Documents.
Right-click on the tab name of any file you have open and select 'open containing folder' to get there quickly.
Just thought I'd add this as was annoyed at not seeing the file path names when a file just opens via VS by default. (eg, windows terminal app settings menu)
By default Visual Basic 2010 (Or Visual Studio) doesn't notice you when a project is backed up. You can manually check it
Project Backup Location:
You can find the project backed up in C:\Users\<User Name>\Documents\Visual Studio 2010\Backup Files hope that helps.
For you case:
Location to backup project should be C:\Users\james\Documents\Visual Studio 2010\Backup Files\mediaplayer