Is there some way I can make blend reload a project which has been modified in Visual Studio? - expression-blend

I have a Visual Studio solution which is open in both blend 2 SP1 and VS2008 SP1 simultaneously.
If I make changes in VS, then switch over to blend, it notices that the project has changed and reloads things, however this is really unreliable. Sometimes it doesn't notice changes, and sometimes it does notice changes, but doesn't reload all the files that were changed. Notably the following:
If I have a xaml file open in blend, and edit it in VS, when I switch back to blend, often it does not pick up the edited source code
If I add a new file to the project using VS (an image or xaml file or anything), and switch back to blend, it does not show the added file.
The only way I've been able to get blend to notice these changes is to close the project and re-open, or to quit and re-start blend. This is really annoying. What I'd like to do is force blend to reload the project without having to close and re-open it.
This seems like something which should be obvious and easy (F5 would be nice), but I've not been able to find anything! Help!

After watching a TechEd video of Jonas Follesoe doing some silverlight dev in blend, I noticed he kept repeatedly doing a "Rebuild Solution" from inside blend.
I tried doing this, and it seems to have made the problem go away. I'm not entirely sure if it's fixed, but it does seem to be a bit better now.

Related

VS 2010 - Adding additional projects to Solution

At work we have just upgraded from VS2008 to VS2010 (keeping up with the times, I know). In VS2008 I used to navigate to various project folders in Source Control Explorer and double click the vbproj file and it would add it to my current Solution (or create a new solution if there wasn't one). The functionality in VS2010 seems to be that when I do this it closes my current Solution and opens the new project on its own.
Is there any way to get the VS2008 functionality back? I know I can right click on my Solution and Add->Existing Project..., but that takes a lot longer. I've tried Googling this but have come up blank.
Thanks in advance.
No, this beaviour was taken out from VS between 2008 and 2010. In 2010 when you double-click a *.csproj or *.vbproj file it will always open it up in a "temporary solution".
This gets annoying when comparing diffs between local changes to your project file... in my view VS should open it in the editor if anything. /rant

Better editor for customizing VS 2010 menus?

Can't STAND the editor for configuring Visual Studio 2010's environment menus. It's soo freaking tedious now! Just try creating a sub-menu, or even adding several commands to your own toolbar. You have to do it one. Command. At. A. Time. closing the command window each time, then losing your place and having to start over again.
Does anyone know of any add-in or extension that lets you actually drag-drop menus and commands so you can more easily set up your enviro the way you want?
Right now, it's such a pain that half the time I just don't even bother.

Controls do not show up when dragging from toolbox

When I drag controls from the toolbox to an .aspx page or the designer for that page nothing shows up. I am using Visual Studio 2010 with an existing website project.
** Update
It seems to work now... I'm not sure if this was specific to one project, or a combination of things.
Is the project under source control or in a read only state?
I think the project is so messed up it just doesn't work. If I start a new project it works, so I'm going to leave it at that

Expression Blend 4.0 - Automatically reload edited files?

I do a lot of editing between Blend and VS. VS has a great option to "automatically reload changed files" so that I don't get prompted when I do some work in Blend and switch tools. Going the other direction though I don't see an option for Blend to automatically load files when changed. Is there a way to get rid of that dialog and always answer "yes?"
This is not possible at this time. I can say that it has been requested by a lot of folks and the team is aware of the issue.
I know it's annoying, but you can stop gap the issue by closing the XAML file(s) in Blend before editing it(them) in Visual Studio. The prompts only occur for open files, so when you return to Blend after working in VS for a time it won't prompt you. Then you can open the file and see the changes. This works in both directions: since I typically do my XAML work in Blend I try to keep the XAML files closed in Visual Studio.

Can't "go to declaration" in *.ashx files (Visual Studio 2008)

When I open *.ashx files in Visual Studio, I don't have the helpful "Go to Declaration" context menu when right-clicking on a function.
How can I restore this functionality (this is a new install)?
Thanks very much.
Click on the text you want to go to and key F12 if it's not showing up for you.
Much like Windows Operation Systems need to reboot when things start breaking down, Studio sometimes needs a restart if that doesn't work.
Obviously this doesn't get your menu item back, but it's a fix that you might prefer over selecting that from the right-click mouse menu.
This is a shot in the dark since I do not work with ASP-related stuff.
Short Answer
If your *.ashx files belong to a project, open the project first.
Longer Answer
Most of my work in Visual Studio 2008 is with C++ and C# code. If I open a .cpp file or .cs file in VS2008 independent of the project it belongs to, VS2008 doesn't give me the Go To Declaration context menu either. When I open files independent of the project they belong to, VS2008 (or any Visual Studio version for that matter) is little more than a glorified editor. To get the benefit of Go To Declaration and other features, e.g., Intellisense, I have to first open the project and then open the file from within VS2008.
Alternate Answer
If you are already doing this, you might try deleting the .suo file in your project directory and letting VS2008 re-create it.
Apology
Sorry if this was simply stating the obvious. I know I've been frustrated at times when I've opened a file outside the context of its project only to realize what I want to do requires me to open the project anyway. Someone new to Visual Studio might not realize the project is sometimes required.

Resources