assemblies

Is there a ILMerge equivalent tool for Mono?

笑着哭i 提交于 2019-11-29 01:31:07
I'm looking for a open source tool to merge multiple .NET assemblies into a single assembly. Check ILRepack , which allows merge of symbol files, xml documentation, App.config and more. It's open-source and based on Cecil . There is also NAnt and MSBuild integration for it in a project called ILRepack-BuildTasks . Zac Bowling mkbundle and monolinker: http://www.mono-project.com/Linker You can also make your own linker tool using Cecil: https://github.com/jbevain/cecil/wiki Mono.Merge http://evain.net/blog/articles/2006/11/06/an-introduction-to-mono-merge 来源: https://stackoverflow.com/questions

ASP.Net cannot create/shadow copy

心不动则不痛 提交于 2019-11-29 01:27:50
问题 I get this error repeatedly when developing ASP.Net applications: Cannot create/shadow copy 'XXXXX' when that file already exists Where XXXXX is a random DLL. Typically the DLL is one of the DLLs from Microsoft's Enterprise Library, but it varies. It's really random, and it's very frustrating. I will go hours without getting the error, and then get this error every 10-20 minutes. I've seen several solutions. For instance, this question. I've tried using Clean Solution option, and I've also

What does it really mean to target a framework, and how do I maximize compatibility?

你离开我真会死。 提交于 2019-11-29 01:26:39
问题 Greetings all, This has confused me ever since I first started coding in C#. My goal is to create an assembly that will run on the most recent .NET framework the user has, whatever that may be. I don't want to require .NET 4 to be installed, but I want to use it if the user has it, and more importantly, I want it to still work if the user has only .NET 4 and nothing below. I'm beginning to suspect this is not even possible. I don't really understand what I'm selecting when I change the

Project References DLL version hell

梦想的初衷 提交于 2019-11-29 00:53:29
问题 We're having problems getting visual studio to pick up the latest version of a DLL from one of our projects. We have multiple class library projects (e.g. BusinessLogic, ReportData) and a number of web services, each has a reference to a Connectivity DLL we've written (this ref to the connectivity DLL is the problem). We always point references to the DLL in the bin/debug folder, (which is where we always build to for any given project) and all custom DLL references have CopyLocal = True and

.NET assembly loading priorities

和自甴很熟 提交于 2019-11-28 22:46:32
问题 I have a solution with 3 projects (GUI, BL and DAL). The DAL assembly is signed and deployed in the GAC. When I build the solution the DAL is compiled and the assembly placed in the bin folder of the main project. But when I run the application, it loads the GAC version instead of the local one. Why is this? I realized that because the version in the GAC was not the latest one and some methods were missing, although it compiled fine. Does the GAC have priority over the local bin folder? Tks

“Are you missing an assembly reference?” compile error - Visual Studio

时光总嘲笑我的痴心妄想 提交于 2019-11-28 22:45:12
I am currently working on a server control for other applications in our company to interface with a WCF service. Every time I make a change code change and recompile the control, I increment the the AssemblyVerison and AssemblyFileVersion class in the AsseemblyInfo.cs by one. For example, my latest build went from 1.0.07.0 to 1.0.08.0. When the consuming application updates the file by copying the latest file in the bin directory and tries to compile, they receive the following error: The type or namespace name 'MyControl' does not exist in the namespace 'MyNamespace' (are you missing an

How to get C#.Net Assembly by name?

南楼画角 提交于 2019-11-28 21:47:36
问题 Is there something like: AppDomain.CurrentDomain.GetAssemblyByName("TheAssemblyName") so instead of looping through AppDomain.CurrentDomain.GetAssemblies() , we could just get the specific assembly directly. 回答1: Have you tried looking at Assembly.Load(...)? 回答2: I resolved with LINQ Assembly GetAssemblyByName(string name) { return AppDomain.CurrentDomain.GetAssemblies(). SingleOrDefault(assembly => assembly.GetName().Name == name); } 回答3: It depends on what you're trying to accomplish. If

C# Namespaces and Assemblies Best Practice

跟風遠走 提交于 2019-11-28 21:12:08
C#: are there any guidelines, best practices when it comes to dividing a solution up into name-spaces and assemblies? Should name spaces normally be nested, with the most low level and fundamental classes in the top level name space? Should there generally be one name-space to one assembly? Are their any pitfalls to having multiple assemblies in one name-space or multiple name-spaces in one assembly. Are there any compile time/ run time penalties for multiple assemblies or very large assemblies? C#: are there any guidelines, best practices when it comes to dividing a solution up into name

What does it really mean to target a framework, and how do I maximize compatibility?

一个人想着一个人 提交于 2019-11-28 21:03:52
Greetings all, This has confused me ever since I first started coding in C#. My goal is to create an assembly that will run on the most recent .NET framework the user has, whatever that may be. I don't want to require .NET 4 to be installed, but I want to use it if the user has it, and more importantly, I want it to still work if the user has only .NET 4 and nothing below. I'm beginning to suspect this is not even possible. I don't really understand what I'm selecting when I change the "Target Framework" in Visual Studio. Does that mean "will be compatible with this version and up"? Or "will

What is a partially trusted assembly/application/code/etc in .NET?

不问归期 提交于 2019-11-28 20:29:05
Could someone please explain? I couldn't find anything on the internet, everything talks about how to go about it in some way, but nothing says exactly what it is. Also, what is a fully trusted assembly and how do they differ from one another? I have a MS certification exam and this is the only topic that I just don't understand. EDIT: Thanks guys. Now I have a better understanding of security in .NET. I was able to pass my certification exam. RoadWarrior A full-trust assembly has an unrestricted set of code access security permissions, which allows the code to access all resource types and