转换DLL来的csproj欧SLN [英] Convert dll to csproj ou sln

查看:310
本文介绍了转换DLL来的csproj欧SLN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作在一个现有的ASP.NET MVC项目。该解决方案采用了FluentNHibernate组件(V 1.0.0)。

I work on a existing ASP.NET MVC project. The solution uses the FluentNHibernate component(v 1.0.0).

有人在旧主(溶液MVC2),该工作就可以修改的组件源(为了改变一行为)。这种修改和编译的DLL被列入了MVC解决方案。

Someone in the former team (solution was MVC2) that worked on it modified the component sources (in order to change a behavior). That modified and compiled dll was included in the MVC solution.

现在,我转换的解决了MVC 5,并通过更新包的NuGet现有库。不幸的是,我不能这样做了相同的FluentNHibernate组成部分,因为如果我更新,它失去了修改行为,并产生错误,如果我使用一个新的版本。

Now, I converted the solution to the MVC 5, and updated the existing libraries via NuGet packages. Unfortunately, I can't do it the same with FluentNHibernate component, because if I update it, it looses the modified behavior, and produces errors if I use a newer version.

修改组件的源不可用。我能做什么?

The sources of the modified component aren't available. What can I do?

我决定从Github上获得FluentNHibernate版本1.0.0,比较项目文件,需要注意的差异,包括它在实际(V 1.4.0.0)FluentNHibernate code。

I decided to obtain the FluentNHibernate version 1.0.0 from the gitHub, compare the project files, note the differences, and include it in the actual (v 1.4.0.0) FluentNHibernate code.

为了比较不同,我需要获得来自(修改)DLL原来的code。

In order to compare the differences, I need to obtain the original code from the (modified) dll.

有一个外接程序或东西,可以转换一个dll到项目
我知道(我用)展鹏的反射,但我想获得所有必要的 C#的dll文件,而不是仅仅查看类定义code

Is there a add-in or something that could convert a dll to a project?
I know (and I use) the RedGate's Reflector, but I would like to obtain all necessary c# files from the dll, and not just view a class definition code.

推荐答案

如果您的DLL已经在.NET LANGAGE创建(C#/ Vb.NET),也可以用一些工具,如JetBrains公司dotPeek或JustDecompile的Telerik反编译。这些工具可以从一个DLL(或EXE)使所有的C#文件和项目文件。

If your dll has be created in .NET langage (C# / Vb.NET), it can be decompiled with some tools, like JetBrains dotPeek or Telerik JustDecompile. These tools can make all C# files and project file from a dll (or a exe).

要当心,如果你的DLL / EXE被混淆,结果code将是很难读(你将不得不使用重命名了不少)。

Be carefull if your dll/exe has been obfuscated, the result code will be hardly readable (you'll have to use rename a lot).

在dotPeek和JustDecompile,右键单击加载的DLL,然后选择创建项目(或导出项目)。你会得到所有的C#文件(或vb.net)和工程文件。

In dotPeek and JustDecompile, right click on loaded dll, and choose "Create Project" (or "Export to project"). You'll get all C# files (or vb.net) and project file.

在一些情况下,这些工具之一将不能够反编译。您可以测试另一种工具,它可以工作...

In some case, one of these tools will not be able to decompile. You can test another tools, it can work ...

这篇关于转换DLL来的csproj欧SLN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