When I debug, I often set the Debug Propreties/Web/Start URL so it quickly navigates to the page I want to work on. However, I need to keep the various URLs in a text file since there is no pull-down for recently used URLs in properties.
Should I be setting this somewhere else?
Related
Sometimes I want to the project to start with the currently selected page, and other times I want the project to start without opening a page.
I would really like to not have to go into the project properties every time I want to switch... if I have to do that it defeats the purpose and I may as well just always let it open a page even when I don't need it and just close it.
So I would like to leave the setting such that it opens a page when I start debugging, but I wish I had a shortcut that would allow it to start without opening a page (again, without having to go into project properties to change anything).
This doesn't appear to be possible as far as I can tell, but there are some things in Visual Studio I'm less familiar with like the Command Window, or possibly there is a Macro extension or something like that it could be done with. So I thought I'd ask just in case.
I have a blazor project. But when I try to debug it (visual studio 2022) the script documents always pops open. For the most part this wouldn't be a big issue if not for all the /VMxxx files that pop op and even clutter the search results (and create a performance issues)
In previous stacks I encountered the hint to disable the javascript debugging. But both in tools => options => debugging as below the green "debug" arrow this option is already disabled while those files (and their impact) keep popping up.
Anybody an idea how to resolve this? As far as I can tell/remember it's something that popped up a few weeks ago and that wasn't there earlier
I'm not 100% sure but if other people have the same issues. The next steps seem to be the prerequisit
as long as your not logged in the application, visual studio won't create any /VMxxx file spam. It creates a limited number of files, but
those are normal for debugging
The moment you login to your blazor application you get a lot of /VM files with "unchanged" as text
It seems to be only the case if you're working with a prerendered blazor app. in other cases it also seems stable
There seems to be some kind of connection to /connect (and not only /authorize as in the documentation). Adding this endpoint to the serviceworker and prerender exclusions won't help
Removing the hot reload (which creates websocket calls that could be the origin from the eval/VM files) also doesn't seem to work
If you look into the debugger at this point and you add some random pauses. One can notice that it will always pause in some kind of mono code or in the Authenticationservice.js . It seems as if the debug code and the authenicationservice.js somehow create some interference and thus fireing some contiousl event flow with an in between time of only a couple of milliseconds
The only workaround is to turn off all javascript debugging, but in the code (useWasMDebugging) as in visual studio
Using VS 2010 -- and later VS Community 2015 -- I've been trying to make a simple Windows client app that will cycle through a list of URLs and display them in the web browser control. Specifically, it's a list of my favorite online comic strips. However, whether it's in the VS 2010 environment or the VS Community 2015 environment, the web browser control does not display all of the elements on the page. Nor will they show if I run the executable outside the development environment.
For example, at this URL, which is the Zits comic website, most of the page shows, but not the comic strip itself. At another, it shows the strip but everything on the page beneath the strip is blank. Odd, though, is that the elements appear to be there, just not visible. Running the mouse over an anchor element, for example, changes the cursor to a hand, and clicking the invisible link works.
I've looked at the source code for the pages, the code shows the elements to be there. I can't see anything in the source that shows why it wouldn't be showing up.
As I said, it does the same thing for VS 2010 and VS 2015.
Can anyone see what I'm doing wrong?
Figured it out. It's a crappy way of having to do it, but it turns out the web browser defaults to IE7 mode, and as far as I can find, the only way to correct it is to add a registry key to set the emulation to IE11.
https://msdn.microsoft.com/en-us/library/ee330730(v=vs.85).aspx
Seems like the web browser control, especially in VS 2015, would be a little more flexible than that. But it is what it is, and since this is for my own personal use, I don't have to worry about changing any registry keys in another user's machine.
Do you wish to reload the project? Where's the Reload All option.
Vote for this question and hopefully MS will implement a fix in VS2020.
With pleany of projects in a solution I for one dread doing an svn update.
This has been an issue from VS2003 but after a decade of clicking mindlessly on buttons it's getting on my wick.
Does anyone have a hack / registry entry / secret way of saying yes short of saying ignore (quick), closing and reloading the solution?
There are a couple of options you can tweak for this scenario. Both are under the Documents Options
Tools -> Options
Environment -> Documents
The first option is to just uncheck "Detect when files changed outside the environment". This will stop the reload dialog but will force you to manually reload.
The second option just below it is a bit better "Auto-load changes, if saved". This will just automatically load the changes without prompting you for every project.
Personally though I would go a slightly different route here. The problem is occuring because your managing your source code control outside of Visual Studio. If you switched to using an addin to manage within Visual Studio it would remove these problems altogether. For svn there are several free packages available including Ankhsvn which is fairly popular
http://msdn.microsoft.com/en-us/library/ms165643(VS.80).aspx
DetectFileChangesOutsideIDE
Get/Set (Boolean)
Determines whether the environment automatically reloads files opened in the IDE when the operating system notifies the IDE that the files have been modified on disk.
EDIT:
Some clarification, as that page isn't immediately obvious.
Tools Menu->Options -> Environment->Documents->Uncheck Detect when file is changed outside the Environment
Is there any way to associate a web page with a project in Visual Studio, and have it load up in the IDE? For example, I have a project who's task list is maintained on a web site. It would be ideal to see those tasks within the IDE instead of a separate page. I can accomplish that now by following these steps:
Press Ctrl-Alt-R to open a Web Browser page
Change the URL to my desired path
Position the page as desired (like in its own tab group, off to the right of my code)
It would be nice to have a link somewhere in my project that I could click and open this page in the IDE without changing the URL every time. I have several different projects that would benefit from this. Any ideas?
Something like this happens with Visual Studio Team Foundation Server. The various documents and guidance associated with your current Team Project area accessible from within Visual Studio, in the Team Explorer window.
You can also create a Guidance Package to apply various commands and pieces of documentation at appropriate places within your projects. see Guidance Automation Extensions and Guidance Automation Toolkit.
Nice idea. The only thing that I can think of is via Visual Studio Extensibility. Basically,
Define an MSBuild property in the project file or a custom field in the solution file that has the project url.
Write a VS package that subscribes to the solution load event or something similar (I am not familiar with VS object model but I am sure there is an event like that) and looks for that custom field and extracts the url if it exists in the solution or the project file and then opens a web browser within VS that points to that url.
Here's my quick hack around this problem:
Create a text file in the project. I called my "notes.txt", and I use it to store notes, ideas, etc. that don't have a home elsewhere in the project.
Add the web link to the top of the file.
Open the text file in the IDE and put it in a new tab group. I put mine in a vertical tab group off to the right.
Drag the separator as far over as it will go to "hide" the tab group. This way it's always open and available but not taking up much space.
When you want the web page, "show" the tab group (i.e. drag the separator back) and ctrl-click the link.
This has the added benefit of opening the web page in the same tab group as the text file, so you can push them both aside when not using them.
I'm sure there's more that could be done by writing packages as others have suggested, but this was a low-effort way to get me close enough to what I wanted. I'd love to hear other suggestions or modifications that might make this setup better.