简体   繁体   English

从dll构建C#项目

[英]Build C# project from dll

I can view C# code from .NET ddl's with ILSpy. 我可以使用ILSpy从.NET ddl查看C#代码。 Are there any programs to build completed C# project from the dll? 是否有任何程序可以从dll构建完成的C#项目?

PS I don't want to include dll to my existing project. PS我不想将dll包含到我现有的项目中。 I want to grab some code from dll and understand how it works. 我想从dll中获取一些代码并了解其工作原理。 But it is harder to read code directly from reflector. 但是很难直接从反射器读取代码。 I prefer to read code from Visual Studio and want to create "Class Library" project from dll. 我更喜欢从Visual Studio中读取代码,并希望从dll中创建“类库”项目。

听起来好像您在寻找Reflector,它可以反编译DLL来完成C#项目。

If I understand you question right, You can create a complete project file including the code from a dll using Redgate's .Net Reflector 如果我理解您的问题是对的,则可以使用Redgate的.Net Reflector创建一个完整的项目文件,包括dll中的代码

http://reflector.red-gate.com/download.aspx?TreatAsUpdate=1

There are other free products in the market including Telerik's JustDecompile I am not very sure about it!! 市场上还有其他免费产品,包括Telerik的JustDecompile,我对此不太确定!

http://www.telerik.com/products/decompiling.aspx

Having said that, Redgate's .Net Reflector works fine when the DLL contains code which are fairly straight foreword, I did find it buggy when the DLL are referencing many other DLLs. 话虽如此,当DLL包含相当直接的前言代码时,Redgate的.Net Reflector可以很好地工作,当DLL引用许多其他DLL时,我确实发现它有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM