Questions tagged [dll-reference]

58 questions
66
votes
4 answers

How to add a .dll reference to a project in Visual Studio

I am just beginning to use the MailSystem.NET library. However, I cannot figure out where to add the .dll files so I can reference the namespaces in my classes. Can someone please help me? I am using Visual Studio 2010. Thank you for any…
eatonphil
  • 10,877
  • 21
  • 66
  • 118
12
votes
2 answers

Visual Studio persists on using UnitTestFramework 10.0.0.0

I've got a solution with several projects in it. One of the projects includes additional Assert methods for unit testing. It references Microsoft.VisualStudio.QualityTools.UnitTestFramework 10.1.0.0. It also includes other test projects, which…
Steven Jeuris
  • 15,774
  • 7
  • 61
  • 137
10
votes
2 answers

Why is this NuGet dependency missing when compiling .NET Framework project depending on .NET Standard?

I have a Visual Studio solution, with 3 projects. The top level is a .NET Framework 4.6.1 Console App (Project A). It depends on a .NET Framework 4.6.1 Class Library (Project B). Project B depends on a .NET Standard 2.0 Class Library (Project C). I…
JamesDunlop
  • 113
  • 1
  • 9
10
votes
1 answer

Wininet InternetGetCookie gets empty cookie data

I'm currently working on getting cookie data with Csharp. I'm using DLLImport to invoke InternetGetCookie in wininet.dll, but when i try it the functions returns an ERROR_INSUFFICIENT_BUFFER (error code 122). Can any one help me with this ? This is…
Patrick
  • 710
  • 8
  • 26
8
votes
3 answers

Find all references of a dll in a project

In Visual Studio 2010 (or 2012) is there a way to locate all references in code that mention any class/method defined in a referenced dll. Currently I have two processes that I use (depending on the situation): The first one involves just deleting…
Seph
  • 7,864
  • 10
  • 58
  • 86
7
votes
2 answers

Difference between project and dll dependencies in .Net in the final compiled assembly

Lets say I have two projects A and B. A depends on B. I can specify this in two ways: Include A and B in the same solution and specify B as a project dependency for A. This shows up in A's msbuild project as a "ProjectReference" node. Include a…
Rohith
  • 1,973
  • 13
  • 39
5
votes
0 answers

How do I know which Platform Extensions do I need for .NET Standard?

I ran the .NET Portability Analyzer against a class library that I want to use from my own .NET Standard class library. The class I want to use has a dependency on .NET framework. The compatibility results were 91% for .NET Standard and 100% for…
BornToCode
  • 7,852
  • 6
  • 54
  • 70
5
votes
2 answers

What does adding a reference to csproj file do?

Would it be accurate to say that a given DLL contains a bunch of namespaces (With classes, constants, functions etc. in each), and that referencing the dll in a csproj allows using them in .cs files belonging to that project? I tried searching the…
yuvalm2
  • 681
  • 6
  • 18
5
votes
2 answers

Error on add reference to SQLite.Interop.dll

I'm needing read some cookies of a specific site and I found a code on internet that probably can help me. This code uses some methods specifics of SQLite and for make this is necessary add references to some SQLite dlls, but the trouble is, when I…
user5329618
4
votes
2 answers

How should I determine which are the references that has to be "copied locally"?

Many similar posts but this is not a duplicate I believe. When I add references in visual studio, some dlls are copied locally while some not. I understand that the external dlls I get from elsewhere should have a local reference, but then I…
nawfal
  • 62,042
  • 48
  • 302
  • 339
3
votes
1 answer

What is the syntax used to wrap multiple DLLs with "bin" in project.json

I have an ASP.Net 5 (vNext) solution that needs to reference many locally created DLLs. I have attempted different versions of the syntax in project.json to indicate the dlls. My attempts have either ended in syntax errors or (the most promising…
SOHO Developer
  • 503
  • 3
  • 14
2
votes
0 answers

Cannot reference assembly in Monodevelop

I am using F# 4.1 with Monodevelop on Linux Mint 18 and for some reason I no longer can use the #r directive to reference a dll. No matter where I install/store the package and the permissions, I just get "... (file may be locked by F# Interactive…
Sasha Babaei
  • 339
  • 2
  • 8
2
votes
2 answers

How to define working directories for DLL dependencies in Visual Studio / C#

I've got an executeable file, which I run for example from C:. The executable references some DLLs from another directory, let's say C:\MyDLLs. The problem is, that these referenced DLLs again depend on other DLLs, which are stored in another…
iDog
  • 351
  • 3
  • 13
2
votes
1 answer

How expensive is a DLL reference?

Either local or global (GAC / .NET) DLL references, how expensive they are? For sure we should never reference things we don't use, but for curiosity I ask: Would it be a big performance concern referencing the whole .NET framework? A similar more…
Martin Braun
  • 5,873
  • 7
  • 43
  • 81
2
votes
1 answer

Difference between Reference, Template, and a NuGet package?

What is the difference between a NuGet package, a Reference (is reference similar to a tool?), and a template in Visual Studio? Why do we need them? What is done / changed in our project when we install each one of them? Are they dependent on each…
Anubhav Dhawan
  • 1,081
  • 4
  • 12
  • 29
1
2 3 4