Questions tagged [assemblies]

Assemblies are collections of compiled .Net types and resources grouped into a logical and physical unit (in the form of a .dll file or .exe file).

Assemblies are collections of compiled .Net types and resources grouped into a logical and physical unit (in the form of a .dll file or a .exe file - which has an entry point).

If a .exe is a .NET assembly then it also contains a CLR header as a data block inside the PE header.

2372 questions
1
vote
1 answer

Retrieving Assembly Version information for multiple DLLs in MSbuild

I am fairly comfortable with writing assembly version information for a given project that will output as a DLL. However what I am looking to do now is to go through each DLL in a \Bin folder, retrieve the Assembly information and write it to a…
Dean
  • 5,896
  • 12
  • 58
  • 95
1
vote
2 answers

C# How to set a flexible base for altering controls from assembly later?

I'm still new with C#, and I'm working on a project where we also use WPF, and the WPF DataGrid Toolkit (See at CodePlex), which hasn't yet been released into the framework. Due to the nature of the project, it's 100% sure we will be altering some…
Alex Maker
  • 1,529
  • 2
  • 19
  • 27
1
vote
1 answer

MEF: how to import from an exported object?

I have created a MEF plugin control that I import into my app. Now, I want the plugin to be able to import parts from the app. I can't figure how setup the catalog in the plugin, so that it can find the exports from the app. Can somebody tell me…
John_Sheares
  • 1,404
  • 2
  • 21
  • 34
1
vote
3 answers

When .Net loads an assembly and how to change this behaviour?

for an application I need to check the availability of Crystal Reports runtime libraries. What I've tried is: void CheckCrystal() { try { CrystalDecisions.Windows.Forms.CrystalReportViewer test = new…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
1
vote
1 answer

ASP.NET website still looking for old name of renamed referenced assembly

I have a solution with a website and a class library. I have renamed the class library project from Insight_WebControls to Insight.WebControls. I have also renamed the assembly it produces in its properties. I have removed from the website's…
David
  • 15,750
  • 22
  • 90
  • 150
1
vote
1 answer

MSBuild task to get update FileAssemblyVersion for only projects with changes

Is there any way, using msbuild or otherwise, to detect which projects have changes in the current build and update the FileAssemblyVersion attribute in AssemblyInfo.cs for those projects only?
1
vote
2 answers

Hash of .NET assembly and type

In my application I need to compute a hash of a given .NET assembly and of a given type. Assemblies and types to hash are loaded dynamically in this scenario. Object's built-in method GetHashCode returns different value each time an application is…
mgamer
  • 13,580
  • 25
  • 87
  • 145
1
vote
3 answers

Using Global Assembly Cache (GAC) - in the way it was designed to

Is the following solution the only possibility to use libraries from GAC in code? Assembly lib = Assembly.Load("MyLibrary, Version=1.0.0.0,…
Marc Andreson
  • 3,405
  • 5
  • 35
  • 51
1
vote
0 answers

Load assembly from local directory and not GAC

I am trying to write a 'hello world' application with a dependency to an assembly of a CAD software (SpaceClaim). I add the assembly SpaceClaim.Api.V12.dll to my references and build without problems. When I try to run the application I get the…
opetroch
  • 3,929
  • 2
  • 22
  • 24
1
vote
2 answers

How to create a DLL from a C program using Turbo C

I wrote a small program in Turbo C and I would like to get or create a DLL of this program for using it with my C# application. So how can I create a DLL of a C program using Turbo C? I would like to use it with a C# or VB program in a DLL…
pvaju896
  • 1,397
  • 6
  • 25
  • 46
1
vote
1 answer

C# application not recognizing satellite resource assemblies

Due to the extreme amount of .resx files in our application, I have created the following MSBuild script to compile all language .resx files into .resource, then embed them into satellite resource assemblies.
Mike
  • 21
  • 3
1
vote
0 answers

XAML referencing local=

Im in a page and want to reference some converters I created in the very same xaml.cs file. This is my header
javirs
  • 1,049
  • 26
  • 52
1
vote
2 answers

EntityFramework 7 Migration Initial Create

Im trying to run dnx ef migrations Add IntitialDatabase. However, it fails to run and gives the error "Could not load Assembly 'MyProject.' Ensure it is referenced by the startup project 'MyProject.'" Where is it looking for this reference so that…
1
vote
4 answers

Visual Studio build error: claims member of class in other assembly doesn't exist

I have a website solution which contains a project with domain classes. I have added a public auto property (get; set;) to one of the domain classes. A page on the website references this property - it was added to the page using IntelliSense. The…
David
  • 15,750
  • 22
  • 90
  • 150
1
vote
1 answer

Copy assembly dependencies from lib folder that uses SVN

I have been investigating the best way to store our solutions in SVN and came up with a structure of: Libraries EntLib DLLs Global DLLs SubSonic DLLs Source sln Project 1 Project 2 Libraries uses svn:externals to pull…
Sammy T
  • 109
  • 1
  • 7