Share via


Rebuild dll with csproj

Question

Thursday, October 11, 2018 12:58 PM

So I'm a LAMP developer, know almost 0% about Windows development and trying as a last resort in the absence of someone qualified to edit smtp settings in a bin folder dll. Baby steps .:)

I have a working application built around 2013 and can open the csproj file in Visual Studio 2015. I see .cs files in the controller folders and have updated the smtp settings in those to new smtp settings. I save it all but my website still sends emails from the wrong smtp settings. I discover that the smtp settings are coming from a dll instead in the bin folder, call it x.dll

I decompile the dll file using Jetbrains Dotpeek and see the old smtp settings there. I understand that dll files can't simply be edited so I figure I just rebuild the solution now that I edited the controller files with the updated smtp settings. I figure it should possibly overwrite the x.dll with the new revised settings or is my logic totally wrong? How does x.dll get generated?

Anyway the Build process fails and nothing happens. Why would build fail if the application was working fine? Isn't the csproj valid? Should I be rebuilding in VS 2010 or something?

What's the best way to revise my smtp settings or is there a way to bypass the need for x.dll and just use the controller files themselves?

Thanks

All replies (4)

Friday, October 12, 2018 6:36 AM âś…Answered

Hi Howster,

Welcome to the MSDN forum.

What's your application type?

If it is the ASP.NET development, please redirect to this appropriate forum to seek for a better support. If not, please share more detail information and we will help you move this thread to the suitable forum, since our forum is to discuss the VS IDE and your issue is about the development, thank you for your understanding.

Best regards,

Sara 

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Thursday, October 11, 2018 2:14 PM

Please explain/show how the build fails. Unlike some LAMP developers, we're not psychics.

> Should I be rebuilding in VS 2010 or something?

Maybe, Was it originally written for 2010?

-- pa


Thursday, October 11, 2018 3:23 PM

Hello.

>  Isn't the csproj valid? 

I would guess - there are an error in line 42! :)

> Should I be rebuilding in VS 2010 or something?

Xmmm... I do make development in Studio 2015 and use Studio 2010 for deployment - there are no much difference in Studio as both of them use MSBuild for a build.

You jet need all references to be resolved and all other DLL's should be a proper version.

For more - need detail information about proj and error. 

Sincerely, Highly skilled coding monkey.


Thursday, October 11, 2018 3:24 PM

> Maybe, 

No. 

Sincerely, Highly skilled coding monkey.