How to add service references in VC++ with VS2013? - visual-studio-2013

With VS2008, we can add web services after setting VC++ projects to CLR.
But VS2013 doesn't give any option to add service references after doing this change.
Does anyone know how to add it?
Thanks a lot.

Run wsdl.exe with the /language:cpp option from the Visual Studio Command Prompt.
by Hans Passant

Related

TFS working folder

we are moving from visual studio 2013 to visual studio 2015, and it is necessery for us to work with both studio in the same folders. Is there a way to use that and how can I set the tfs to work with both visual studios
Kind regards and thank you in advance
Assuming you install both VS2013 and VS2015 on your machine. When you map a project from TFS to local path in VS2013, if you open VS2015, and select the workspace you create in VS2013, then you'll see the same local path in VS2015, you don't need to map it again (make sure your project can work in both VS2013 and VS2015):
I would highly recommend to not do that as you might end up seriously corrupting the workspaces. Can you explain a bit more on why is this so necessary? I have helped organizations migrate between various instances of TFS over the few years now and we have not faced a situation like this. If you explain your particular use case a bit more I can perhaps suggest an alternative way to do this.
Also if you are working with TFS you might find this tool useful
https://visualstudiogallery.msdn.microsoft.com/a6b04ebd-e025-4c90-b238-72b48f0dfbd2

VS 2010 Properties Page Fail to Show-COM object that has been separated from its underlying RCW cannot be used

I'm using Visual Studio 2010 Ultimate edition, but now it won't show the project properties page. Instead an error message show up saying
An error occurred trying to load the page.
COM object that has been separated from its underlying RCW cannot be used.
This error has plagued me for a long time. I tried almost everything (uninstall/reinstall/repair/uninstall addins, etc) except reinstall
OS.
Help me out. Thx a lot!
Finally I found out what had gone wrong. It's misbehaving addin - TestDriven.NET.
But things could be different for you. But anyway, it's addins.
The process to find this is that you Goto "Tools -> Options" dialog. Goto "Environment -> Add-ins/Macros Security" node. Uncheck "Allow add-in components to load". And then restart VS 2010 to see if the issue goes away. If it does, then it must be an addin in those folders specified. And next step is to enable addins to load, and remove the directories in the list one by one to identity which addin caused the issue. And at last, disable or simply remove/uninstall it.
Restarted VS 2010 SP1 solved my problem!!!
in my case it was the latest update of VSCommands for VS2010...
A complete UnInstall/Re-Install of the VSCommands did the job :)
This also happened to me for some unknown reason and it turned out I had to disable source-control plugin (the default one that had been happily working for a long time):
Tools -> Options -> Source control : set plug-in to "None" and restart VS.
I was facing the same issue in Microsoft Visual Studio Professional 2015 Service pack 1. I found that it was happening due to GhostDoc Community.
I upgraded GhostDoc Community 4.9.x to 5.1.x and issue get resolved in Visual Studio 2015 Service pack 1.

How to convert a solution from VS2003 to VS2005?

I have builded a solution in VS2003. Now i want to migrate to VS2003. I know that when I open the VS2003 solution in VS2005 the IDE will convert the solution to VS2005.
But I am getting the following error window when I click on convert in the conversion wizard:
e:\Test.vcproj can not be opened because it's project type(vc.proj) is not
supported by the version of the application.to open this use a version that support
this
How can I resolve this?
Any help is greately appreciated.
Your installed version of VS2005 does not include C/C++ support. Reinstall VS2005 and make sure you tick the appropriate checkboxes in the Setup, then you will be able to open .vcproj files.
I'm not 100% sure of the error in your case, but the only time I've seen errors like this it was because I did not have the appropriate components of Visual Studio installed. Make sure that your installation is configured with all the components you need and retry. :)
Try running this command using Visual Studio 2005 Command Prompt (if you're using Vista, make sure you "Run as Administrator":
devenv.exe /resetskippkgs
From here: /ResetSkipPkgs (devenv.exe)

The Microsoft.VisualStudio.Data.Interop.IVsDataProviderManager service could not be found

I'm using VS2008 to develop an app. Now, whenever I connect to database in Server Explorer, it shows me the report
The
Microsoft.VisualStudio.Data.Interop.IVsDataProviderManager
service could not be found.
And whenever I'm trying to Open my LINQ Datacontext in APP_CODE in Solution Explorer, it alerts a pop up msg which says
Visual Studio Unexpected Error
Can anyone help me so solve this problem please, thanks you.
Just goto start -> Run -> type devenv /ResetSkipPkgs
This solved my problem.
Happy Programming....................
Mohan
It is the services missing error. It's very easy to resolve; just go to TOOLS options and select the OPTIONS check the AUTO RECOVER option. It may be solved
If All those points above not worked ...try to reinstall your .NET Framework or install .net Framework 4.5.2
Regards

Is there a free Visual Studio addin for Nunit?

I'm cheap and don't want to pay for ReSharper or TestDriven.NET, is there a free visual Studio addin for NUnit?
You can create a blank project (Choose console application for example) and in the property of the project you can select DEBUG tag and select "Start External Program". Put the path of Nunit. Then, in the start option, the command line arguments select the DLL that contains all your tests (mine is always in the nunit\bin...). Then select "enable unmanaged code debugging" and you will be able to start the project inside VS and even use the debugger step-by-step.
This is a free solution.
Now you can use Gallio: it's open source. www.gallio.org
By the way TestDriven can be downloaded for free if it's for personal use or Open Source project.
I had to find a way to use .Net Reflector inside VS few days ago and when I downloaded TestDriven it cames with. Never got any popup asking me to paid.
NUnit actually ships with a basic integrated runner. It's not very good, and not very publicized, but unless Charlie has taken it out, it should be in the source.
I know this is an old question but another way to do this is to add an external tool from the tools menu to run nunit - set the arguments to be $(TargetName)$(TargetExt) and initial directory to $(ProjectDir)\bin\Debug
check out this link
This is an old question and things have changed since the answer was accepted.
You may try NCrunch to run tests automatically or manually.
If you're running Visual Studio 2012, there is a plugin written by Charlie Poole, one of the NUnit contributers, that makes use of the new Visual Studio Unit testing plugins.
Download VsTestAdapater - it's also in the extension manager.
Unfortunately it doesn't have much grouping options yet, either by run/not run - so you can't group by class, solution and so on. It also doesn't show you any stacktrace if a test fails, just a simple green tick or red box and a message.
I haven't used it, but NUnitit is a free Visual Studio Add-in for NUnit.
http://nunitit.codeplex.com
From my experience, the best add-in for visual studio is resharper. TestDriven.Net is also good for unit tests. Hope that helps
Also found this one : http://visualstudiogallery.msdn.microsoft.com/c8164c71-0836-4471-80ce-633383031099
It is able to launch your tests in debugger, however you need to recompile the code manually each time you change something - no auto run-build integration

Resources