Controllers and Views in Spring Framework in Visual Studio - asp.net

I've installed Spring.Net extension for Visual Studio. I couldn't find an example on how to use Controller and Views using Spring Framework in .NET.
If any one can give me the sample project of Web Application using Spring Framework with Controller/Views example ?
Thanks,
FaisalNasir

Check the examples pages here for many examples, also this is the documentation quick start.

Related

how do I find out if I have asp.net CORE

I have been asked to update my Visual Studio with asp.net core. But the update told me I already have this component. However when I look in the list for New Project I can find nothing which includes the word CORE.
How do I work this out?
I'm not talking about a single Visual Studio Project or File. I'm talking about the whole program. I have to update the program.
You need to download Tooling Preview 2 to get the asp.net core templates. That is a bug in the visual studio 2015. Please follow the following steps to resolve this issue
This is what your add new project dialog will look like once you have .net core installed correctly. Were you able to resolve this?
Is it a console app or a web app? If you have a .xproj file in your Visual Studio project, then you have ASP.NET Core web application. Probably the same for an ASP.NET Core console application.

DevExpress Universal Template with Authentication

I installed DevExpress Universal cause I need Grid View and Chart for my web. Also I am trying out ASP.NET Core and already started creating a web application with the Microsoft template for ASP.NET Core MVC. My application needs authentication for users and I am using Individual User Accounts which was supplied by the Microsoft Template. Is it possible to integrate DevExpress Library in my project instead of creating a new project with the DevExpress Template? I am planning to use ASP.NET MVC Wrappers from DevExpress, also.
In previous version there has been an Integrate DevExpress option in the DevExtreme menu but this release "DevExtreme MVC Wrappers" is quite new or could be RC release. It is not so difficult to do it manually, please refer to this article on how to proceed ASP.NET MVC Wrappers 16.1.6.
yes its possible. first you need to add devExpress reference in your project before, then you can use a devExpress Templete.

How to access configuration in windows class library project created in Asp.Net Core MVC?

I have a new Asp.Net Core MVC website. Asp.Net core only targets full .net 4.6.1 framework.
I have added another project to the solution, which is windows (not Asp.Net core) class library. This class library was developed before 2 years but recently converted to target .net framework 4.6.1. So I thought to re-use it. I was able to bring the reference in with Asp.Net core mvc site. However, I like to inject configuration (IOption) to this class library. I tried searching around but I could not find any help. I find a few posts where there was a discussion around adding a startup.cs in class library and retrieving the configuration. However, it was not quiet clear from the discussion, which type of class library they were discussing about. I think I could implement the same with class libraries build with .NET Core. However, how I can achieve the same implementation with older libraries I have.
I really appreciate any help on this. I like to access IOption service in the class library developed earlier.

HelpPage for ASP.NET vNext MVC 6 Web Api

I am currently checking out asp.net vnext MVC6 in Visual Studio 2015 Preview. I'm pretty new to asp.net in general, but within my company we are going to move towards creating a web api using asp.net for accessing data on our server (currently we only support wcf communication with our own silverlight application). This is the reason I am checking out the new functionalities of MVC 6 to judge whether we should wait before starting our development and use MVC 6 when it is finally released or start development now and create a Web API 2 project.
Anyway, I am looking into auto documenting the web api, which is already integrated into the Visual Studio template for a WebApi 2 project by use of Microsoft.AspNet.WebApi.HelpPage.
Now for my question, is something like this available for MVC 6 aswell? I can import the same package in my project.json in my ASP.NET vNext / MVC6 (whatever you want to call it) project but i can't do app.UseHelpPage(); in my Startup.cs file.
I suspect this is not (yet) integrated in the current release yet. If not, is there anything known about integration of this feature once ASP.NET vNext eventually hits the shelves?
Probably this feature is not available in MVC 6 yet, but you could try Swagger.
Swagger basically is a framework for describing, consuming, and visualizing RESTful APIs.
The nice thing about Swashbuckle that it has no dependency on ASP.NET MVC, so there is no need to include any MVC Nuget packages in order to enable API documentation, as well Swashbuckle contains an embedded version of swagger-ui which will automatically serve up once Swashbuckle is installed.
Source: http://bitoftech.net/2014/08/25/asp-net-web-api-documentation-using-swagger/

Create MVC 4 application

I asked a question earlier about Changing MVC 5 and .NET target framwork because the application I have will not work with Windows Server 2003 (they didn't tell me that). If you know a way to do this, so I can avoid what I'm about to ask, please let me know.
Anyways, I'm trying to create a MVC 4 web application using the newest from of Visual Studio 2013. In a new application I already changed the framework to .NET 4 but I only find MVC 5 listed when I try to create a new controller.
I'm not really sure what I need to do, if I need to download a later version of Visual Studio or find a certain template.
Also, I learned how to create my web application using this tutorial, so maybe that will give you a better idea where I'm coming from, AKA I'm new at this stuff.
http://www.asp.net/mvc/overview/getting-started/database-first-development/creating-the-web-application
You will find the MVC 4 Application (Based on ASP.Net 4, not 4.5) In the Visual Studio 2012 project types. File -> New Project, Expand the Web node, Visual Studio 2012. The Asp.net MVC 4 Web Application project template will create the correct controller templates. It is not sufficient to create a standard MVC Application (which will be MVC 5) and then change the target framework.
Bear in mind, some examples you may find for MVC may not function exactly as advertised using the older framework type.

Resources