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

How to set AssemblyTitleAttribute in NETCore1.1

In .NETCore1.1, next code typeof(Program).GetTypeInfo().Assembly.GetCustomAttributes().ToList() returns list of custom assembly attributes and one of them is AssemblyTitleAttribute. By default this attribute value returns project name, but how can…
Mr. Pumpkin
  • 6,212
  • 6
  • 44
  • 60
1
vote
2 answers

Are dll files added embedded in the executable file after they have been referenced?

Basically what I was wondering is that when I add a reference in visual studio to any .dll file will this dll be embedded in the executable file? If not how does the executable know where to look for these dll files:
Rvdrichard
  • 335
  • 3
  • 12
1
vote
0 answers

System.Devices.Aep reference

I am working on bluetooth program for windows 10. I have tried tons of different libraries and all the examples don't seem to work entirely on the latest windows 10…
noone392
  • 1,624
  • 3
  • 18
  • 30
1
vote
1 answer

Missing assemblies System.Net.Http.Primitives and System.Net.Http.Extensions.dll in build

I am trying to build a legacy .net 4 web application and although the build succeeds when trying to visit the site I get Could not load file or assembly 'System.Net.Http.Primitives' or one of its dependencies. The located assembly's…
rob
  • 8,134
  • 8
  • 58
  • 68
1
vote
1 answer

Issues with using side by side AutoMapper versions

I have an application in which I want to use the latest version of AutoMapper. I am also using a third-party assembly which itself uses AutoMapper 3.1.1.0. If I allow the third-party assembly to use the latest version, it attempts to invoke a method…
ChrisV
  • 1,309
  • 9
  • 15
1
vote
0 answers

Signing an Assembly in Visual Studio Code Application

I know how to signing an assembly in visual studio.But with Visual Studio Code, I couldn't have any clue,could someone explain how to signing an assembly in Visual Studio Code Thanks in Advance Jayendran
Jayendran
  • 9,638
  • 8
  • 60
  • 103
1
vote
0 answers

How to read/get the *Publish Version* of an Assembly file with PowerShell?

In VS2017, in the Post-build event, I include a Powershell script: powershell "start-process powershell.exe -ArgumentList '$(ProjectDir)Resources\PostBuild.ps1', '$(ProjectDir)', '$(TargetDir)', '$(ConfigurationName)', '$(SolutionName)'" In that PS…
Frank Monroe
  • 1,557
  • 2
  • 13
  • 20
1
vote
0 answers

Cannot read CustomAttributes in assembly using reflection

I am having problems reading the CustomAttributes of one type. TypeInfo mytype = ... IEnumerable customAttributes = null; try { customAttributes = mytype.CustomAttributes; // Or GetCustomAttributesData } catch…
Andry
  • 16,172
  • 27
  • 138
  • 246
1
vote
1 answer

Unsigned .NET app fails after field upgrade to signed assembly dependency

I have an unsigned test application MyApp that references an unsigned DLL MyDll. I recently signed MyDll and want to test it against MyApp in the field, but the application no longer runs. I do this by merely overwriting MyDll. I do not want to…
Dave
  • 14,618
  • 13
  • 91
  • 145
1
vote
0 answers

the same assembly flagged as not available and available in code behind

I'm trying to troubleshoot a public property in ASP.NET code-behind being flagged as inaccessible on the ASPX html markup page. var s = <%=foo%> Foo is inaccessible although declared Public in code-behind. Another object declaration on the page…
Tim
  • 8,669
  • 31
  • 105
  • 183
1
vote
2 answers

How do I call functions from a DLL in my resources?

So I have this DLL and this other thing which I think is refered to as a Injector / loader? It basically loads my DLL into the process of itself so it takes my DLL and loads it into the process of "Injector.exe" In the example down below it doesnt…
JohnA
  • 564
  • 1
  • 5
  • 20
1
vote
1 answer

.NET Publisher Policy Target Framework

SUMMARY How do I create a publisher policy assembly that targets the same framework version as the redirected assembly? TL;DR I have an Assembly.dll with version 1.x.y.0 and I also have a publisher policy for it named policy.1.0.Assembly.dll which…
1
vote
0 answers

Assembly.Load won't Invoke entrypoint on decrypted byte[] (exe), but will if from raw exe in resource, same MD5, what is the error?

This code works [STAThread] static void Main() { Assembly psrJA = Assembly.Load(Properties.Resources.Original ); psrJA.EntryPoint.Invoke(null, null); } But when simply encrypting or even compressing the same byte[] it just stalls the cpu…
Joan Hyna
  • 11
  • 2
1
vote
1 answer

Assembly reflection loading and app domain conflict

I am trying to make a small C# tool to compare two svn revision builds and track properties changes in any classes. My goal is to use reflection to compare the properties of each class of my dll without using Momo.Cecil. From experimenting, then…
Abyte0
  • 852
  • 8
  • 9
1
vote
0 answers

.Net 4.6 EXE Calling .Net 2.0 Assembly fails with PermissionSet Exception

Recently was adding NLog into a .Net exe. Took the opportunity to recompile to .Net 4.6 from .Net 2.0. The exe calls a vendor library which uses .net 2.0. Certain method of the vendor library throws a Request Failed that indicates a…
TimIam
  • 21
  • 1
  • 3