Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How do I make a MVC project appear properly in Visual Studio?

How do I make a MVC project appear properly in Visual Studio?

Scheduled Pinned Locked Moved C#
questioncsharpasp-netwpfarchitecture
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xarzu
    wrote on last edited by
    #1

    How do I make a MVC project appear properly in Visual Studio? I understand the logic of this sort of structure. I have seen some blogs and explanations and even code segments explaining how a program can use MVC. But I want to know what is a good way to represent a Model-View-Controller program in the Visual Studio. For example, in an ASP.NET program, the asp.net file is associated with a C# file. THey have the same name and, in the Solution Explorer window of the Visual Studio development environment, they are shown linked together where one is a tree branch of the other. Should the same sort of thing be done for a MVC solution? I can remember a few years ago, I worked on a MVVM project, and a developer who first put the solution file together actually had view and the view-model files arranged like this. In order to make this happen, he had to download some sort of patch that allowed him to edit the .sln (solution) file. Is that the way to go for a Model-View-Controller program? Should each be its own workspace in the solution, or should the solution file be edited such that each Model-View-Controller coupling be handled as a tree structure file representation kind of like it is done for an ASP.NET solution? Here is another question. What is a good template to use in Visual Studio to create an example of a Model-View-Controller program? I tried this route but when I clicked to "get new templates", it did not work: [url="http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_02\_zps6vn4ri07.png"]http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_02\_zps6vn4ri07.png\[/url\] [url="http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_zpscdczk1b4.png"]http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_zpscdczk1b4.png\[/url\]

    B L A S 4 Replies Last reply
    0
    • X Xarzu

      How do I make a MVC project appear properly in Visual Studio? I understand the logic of this sort of structure. I have seen some blogs and explanations and even code segments explaining how a program can use MVC. But I want to know what is a good way to represent a Model-View-Controller program in the Visual Studio. For example, in an ASP.NET program, the asp.net file is associated with a C# file. THey have the same name and, in the Solution Explorer window of the Visual Studio development environment, they are shown linked together where one is a tree branch of the other. Should the same sort of thing be done for a MVC solution? I can remember a few years ago, I worked on a MVVM project, and a developer who first put the solution file together actually had view and the view-model files arranged like this. In order to make this happen, he had to download some sort of patch that allowed him to edit the .sln (solution) file. Is that the way to go for a Model-View-Controller program? Should each be its own workspace in the solution, or should the solution file be edited such that each Model-View-Controller coupling be handled as a tree structure file representation kind of like it is done for an ASP.NET solution? Here is another question. What is a good template to use in Visual Studio to create an example of a Model-View-Controller program? I tried this route but when I clicked to "get new templates", it did not work: [url="http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_02\_zps6vn4ri07.png"]http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_02\_zps6vn4ri07.png\[/url\] [url="http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_zpscdczk1b4.png"]http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_zpscdczk1b4.png\[/url\]

      B Offline
      B Offline
      BillWoodruff
      wrote on last edited by
      #2

      Have you tried using ASP.NET MVC ?

      «I'm asked why doesn't C# implement feature X all the time. The answer's always the same: because no one ever designed, specified, implemented, tested, documented, shipped that feature. All six of those things are necessary to make a feature happen. They all cost huge amounts of time, effort and money.» Eric Lippert, Microsoft, 2009

      1 Reply Last reply
      0
      • X Xarzu

        How do I make a MVC project appear properly in Visual Studio? I understand the logic of this sort of structure. I have seen some blogs and explanations and even code segments explaining how a program can use MVC. But I want to know what is a good way to represent a Model-View-Controller program in the Visual Studio. For example, in an ASP.NET program, the asp.net file is associated with a C# file. THey have the same name and, in the Solution Explorer window of the Visual Studio development environment, they are shown linked together where one is a tree branch of the other. Should the same sort of thing be done for a MVC solution? I can remember a few years ago, I worked on a MVVM project, and a developer who first put the solution file together actually had view and the view-model files arranged like this. In order to make this happen, he had to download some sort of patch that allowed him to edit the .sln (solution) file. Is that the way to go for a Model-View-Controller program? Should each be its own workspace in the solution, or should the solution file be edited such that each Model-View-Controller coupling be handled as a tree structure file representation kind of like it is done for an ASP.NET solution? Here is another question. What is a good template to use in Visual Studio to create an example of a Model-View-Controller program? I tried this route but when I clicked to "get new templates", it did not work: [url="http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_02\_zps6vn4ri07.png"]http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_02\_zps6vn4ri07.png\[/url\] [url="http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_zpscdczk1b4.png"]http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_zpscdczk1b4.png\[/url\]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        What version of Visual Studio are you using? Most editions have a MVC project template. In the Visual Studio "Community Edition", for example, there is a MVC "new project" template under: Visual C# | Web | Visual Studio 2012 | ASP.NET MVC 4 Web Template If you're missing a particular template, there is an option in the "new project" dialog where you can "go online and find templates" (and install it); e.g. MVC 3; MVC 5; MVC boilerplate code.

        1 Reply Last reply
        0
        • X Xarzu

          How do I make a MVC project appear properly in Visual Studio? I understand the logic of this sort of structure. I have seen some blogs and explanations and even code segments explaining how a program can use MVC. But I want to know what is a good way to represent a Model-View-Controller program in the Visual Studio. For example, in an ASP.NET program, the asp.net file is associated with a C# file. THey have the same name and, in the Solution Explorer window of the Visual Studio development environment, they are shown linked together where one is a tree branch of the other. Should the same sort of thing be done for a MVC solution? I can remember a few years ago, I worked on a MVVM project, and a developer who first put the solution file together actually had view and the view-model files arranged like this. In order to make this happen, he had to download some sort of patch that allowed him to edit the .sln (solution) file. Is that the way to go for a Model-View-Controller program? Should each be its own workspace in the solution, or should the solution file be edited such that each Model-View-Controller coupling be handled as a tree structure file representation kind of like it is done for an ASP.NET solution? Here is another question. What is a good template to use in Visual Studio to create an example of a Model-View-Controller program? I tried this route but when I clicked to "get new templates", it did not work: [url="http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_02\_zps6vn4ri07.png"]http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_02\_zps6vn4ri07.png\[/url\] [url="http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_zpscdczk1b4.png"]http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_zpscdczk1b4.png\[/url\]

          A Offline
          A Offline
          Afzaal Ahmad Zeeshan
          wrote on last edited by
          #4

          The C# file that you're talking about contains the back-end code that would run the application itself, so what kind of trouble are you facing from that C# file? Don't you know C# language, then if you're aware of the VB.NET language you can use it to develop your ASP.NET application too. They have the same name just to remove the ambiguity between them, you can change the name, but always remember to change the Controller name in the settings where you set the back-end code each of your View file. MVC is just an architechture in software programming, which is implemented by ASP.NET team, to allow developers to make use of that architechture while building up ASP.NET applications. You can create a new Web Application, and then select MVC framework and you're done. How would you like to explain the term, it did not work? You usually build MVC application, not just simply represent the business-logic in the software. Where are you actually stuck? Anyhow, I have written an article based on beginners and their troubles while learning the ASP.NET MVC framework. You can read that article of mine at CodeProject: Understanding ASP.NET MVC using real world example, for beginners and intermediate[^]. Chances are that you will understand the framework and how to build basic applications. After that you would continue building complex applications. Please do give that article a read, it would help you out in learning the ASP.NET MVC framework.

          The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

          1 Reply Last reply
          0
          • X Xarzu

            How do I make a MVC project appear properly in Visual Studio? I understand the logic of this sort of structure. I have seen some blogs and explanations and even code segments explaining how a program can use MVC. But I want to know what is a good way to represent a Model-View-Controller program in the Visual Studio. For example, in an ASP.NET program, the asp.net file is associated with a C# file. THey have the same name and, in the Solution Explorer window of the Visual Studio development environment, they are shown linked together where one is a tree branch of the other. Should the same sort of thing be done for a MVC solution? I can remember a few years ago, I worked on a MVVM project, and a developer who first put the solution file together actually had view and the view-model files arranged like this. In order to make this happen, he had to download some sort of patch that allowed him to edit the .sln (solution) file. Is that the way to go for a Model-View-Controller program? Should each be its own workspace in the solution, or should the solution file be edited such that each Model-View-Controller coupling be handled as a tree structure file representation kind of like it is done for an ASP.NET solution? Here is another question. What is a good template to use in Visual Studio to create an example of a Model-View-Controller program? I tried this route but when I clicked to "get new templates", it did not work: [url="http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_02\_zps6vn4ri07.png"]http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_02\_zps6vn4ri07.png\[/url\] [url="http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_zpscdczk1b4.png"]http://i67.photobucket.com/albums/h292/Athono/Embedded/Capture\_zpscdczk1b4.png\[/url\]

            S Offline
            S Offline
            Simon_Whale
            wrote on last edited by
            #5

            as the first image shows that you are targeting 3.5 framework. Can I guess that you are using Visual Studio 2008? if so then I would have a read of this http://stackoverflow.com/questions/1978368/how-do-i-get-mvc-installed-into-visual-studio-2008[^]

            Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups