Running multiple projects in visual studio - visual-studio-express

I'm running visual studio express 2012 on Windows 7 through Bootcamp. I have a solution with several projects, and when I start debugging it runs the first project, but I can't start new instances of the others (when I right click and choose debug -> start new instance it is grayed out).
I tried creating a new solution with two blank projects and I have the same problem.
Any ideas?

Right click on Solution -> Common Properties -> Startup Project -> Multiple startup projects -> Choose "Start" actions in drop-down lists. Now start debugging as usual.

Right Click -> Debug -> Start New Instance is not available for all types of projects. Usually projects of the type class libraires have this option missing.
Thanks,
Karthik

Use the new instance of Visual studio in order to debug the other project.

Related

LINQ to SQL designer not opening/timing out (VS 2022)

On Visual Studio 2022, Windows 11.
Linq to SQL tools is installed from installer (Individual Components).
When right clicking a dbml file and View Designer, it just sticks on this and eventually needs an end task:
Tried (to no avail):
Clearing all app.config connection strings in the same project (in case it was silently barfing on one of those)
Installing older .NET frameworks, ticking on Data Storage and Processing and Data sources and service references
Any ideas what might be causing this? (Ran OK under Win 10 / VS 2022).
Edit: I've had this after every new PC install with Win 11, VS 2022 (3 work PCs), but it seems to resolve itself after a few days. I now know why, see marked answer re toolbox.
I experienced the same problem on Win8 with VS 2015 and 2017 and 2019, Win10 with VS 2015 and 2017. I did not solve the problem. Do not know what causes this problem. But now on Win11 with 2022 I opened my problematic DBML file, it took really long time to open (during opening it showed Not responding etc.) but finally VS opened DBML file. Then I made a change in the designer (just moved class a little bit = change = auto-generated file will be re-generated after save) and saved. Now this particular DBML file is opened within a second. Try it.
Viewing the Toolbox and (optionally) resetting it (right click > Reset) seems to solve this. It seems the designer can't open when the toolbox is not initialised (or fails to initialise). It is often a while before I open the toolbox on a new install so I kept on encountering this problem.

Breakpoint is not showing for SSIS script task with VS 2015

I have a SSIS package with script task, and is created in VS 2015. I am able to edit script task and opens in VISTA (VstaProjects), set a break point and shows there. But when I close the VstaProjects solution, the breaskpoint disappears in Scripttask in dts package and if I run the task in debug never hits the break point. I am using,
SQL Server Data tool : 14.0.61712.050
SQL Server Integration servcie Designed 14.0.1000.169
Visual Studio Enterprise 2015 v 14.0.25431.01 Update 3
Specifically to the problem of breakpoints not saving in the project: ReSharper might be causing this issue if you have it installed.
For me, disabling "Debugger Integration" in ReSharper options fixed breakpoints not being saved when closing the VSTA project.
When you set the break-point, you must build the solution; save it; close VSTA; then click on OK. Failure to do any of these steps will wipe out the breakpoint.
See my answer here for more details. https://stackoverflow.com/a/49640300/4630376

Visual Studio Express 2012 annoying pop-up dialog on thrown exception

Problem description:
Whenever an exception is thrown and not catched a dialog pops up. I want Visual Studio Express 2012 just to break and stop grabbing all my input with this modal dialog window. Example of the dialog:
Wanted solution:
VS 2010 does not show this annoying pop-up window but something called exception assistant. How an I can get the same type of break on exceptions in 2012 as in 2010? Even if that's not possible I really want the pop-up to be gone while keeping the break.
Things I've tried to solve this problem:
Search for a solution on both Google and here on StackOverflow (some of the keywords I used: visual studio 2012, pop-up, window, dialog, exception assistant, exception, break)
Run repair on VS 2012
Uninstall and delete settings (folder: C:\Users\<username>\Documents\Visual Studio 2012) followed by an install
Tools -> Import and Export Settings -> "Reset all settings"
Enable the "Break when exception type is thrown"
Change settings in the: "Tools -> Options -> Debugging -> General"
Edit:
I'm using the Express edition, no exception assistant anymore! :(
Edit2:
Found a (very ugly) workaround using AutoHotkey:
#SingleInstance force
#Persistent
loop
{
WinWaitActive, Microsoft Visual Studio Express 2012 for Windows Desktop
WinClose, Microsoft Visual Studio Express 2012 for Windows Desktop
}
return
Based off of answers on the following forum, VS 2012 Express no longer has the exception assistant option:
http://connect.microsoft.com/VisualStudio/feedback/details/762652/enable-exception-assistant-option-missing-from-vs2012-express-for-desktop
Hopefully we'll see it back in future versions of VS Express. VS 2010 Express is still available to my knowledge, and 2012 can read 2010 projects without destroying compatibility. So if it's a big deal to you, you can go back to 2010 to trace the bugs. Not a particularly exciting solution, but I'm still impressed that Microsoft has given out as many features as they have in the Express editions.
In VS2012, when I unchecked Tools -> Options ->Debugging -> General -> "Enable Exception Assistant" I get the annoying dialog box.

Using an IDE to develop OpenSplice DDS applications

I keep trying to configure Open Splice on the Eclipse platform but I'm not making any progress. I use the Open Splice DDS in the Java Standalone mode. The Eclipse platform I work on is the Eclipse edition for Java EE developers (Helios).
The problem is: when I try to create a run configuration I need to select an application type from the left hand side menu. It seems that none of the available application types can be used to create a working run configuration for a batch file. I want to be able to start, stop, and open splice from inside Eclipse as well as to run the preprocessor and my applications without having to use a cmd console. I'm new to both Eclipse and OpenSplice and any help would be really important to me.
Thanks in advance.
If you are developing Java applications can now use OpenSplice Mobile which is a pure Java DDS implementation for j2se and Android.
OpenSplice Mobile comes with a mvn build system that can be easily used to create eclipse project (or simply imported into eclipse or IntelliJ).
You can find some examples at:
https://github.com/kydos/mobile-dds-demo
And get OpenSplice Mobile at:
http://www.prismtech.com/opensplice/software-downloads
A+
The problem is: when I try to create a run configuration I need to
select an application type from the left hand side menu. It seems that
none of the available application types can be used to create a
working run configuration for a batch file.
This explanation assumes you are in the Java perspective. Other perspectives will be very similar or the same.
Do not use the Run Configurations dialog box. In stead, select Run in the menu, which will show External Tools as its bottom item, which has a sub-item External Tools Configurations.... Clicking that will display a dialog box showing a list of possible configuration types on the left-hand side. Select the type Program, followed by clicking the New Launch Configuration icon on the top-left of your list. On the right-hand side, a number of edit boxes will appear allowing you to change the name of this launch configuration (which you can set to something like ospl start) set the launch command (like ospl.bat to be selected via Browse...), its arguments (like start) and several others like working directory and environment variables.
Click apply when done. From now on, the ospl start command can be run via the Run menu item, External Tools and then ospl start. Make this a favorite so it will be moved up in the menu to decrease the number of clicks.
The process can be repeated for any number of applications you want to start.

Why can't I see Microsoft.ReportViewer.WebForms version 10.0.0.0 in "Add Reference..." dialog?

I have a VS2008 Reporting Services project (database: SQL Server 2008 RC2). This project has been updated from VS2005/SQL2005.
I need to update the Report Viewer control to version 10.0.0.0. But when I install the Redistributable (http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=a941c6b2-64dd-4d03-9ca7-4017a0d164fd), it isn't added to the .NET-tab in the 'Add reference...' dialog!
I can see the Microsoft.ReportViewer 8.0.0.0 and Microsoft.ReportViewer 9.0.0.0 in the dialog, but no 10.0.0.0
I tried running uninstalls for everything ReportViewer related, and reinstalling the ReportViewer 10.0.0.0 control. But I still see both version 8 and 9 in the dialog, but no version 10!
Checking the GAC through Start->Run->Assembly I can see all three versions. I cannot remove 8 and 9 because they apparently are used by other programs...
This is driving me somewhat nuts...
What do I have to do to make this assembly available in the "Add Reference..." dialog in Visual Studio 2008??
Regards
Alex
OK, found a solution: Apparently VS2008 combined with ReportViewer2010 requires a little handy-work:
http://blogs.msdn.com/b/changliw/archive/2010/06/29/use-the-reportviewer-2010-control-in-visual-studio-2008-project.aspx
After I extracted the assembly DLLs from the GAC, I could add them to the 'Add reference...' dialog as described here:
http://www.csharp411.com/adding-assemblies-to-the-visual-studio-add-reference-dialog/
I hope this'll help another distressed soul! ;)
/Alex
Another possible cause of assemblies not showing in Add reference is the implicit target framework filtering. E.g.: Visual Studio 2010, .NET Fwk 4.0 target will filter assemblies targeting this particular fwk. To add Microsoft.ReportViewer.WebForms 10.0.0.0, I changed project's target fwk to 3.5, added the references and then switched back to 4.0.