3 Replies - 463 Views - Last Post: 17 October 2017 - 03:56 PM

#1 ahmedba   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 178
  • Joined: 24-January 14

How to convert MVC projects to DLL to reuse inside windows form

Posted 16 October 2017 - 03:58 PM

How to convert mvc project to dll files .

Details

I have big mvc project c# asp.net and i need to convert it to dll file to building as windows form applications

my mvc project is mvc 5 and windows form application will be done in visual studio 2015

entity framework is version 6 that used in mvc project web asp.net database first .

the goal from converting mvc project to dll is

reusing dll files in another windows application forms to doing same application web as windows form with same logic but different on interface from web to windows

How to do that please ?

main goal from question how to reuse code found in mvc to reuse it in windows form application

if there are another solutions without dll i can accept.

This post has been edited by ahmedba: 16 October 2017 - 03:59 PM


Is This A Good Question/Topic? 0
  • +

Replies To: How to convert MVC projects to DLL to reuse inside windows form

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14854
  • View blog
  • Posts: 59,271
  • Joined: 12-June 08

Re: How to convert MVC projects to DLL to reuse inside windows form

Posted 16 October 2017 - 04:32 PM

you don't really convert a web page to a dll.
As seen here, and here.
Was This Post Helpful? 0
  • +
  • -

#3 maceysoftware   User is offline

  • Member Title
  • member icon

Reputation: 369
  • Posts: 1,579
  • Joined: 07-September 13

Re: How to convert MVC projects to DLL to reuse inside windows form

Posted 17 October 2017 - 01:48 AM

If this was your end goal, then you should of been looking into this when beginning your project.

Modi is right (I believe) that you can't turn a Web Page into a DLL, However what you can do is put all your business logic in a seperate dll, then your website can reference that DLL along with your WinForms. You wouldn't need to copy and paste your business layer then, just create a new UI.
Was This Post Helpful? 0
  • +
  • -

#4 ahmedba   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 178
  • Joined: 24-January 14

Re: How to convert MVC projects to DLL to reuse inside windows form

Posted 17 October 2017 - 03:56 PM

I have dll files from mvc asp.net web application AND i need to use it in windows form application in

visual studio 2015 .NET 4.5.2 .

I add dll files as reference IN windows form C# application 2015.

dll files taken from web application working with mvc 5 entity framework 6

and i need to use dll in windows form application

so that what i need in windows form application to implement dll files

and functions inside it .

so that when i use dll in windows form application what i will use

I will use entity framework or .net framework technology .

use Add new item - Data- ADO.net entity data model (edmx) or NOT .

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1