d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Decomile And Recompile In Visual Studio 2015
Add Reply New Topic New Poll
Member
Posts: 30,168
Joined: Jun 10 2010
Gold: 1,157.00
Dec 26 2015 10:23am
So my friend sent me a folder with .exe and .dlls to update the .net framework.

I can decompile everything with jetbrains

I then tried to recompile it with new .net framework

But for some reason, it won't detect the dependents it to use.

Using visual studio 2015

This post was edited by CyberGod on Dec 26 2015 10:24am
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Dec 26 2015 11:54am
i'm not sure i understand what you're trying to do. are you trying to update .NET? if so, why aren't you using the microsoft site? or are you trying to get the working source code for his project? if so, you should be able to just "add reference" and select the dll.
Member
Posts: 30,168
Joined: Jun 10 2010
Gold: 1,157.00
Dec 26 2015 03:09pm
Quote (carteblanche @ Dec 26 2015 01:54pm)
i'm not sure i understand what you're trying to do. are you trying to update .NET? if so, why aren't you using the microsoft site? or are you trying to get the working source code for his project? if so, you should be able to just "add reference" and select the dll.


I did add reference and select the DLL.

Visual studio, then said can't find reference to a function in the DLL I added as a reference...
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Dec 26 2015 06:31pm
Quote (CyberGod @ Dec 26 2015 04:09pm)
I did add reference and select the DLL.

Visual studio, then said can't find reference to a function in the DLL I added as a reference...


is it public? do you have documentation for it? or did he write the code?
Member
Posts: 30,168
Joined: Jun 10 2010
Gold: 1,157.00
Dec 26 2015 06:32pm
Quote (carteblanche @ Dec 26 2015 08:31pm)
is it public? do you have documentation for it? or did he write the code?


self wrote
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Dec 26 2015 06:35pm
Quote (CyberGod @ Dec 26 2015 07:32pm)
self wrote


so create the project from source yourself and add a reference to the existing project instead of dll. see if that fixes it. make sure the method is public

This post was edited by carteblanche on Dec 26 2015 06:35pm
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Jan 7 2016 02:58am
You are probably missing a targeting pack for the new version of the .NET framework. When you add the DLL as a reference is there a yellow triangle next to it? If so, make sure the project is targeting the correct version of .NET, and if you still get compile errors look for a targeting pack patch for Visual Studio 2015 for the version of .NET you are updating.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll