Where to search for Microsoft.TeamFoundation.Framework.Client - c#

Hi does any of you know where can I find Microsoft.TeamFoundation.Framework.Client using nuget? I can't find it because I'm trying to create instance of TfsConfigurationServer.

The namespace "Microsoft.TeamFoundation.Framework.Client" is in the Microsoft.TeamFoundation.Client.dll.

These assemblies are shipped with visual studio for vs2013 located under the extensions tab.
see the following for an example of how to use the .dll's in a console application
http://msdn.microsoft.com/en-us/library/bb286958.aspx

Related

I am unable to configure/create a project with Specflow3 and VS2017

I am trying to create POM with specflow3 in VS2017. I have added below nuget packages. I am facing issues while setting up the project itself
Specflow.Nunit
Speclow.Tools.MSBuild.Generation
Specflow.NUnit.Testrunnen
Nunit test adapter plugin and specflow2017 plugin.
I have created a feature file and i am trying to build the solution. I am getting following error.
"Program doesnot contain a static main method suitable for an entry point." Kindly let me know the solution. It would be great help. Thanks in advance
Can you try to use specflow version 2.4.1
It seems you are trying to create it as a console application. Change the project to be a class library, or start from a test project template.

Microsoft.SolverFoundation.Common and Microsoft.SolverFoundation.Services dll missing in c#

Actually i want to use solver in my C# application. To add it as reference i downloaded and installed solver dll download in this site .
Then in my project i selected
Add->Reference->Browse->MicrosoftSolverFoundationForExcel.dll .
Now if i try to use using Microsoft.SolverFoundation.Common;
and using Microsoft.SolverFoundation.Services; , it is giving error while compiling. But if i use using Microsoft.SolverFoundation it is not giving any errors. Please guide me how to add these missing dll's.
After a long struggle I found the answer. Just go to Add reference->Assemblies->Framework->Microsoft Solver Foundation - Express Edition and check the check box. Thats it!

unable to find the namespace of a third party api

I have received a .dll file from a partner firm with an API that will be used for database logging. I have added it to the references and can see it in the Solution Explorer. The documentation provided gave me a code snippet which references the file with a different namespace than the file name. I am using Visual Studio 2013 Express.
using com.XXXXX.XXX.microsites.api;
When I want to use the EntityFramework, it is simply the name of the reference.
using Microsoft.AspNet.Identity.EntityFramework;
The reference is not even showing up with a different name when using IntelliSense.
I am using the recommend framework ASP.NET 4 in the documentation.
I am using the code snippet they provided.
I would personally use dotPeek (https://www.jetbrains.com/decompiler/) to decompile the assembly and see what the defined namespaces are. Not sure if there's anything build in to Visual Studio.
If you added the dll reference in your solution then try opening the dll in object browser and see if you see the namespaces listed there and then use the one needed.

Can't create test in VS2013, no Microsoft.VisualStudio.TestTools.UnitTesting namespace

I'm new to C#, .NET and VS; using VS 2013 Ultimate. I'm trying to create a unit test using what seems to be the "VS way" but can't figure it out.
It looks like the culprit is that I don't have access to the Microsoft.VisualStudio.TestTools.UnitTesting.Assert method or enclosing namespace... I've looked all around and can't find any references to this namespace. Is this something extra I need to install? At this point I have no idea what to look for.
I'm working around it with additional Main methods, which is a huge PITA...
welcome to .NET development!
By default, Visual Studio will add references to the most common namespaces/classes to your project when the project is created. TestTools.UnitTesting is not one of those namespaces, so you'll have to add a reference to the file where it lives, which is in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll.
Check out this thread for how to add references (I think your question duplicates it):
You need a reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll in your project. It's installed with VS so you should have it listed in the Add Reference dialog.
But the correct way would be to create project from "Unit Test" template that will add the reference in advance.
For VS2013, add reference to
Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
from
C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\PublicAssemblies

the type or namespace name 'directx' does not exist in the namespace 'microsoft'

I have been trying to include DirectX in C sharp project (Visual Studio 2010).
I installed DirectX SDK and included the components as:
using Microsoft.DirectX;
using Microsoft.DirextX.Direct3D;
When I try to compile, I get the error: the type or namespace name 'directx' does not exist in the namespace 'microsoft'
Some blogs mentioned that I need to add 'reference' - Microsoft.DirectX under '.NET' tab. But I couldn't find it over there. Neither was any facility to add it to the tab.
Any suggestion will be highly appreciated.
This was deprecated a long time ago. The last Direct SDK that still has the managed wrappers is February 2010. The download is available here. You'll get to pick the references you are looking for after you install that one.
Better not to use it, no future, look at something like the open source SlimDX or SharpDX projects.
There are various reasons why a dll would not appear on the .Net tab.There is specific registry configuration that makes certain dlls to appear on the .Net tab.
Alternatively use the browse option to add the dll reference manually to your project.
Project >> Add Reference
This is the way to add reference for Directx in C# Program :
Go to the solution explorer
Click references
Click add reference
Click Browse
Go to : "C:\WINDOWS\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\"
*usually this is the place of Directx Files located. This can be change with the installation of .net.
Select your DirectX package.
example :
(C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0\Microsoft.DirectX.dll)
Here is one way i have find. First you need to install DXSDK (i have June2010 and SDK for Windows 7). Go to "Add refference" dialog press "Browse" , go to something like this "C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0" or "C:\Windows\Microsoft.NET\Managed DirectX\v9.02.2904" then choose proper dll for example - Microsoft.DirectX.dll. So you can add "using Microsoft.DirectX" directive to your project.

Categories

Resources