assemblies

How can I patch .NET assemblies?

假装没事ソ 提交于 2019-12-06 05:33:01
问题 If I compile a C# project twice, I will get two assemblies. These assemblies aren't exactly the same (using a binary diff). I can think of reasons why this is so, but the fact remains that the source for the two assemblies are identical. I am concerned with creating a patch between these assemblies, and applying the patch on a customer machine. Does anyone know of a library (preferably .NET) or tool with which I can create and apply patches? Ideally it should also handle small changes, like

Create Your Own .NET Assembly Cache

寵の児 提交于 2019-12-06 05:23:40
问题 In a .net application I am writing, I need to locally cache assemblies from various locations so my application can use them even if the original locations are unavailable. I cannot use the GAC (primarily because I want portability and also because the assemblies might not be signed). Does anyone know of any .net code which supports this functionality already? I need the cache to be able to tell me if a particular assembly is already in the cache and handle different versions of assemblies as

Referencing private .net assemblies in a subfolder

江枫思渺然 提交于 2019-12-06 05:05:22
In Visual Studio 2008 I can add a project reference and set Copy Local property to true. As result the referenced assembly will be copied to the same folder the main assembly is build to. But what if I want to have all referenced assemblies in a subfolder near the main assembly? Something like this: .. myApp.exe Libs myLib1.dll myLib2.dll Data myDatabase.sqlite PS: This is the smart device application build against .NET Compact Framework 3.5 For other versions of the framework, this is what you would do: http://msdn.microsoft.com/en-us/library/twy1dw1e.aspx For compact, I suggest reading this:

How to find all assemblies that reference a specific dll?

馋奶兔 提交于 2019-12-06 05:04:44
I've a directory with a large number of dlls . I need to find all those that reference a specific dll . I'm thinking about the following solution : Loop the assemblies and invoke each one with ildasm Dump the manifest into a text file Search the text files for the required assembly name. Yet this solution feels immensely wrong to me. Is there a better way to achieve it? You could write a small tool for that purpose, using Reflection to find the referenced assemblies: string[] fileNames = ...; // get all the filenames foreach (string fileName in fileNames) { var assembly = System.Reflection

Adding Project reference programmatically

╄→尐↘猪︶ㄣ 提交于 2019-12-06 04:29:29
问题 Basically, after read a couple links, i tried the above code: foreach (EnvDTE.Project proj in soln.Projects) { if (proj.Name == "BLL") { VSLangProj.VSProject vsproj = (VSLangProj.VSProject)proj.Object; vsproj.References.Add(@"C:\Teste\DAL\bin\Debug\DAL.dll"); } } All paths, project names, are hard-coded on purpouse, since im still testing how to achieve it. Though it would act like if i did Project folder -> References -> Add reference -> Pick one, manually (compile time) but after loading

How can I use the SSRS ReportViewer from VS 2008 in a VS2010 project?

我怕爱的太早我们不能终老 提交于 2019-12-06 02:03:03
I'm working on an ASP.NET MVC 2 / .NET 3.5 project which includes SSRS 2008 reports. After migrating to VS 2010 RC, the new web forms report viewer has been giving so much trouble that I'd like to use the old report viewer from VS 2008 again. Now I'm just wondering what would be the easiest way to do that. The report viewer is embedded in a Webforms ASPX file which is loaded in an IFrame by the the MVC view. Report parameters are currently stored as session variables, and for security reasons I would prefer not to change that for HTTP POST or GET parameters. So I can't just put the report

Can't add .NET 4.0 Assembly Reference In MonoDevelop 2.4.1

只愿长相守 提交于 2019-12-06 01:00:02
问题 I've installed MonoDevelop 2.4.1 With Mono 2.8.1. My trouble is that i can't add assembly reference to assembly compiled for .NET 4.0 (on same MonoDevelop IDE). What am i do. References -> Edit References -> .NET Assembly -> Browse to file & select it Than MD displays an error that an assembly that i'm trying to add isn't .NET assembly. I've set profile to .NET 4.0 everywhere. Reflector disassembles my assembly fine so it's ok. My OS is Windows 7 What's wrong? UPD: Posted a bug to Novell.

How to change the Assembly Name in C# Programmatically

眉间皱痕 提交于 2019-12-05 22:28:30
问题 I want to change the name of my Assembly Programmatically in C#, there is a way through which I can change it from Project Properties, but I want to change it Programmatically, so that my output .exe name is changed.. Any trick for that? 回答1: You could do this in the Post-Build Event. These scripts are commandline scripts that get executed after the Build process finished ren "$(TargetFileName)" new-filename.exe Edit: You can configure the Postbuild Event by right-clicking on your Project in

Cannot use external references with C# Console Application

最后都变了- 提交于 2019-12-05 20:19:13
问题 I have tried all the suggestions below but still no joy. I'm now trying a console application, and let me explain exactly what I'm doing. I create a new console project in VS 2010 I add a number of references (dll's) some that aren't mine such as Castle.Winsor and N2 CMS dlls in the console app I can add using statements indicating I am using name spaces within the referenced DLLs I start writing code. As soon as I compile all the code that uses the referenced DLLs immediately complains with

Web App Compiling Error - ASP.NET Reference

让人想犯罪 __ 提交于 2019-12-05 19:59:54
My current web app works fine locally and on live, what i am currently playing around with is compiling my Web App with the Visual Studio Option "Add Web Deployment Project" so all the code behind is compiled into DLL's. There's is one particular build error i can not get rid off Error 50 The type or namespace name 'usercontrols_calendarcell_ascx' does not exist in the namespace 'ASP' (are you missing an assembly reference?) c:\page.ascx.cs 30 1 test_deploy And the actual line of code is as follows : protected ASP.usercontrols_calendarcell_ascx[] calendarCells; The problem comes from the fact