Questions tagged [.net-assembly]

A group of classes and namespaces compiled into a binary file, written in a .NET-specific language such as C# or VB.NET.

An assembly in .NET terminology is a set of modules assembled into a single process assembly (executable, ".exe") or a library assembly (".dll").

Assembly is the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions for .NET-based applications. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality.

3347 questions
36
votes
3 answers

Unable to find type [System.IO.Compression.CompressionLevel]: make sure that the assembly containing this type is loaded

I wrote this PowerShell script to archive all log files created during a certain date range. $currentDate = Get-Date; $currentDate | Get-Member -Membertype Method Add; $daysBefore = -1; $archiveTillDate =…
Maven
  • 14,587
  • 42
  • 113
  • 174
35
votes
5 answers

How to add a reference to System.Numerics.dll

I want to use the BigInteger class from the System.Numerics but if i want to write using System.Numerics; Numerics is not found. I searched the web, and I found that I have to add a reference to System.Numerics.dll, but how can I do that?
33
votes
5 answers

Newtonsoft.Json Assembly Conflict

I use Netonsoft.Json in my project. It works fine until I start integrating Paypal SDK in my Project. My code is as below. String AccessToken = new PayPal.OAuthTokenCredential("", "").GetAccessToken(); ---->>>> This Line Throwing An…
Hiren
  • 1,381
  • 5
  • 24
  • 41
32
votes
3 answers

App.config in Test Projects

I'm building an ASP.NET app in VS2010. I have a number of separate assemblies (class libraries) and corresponding Test projects for each. In one of the class libraries I use an App.config file to store settings. The assembly itself uses the…
jqwha
  • 1,599
  • 6
  • 21
  • 32
29
votes
2 answers

How to add PNG resource in Visual Studio 2010?

I have a PNG (i.e. a compressed image) that I'd like to include in my assembly (i.e. application). How to do it? Additional information: I tried adding a PNG resource to my assembly in Visual Studio 2010: But that didn't work, as Visual Studio…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
29
votes
4 answers

Why AppDomain.CurrentDomain.BaseDirectory not contains "bin" in asp.net app?

I have a web project like: namespace Web { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { lbResult.Text = PathTest.GetBasePath(); } } } The…
Domi.Zhang
  • 1,675
  • 4
  • 21
  • 27
29
votes
5 answers

Loading plug-in DLL files, "The invoked member is not supported in a dynamic assembly."

We have custom DLL's that are not included in our initial setup file. They are loaded at runtime. This process worked fine while using .NET 2.0, but we are getting the "The invoked member is not supported in a dynamic assembly" error message now…
Trevorm
  • 505
  • 1
  • 5
  • 9
28
votes
2 answers

What's the XML file that comes together with a .NET assembly file?

Many .NET assemblies are accompanied with an XML file. For example, System.Web.WebPages.Razor.dll comes together with System.Web.WebPages.Razor.xml that contains the following:
sharptooth
  • 167,383
  • 100
  • 513
  • 979
27
votes
1 answer

Get assembly executable directory

I have two applications, e.g. App1 and App2. When running normally, App1 will show its assembly executable location. But when I call App1 from App2, it returns App2's startup location. So, how do I get App1's startup path when I call App1 from App2?
TrungNV
  • 269
  • 1
  • 4
  • 7
27
votes
2 answers

Omit localized versions of assemblies from the build output

In one of my projects, I am using an awesome library called Humanizer. This library comes in many language variations (I counted 38). When I build my project, I then see all these folders like "af", "ar", "bg", "bn-BD", ..., "zh-Hant" with…
Tom Pažourek
  • 9,582
  • 8
  • 66
  • 107
27
votes
3 answers

'AssemblyTitle' attribute in the .NET Framework

What is the practical use of the AssemblyTitle attribute? MSDN says that it specifies a description for an assembly and that the assembly title is a friendly name which can include spaces. Visual Studio asks for the assembly name in the properties…
HelloWorld
  • 2,375
  • 5
  • 22
  • 21
26
votes
1 answer

Reference Assemblies folder and different assemblies with the same version

I have a project that uses System.Runtime.Serialization assembly. I am using the type DataContractSerializer from that assembly, but I have a problem. There are two assemblies: C:\Program Files (x86)\Reference…
Sergey Litvinov
  • 7,408
  • 5
  • 46
  • 67
26
votes
5 answers

Display project version in ASP.NET Core 1.0.0 web application

None of what used to work in RC.x helps anymore. I have tried…
rook
  • 2,819
  • 4
  • 25
  • 41
25
votes
3 answers

How to resolve .NET Core package version conflicts

I am migrating from a .NET MVC 5 Web Application to a .NET Core 2.2 Web API project along with five .NET Standard 2.0 projects all housed under one solution. I am now receiving 28 warnings (MSB3277) regarding package conflicts, which are all within…
J Weezy
  • 3,507
  • 3
  • 32
  • 88
25
votes
2 answers

"The located assembly's manifest definition does not match the assembly reference"

I have deployed an .NET WebAPI app (compiled against .NET 4.5.2, and running locally) into an Azure App Service. The error thrown there is Could not load file or assembly 'System.Web.Mvc, Version=4.0.40804.0, Culture=neutral,…
Alexander
  • 19,906
  • 19
  • 75
  • 162