Browser links are not showing in Visual Studio 2013 - visual-studio

I am using Visual Studio 2013. I don't no what happened to VS,now it is not showing Browsers list.How to overcome from this problem please suggest me.

Include screenshot of the project / solution list. I believe somehow you are opening a .csproj project file for a non MVC application even though it has all the code files that look like a MVC application. For instance someone may have created a windows form application and imported all the MVC / .cs files from a MVC ASP .NET project.
If you included that screenshot we could see the icon next to the project to rule that out as a potential cause.
Alternatively you can try reset your visual studio 2013 settings by doing the following:
1.On the Tools menu, click Import and Export Settings.
2.On the Welcome to the Import and Export Settings Wizard page, click Reset all settings and then click Next.
3.If you want to save your current settings combination, click Yes, save my current settings, specify a file name, and then click Next.
—or—
If you want to delete your current settings combination, choose No, just reset settings, overwriting my current settings, and then click Next. This option does not delete default settings, which will still be available the next time you use the wizard.
4.In Which collection of settings do you want to reset to, select a settings collection from the list.
5.Click Finish.

Related

Disable Visual Studio code style recommendations

Is there a way to get Visual studio to stop spamming me with these messages?
Visual Studio version info
I am also running Resharper 2021.1.2 which I have set up with the recommendations I want.
This is what I did for my .NET Framework project:
Open up the project properties, and click the Code Analysis tab. You'll see the active rule is Microsoft Managed Recommended Rules. To the right, there's a Configure button. Click that.
There's going to be a notice at the top saying "This is a Microsoft rule set and cannot be modified." That's ok. Click the dropdown for Microsoft.CodeAnalysis.CSharp.Features and uncheck all of the IDE#### hints that are bothering you.
Hit ctrl+s to save your new ruleset. Because this is now a custom ruleset you will be prompted with a place to save it. You can save it anywhere and name it whatever you want.
Now, back in the Code Analysis tab in your project settings, click the Active rules dropdown. Second from the bottom there is a <Browse...> option. Choose that and select the .ruleset file you just saved in the previous steps.
For me my active rule is now Copy of Microsoft Managed Recommended Rules, so if you see that you're on the right track.
The IDE hints should now be gone!
I should add that something still didn't feel right with me. I eventually went through and deleted all my .dotsettings files and .editorconfig files, and reset my resharper settings (Extensions -> Resharper -> Options... -> Manage... -> Reset All Settings). This also fixed my unwanted hint problems.

How to select debug profile in Visual Studio?

I have a .NET Core 3 (not ASP) project in Visual Studio 2019 that has two different launch profiles:
But whenever I launch my project, it always uses the first profile, even if I have the second profile selected in my project settings. How do I tell Visual Studio to actually use the other launch profile?
EDIT: This is what my toolbar looks like:
I have no dropdown to select a launch configuration. I found the "Start Debug Target" command and can add that to my toolbar, but it doesn't have a dropdown either, it looks just like the regular start button.
In projects you can configure the profile, not select it.
In order to select a profile you should choose it from dropdown list next to start button:
EDIT
On my VS the button is called Debug Target and is placed under Standard section in toolbar.
However, there's something fishy about this button in visual studio. When I removed button from visual studio I couldn't find it among other commands to readd it. After some googling I even found out there were problems with this in past.
https://developercommunity.visualstudio.com/content/problem/323626/if-you-remove-debug-target-from-toolbar-you-can-ne.html
Ewentually I found out two ways to bring it back.
Reset the standard toolbar
Add it from Add or remove buttons section next to standard toolbar

TFS 2013 view files and folders in TWA

I'm using Team Foundation Server 2013 which is connected to VS 2013. In the source control explorer, I've mapped folders to projects and it displays all the necessary files in VS so should I be able to view the associated files in TWA under the code tab when I navigate to the correct project? When I say files, I just mean the file name and folders not the actual source code or have I configured it wrong?
Check your Access Level in TWA. If you're defaulting to a Stakeholder then you wouldn't be able to see source code.
Go into the admin page for TWA, click Control Panel in the top left and select the Access Levels tab or navigate to:
http://yourserver:8080/tfs/_admin/_licences
Stakeholder may be the default so add yourself to Basic or Advanced (or set as default) and try again.
Along with setting my access level to advanced, I also checked "add to source control" on new projects and added it to existing projects and finally checked them in.

