I have recently inherited a c# .net v4 project from a former colleague which contains the following declaration:
using Microsoft.Test.CommandLineParsing;
I have search google and our entire repository tree for this but cannot for the life of me find the required DLL for this.
The part "Test" is the bit which is not being found so I assumed there was a Microsoft.Test.dll - No such luck!
Can someone enlighten me as to which MS DLL I need to reference in order for this to be used.
Thanks,
Gary
That namespace is from the TestApi project.
Related
I need to use this .NET class for one project I am working in (It's my first C# Project, I normally work in C++) https://learn.microsoft.com/en-us/uwp/api/windows.data.pdf.pdfdocument?view=winrt-20348
Unfortunately this namespace Windows.Data.Pdf is not available in my project and I can't find in the docu the dll name I have to link to, to be able to access the class. Does anybody knows which dll do I need?
Thank you in advance
Hi, I am a newbie in C# and visual studio. As Figure1 shown, I am trying to use the classes from other project in similar solution.
For example: I try to write "Using LibraryMS.Framework" at UserDto.cs from "LibraryMS.MasterSetup".
And I get the following error message:
"the type or namespace name 'framework' does not exist in the namespace 'LibraryMS' (are you missing an assembly reference?)"
Does anyone know how can I solve this?
Also, do you have any good ASP.net website development online tutorial?
Visual studio version: 2010
.Net Framework 4.0
Thank you.
Its asking you if you missed an assembly reference. So check the references in your class library for LibraryMS.Framework. If you can't find the reference then you can always add it by hitting "Add Reference" then under Reference Manager, click Project and select the class library which you would like to add.
Along these two days, finally I have find out what is going on. The root case is because I am using ASP.NET Empty Web Application instead of using ASP.NET Server Control. Thank you guys. :) now I feel that Programming is a fun thing. Many thx!
In PresentationFramework from .NET 4.5 there is a namespace called Standard. Look here for more info: What is the namespace 'Standard'?
The problem is that in my C++/CLI project I am using an unmanaged library, which also defines a class called Standard. So I get the following compiler error:
error C2869: 'Standard' : has already been defined to be a namespace
I cannot remove the reference to PresentationFramework, and I cannot stop using the said library. Is there anything I can do? Like un-importing the namespace?
P.S. I am using VisualStudio 2012. I think that an upgrade to 2013 might help, but that will require the whole team to move to it.
That namespace was added to PresentationFramework by .NET 4.5, I believe, and I don't think changing to Visual Studio 2013 will help you. Everything in that namespace is defined as internal, and it mostly consists of Enums and Structs used with Windows SDK functions called by PresentationFramework.
Unfortunately, I have no idea what to do about your problem. Perhaps you can convince whoever supplies the third-party library to change their namespace. The fact that Microsoft is now using it would be a good reason for them to do so. Whoever these people are that are creating namespaces with a simple, generic name such as "Standard" need to have their heads examined.
I am implementing OpenID+OAuth in my ASP.NET WebForm (using .NET Framework 3.5) application, found example on net
https://groups.google.com/forum/?fromgroups=#!topic/dotnetopenid/xQYkE6sUZYU
But I am missing DotNetOpenAuth.ApplicationBlock namespace, I included these libraries in my project:
DotNetOpenAuth.dll
DotNetOpenAuth.OAuth2.dll
DotNetOpenAuth.OAuth2.Client.dll
Can any one suggest me where I am doing wrong?
The ApplicationBlock is not distributed in binary form as it is intended for copy+paste of relevant source code into your project. You can get the ApplicationBlock project from the samples distribution on SourceForge.
You can find the project under the DotNotOpenAuth folders at Samples/DotNetOpenAuth.ApplicationBlock
So I am starting to learn C#, like literally just started learning, and coming from a Java background, it doesn't look too bad. However, I have a question. I am following THIS tutorial on using the client-object model. And just starting from the top, I added the references, but using Microsoft.SharePoint.Client; keeps giving me the error that "the namespace 'SharePoint' does not exist in the namespace 'Microsoft', but I clearly see it on the right side panel. So looking at the instructions, the only difference I can think of is that fact that I am using Visual Studio Express and thus do not have the option to choose which framework to use when creating a new project. Other than that, I don't know what the problem might be. Does anyone have any ideas on what else I could be missing or how to correct this problem?
Make sure that the target framework is 3.5 and not 4 i.e for SP2010
Did you add the references to the Microsoft.SharePoint.Client assembly and Microsoft.SharePoint.Client.Runtime assembly as noted near the beginning of that tutorial?
Add required references to the solution.
Make sure that the target framework is 4 for SP2013(3.5 for SP2010).
Did you do this part of the tutorial you mentioned above?
To build the application, you must add references to two assemblies,
Microsoft.SharePoint.Client.dll and
Microsoft.SharePoint.Client.Runtime.dll. Installing SharePoint
Foundation installs these assemblies on the server. The two assemblies
are located in the following directory:
%ProgramFiles%\Common Files\Microsoft Shared\web server
extensions\14\ISAPI
Take a look at the references in your project and make sure you have the reference to the assembly. If it is not there try adding it, right click -->add reference and find "Microsoft.SharePoint.Client"
Thanks to those who mentioned the 4.0 framework.
Mine defaulted to .NET Framework 4 Client Profile (and I have no idea what that means), and the Namespaces looked good in Intellisense, but the build would say they weren't found! Crazy.
for anyone developing for SP2019, you need to target .net 4.5