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
1
vote
1 answer

Generating nuget package using .csproj cause wrong version number

Currently I'm creating a nuget package using a *.csproj and a nuspec file. In the nuspec file I'm declaring the assembly/package version like this: $id$ $version$ ... …
BendEg
  • 20,098
  • 17
  • 57
  • 131
1
vote
0 answers

Azure Function App - private assembly gets cached - updating file has no effect

I created a simple function triggered by Event Hubs. Created a POCO library with a couple simple classes. Uploaded the library assembly to the function/bin folder. Created a console test app that references the library and writes one of the objects…
Mark Lauter
  • 810
  • 9
  • 22
1
vote
0 answers

Different Assembly loading results between MS.NET and Mono

We are currently developing an application in C# that is targeted to .NetFramework,Version=4.6. We are compiling the application in Visual Studio on Windows, but deploying it in a docker container running Mono: Mono JIT compiler version 4.4.2…
user626201
  • 1,623
  • 3
  • 19
  • 36
1
vote
0 answers

Jenkins change-assembly-version-plugin can't change assembly version number?

I using jenkins to build the solution,I want to change the assembly version by change-assembly-version-plugin.but there is no effect. I found the same question “AssemblyInfo” MSBuild task failing in Jenkins build but there is no effect too. Please…
huoxudong125
  • 1,966
  • 2
  • 26
  • 42
1
vote
1 answer

File or assembly Microsoft.SqlServer.SqlClrprovider missing in Entity Framework

I moved my Entity Data Model from one project to onother project. By cutting the data model folder and pasting in different project. Everything went fine, but when I try to update the 'Model from Database' I get the error of missing assembly…
Madhur Maurya
  • 1,016
  • 4
  • 19
  • 42
1
vote
2 answers

#if DEBUG directive in compiled class library

I am going to use #if DEBUG directive in a class library. The compiled ClassLibrary.dll will be used in a separate Application.exe. Will my debug code from this class library be executed in the following situations? library is compiled in DEBUG…
aluky
  • 491
  • 6
  • 11
1
vote
1 answer

Binary Powershell Cmdlet not exported from module

I created a Powershell module containing one Cmdlet implemented by C# and some advanced functions provided by a psm1 file. When loading the module, only the functions implemented in advanced functions are exported. I registered the assembly to load…
Joel
  • 474
  • 1
  • 5
  • 15
1
vote
0 answers

How to separate concepts within one .NET class library

I like how concepts can be separated when solution is split into multiple class libraries. For example: System.IO.csproj, Stream class System.IO.Net.csproj, NetworkStream class System.IO.Filesystem.csproj, FileStream…
Ondrej Petrzilka
  • 1,449
  • 18
  • 24
1
vote
1 answer

How to execute dynamically created assembly in a given application domain?

I have a problem trying to execute a dynamic assembly in a given application domain. The assembly is building using System.Reflection.Emit.AssemblyBuilder class as shown // Utility method for building 'MathClient' assembly in memory. …
vgorosh
  • 25
  • 6
1
vote
0 answers

MVC Unable to find Assembly

I'm running into an issue after updating the assemblies in my project. Previously I deployed MVC application which contain a reference of an assembly named Core.dll (One of my class library project). Now in the newer version, I completely removed…
Ammar Khan
  • 2,565
  • 6
  • 35
  • 60
1
vote
1 answer

How to not load unused assembly

In ASP.NET MVC4 application System.Data.OracleClient assembly is loaded. Code in controller var sb = new StringBuilder(); foreach (Assembly b in AppDomain.CurrentDomain.GetAssemblies()) sb.AppendLine(b.FullName); Outputs it: …
Andrus
  • 26,339
  • 60
  • 204
  • 378
1
vote
1 answer

WPF - Apply Style From Another Assembly to User Control

I have a solution with multiple projects: The Application The User Control Library The Class Library I would like to apply a Style contained in the Class Library to the User Control contained in the User Control Library. The problem is that I…
Belfed
  • 165
  • 1
  • 13
1
vote
2 answers

Cannot build solution because of log4net dependency issues C#

I am currently working on my colleague's project that he wrote a few years ago. The project uses "log4net" assembly although I do not really need it or use it. Anyways, when I'm trying to build project, i get this error: Severity Code …
iHolder
  • 11
  • 1
1
vote
0 answers

Load assembly from Roslyn Compilation to new AppDomain

i'll start with describing the issue. So I'm dynamically creating a .dll with Roslyn Compiler. Later i need to analyze it to make some security checks with reflection. If I use following code: ... var assemblyStream = new…
MajkeloDev
  • 1,661
  • 13
  • 30
1
vote
1 answer

Reference a public static class in the global namespace in another assembly

In C#, is there a way to access a public static class in the global namespace in assembly A from assembly B (assuming assembly B references assembly A), when assembly B has public static class in the global namespace that has the same name? For…
Dan Field
  • 20,885
  • 5
  • 55
  • 71