How can I force Visual Studio to trust all projects in a solution?

I have a solution for Orchard CMS, which, when I first opened it, prompted me asking whether to trust projects from an external source. I unchecked the box for "Ask for every project in the solution", and it opened fine. Now, I used a code generation tool to add a project to the solution while it was open. VS then detected a change, and prompted me to reload the solution. After reloading, I see most - save 1 or 2 out of a great many - projects failed to load. When I click on an individual project and reload that, I get asked whether I trust it again. When I click OK, the project loads fine. Only issue is I don't want to go and manually reload every project. I tried closing the solution and opening it again, but then most projects still fail to load.
You can reload multiple projects at once: simply select multiple projects in the Solution Explorer (e.g. via Ctrl+Click or Shift+Click), right-click the selection, and choose Reload Project.
I fixed this type of issue by following these instructions from the Visual Studio documentation.
Configure trust settings for files and folders
Basically:
Open Tools > Options > Trust Settings and select the Configure Trust Settings link in the right-hand pane.
Click Add in the Trust Settings dialog, and then select File or Folder.
Navigate to and select the file or folder you want to add to the trusted list.

How to change the default browser to debug with in Visual Studio 2008?

When you hit F5, the browser windows pops up, how do you set which browser the debugger users in Visual Studio 2008?
Update 1
I have looked for the 'Browse with' option and not found it.
Visual Studio opens the default browser instead of Internet Explorer
Update 2
If you are already debugging you dont have the 'Browse with' option.
Stop debugging and then its there!
Update 3
The accepted answer below is also relevant to changing the default browser to debug with in Visual Studio 2010.
(In the Project Solution window) Right click a page (.aspx, or on a folder)
Select Browse With...
Choose your browser
Click Set as Default
Click Browse
ASP.NET projects:
Right click a webpage (.aspx, or on a folder)
Select Browse With...
Choose your browser
Click Set as Default
Click Browse
ASP.NET MVC 1 projects:
Right click Default.aspx, then follow steps above.
ASP.NET MVC 2 projects:
As there is no Default.aspx, you need to create a Web Form (right-click project > Add > New Item) and follow the steps above.
If you use ASP-NET MVC, you need to right-click on Default.ASPX which will have a Browse With menu.
To permanently make Visual Studio open a project in IE without changing the default browser you can do the following:
Project Properties -> Web -> Start Action
Start external program: C:\Program Files\Internet Explorer\iexplore.exe
Command line arguments: Enter the url of the path to your start page ie http:\localhost\myproject\default.aspx
This won't allow you to debug client side script in Visual Studio though.
If you are using MVC 2 you do not need to create another project, just add component -> webform to the project then:
* Right click the webform
* Select Browse With...
* Choose your browser
* Click Set as Default
* Delete the webform
If you use MVC, you don't have this menu (no "Browse With..." menu)
Create first a normal ASP.NET web site.
I have passed this problem in VS2012. When I can't find "Browse with.." on the right-click of the project, I found it on File Menu -> Browse with. If it doesn't appear, first you have to click on menu bar, then try open file menu again. If it still doesn't appear, you can just go to Quick Launch on the top right of menu bar then type it "Browse with".
In VS 2010 just make the browser as your default broswer in which you want to run your application and there is no need to set anything in visual studio. I did it for google chrome and its working for me. I just made google chrome as my default browser and its working fine. I am almost sure that this should work in VS 2008 also.
First click show all files. Then in the bin folder choose any xml file and then right click and by selecting 'browse with' select your desired browser.
I find that the Browse With.. menu item only appears in Visual Studio 2010 when I Run as administrator. And in that case it is available even while in debug mode.
An easier way to do this is simply by selecting the arrow next to the Start Debugging:
Then in the Drop Down goto Web Browser and select the browser you would like to debug the site with, you can also select Browse with... to set the default as explained in other answers.
ie ---> Tools ----> Internet options -----> Programe ------> Make Defualt

Resources