t4mvc Questions

3

Solved

I am rendering a menu from a Partial Action directly to the layout, using: @Html.Action(MVC.Menu.Index()) This action, determines which Menu partial to render. For instance, a public menu partia...
Breastsummer asked 20/7, 2011 at 0:32

1

My MVC project has used T4MVC for scaffolding working fine for years. I made a change to the parameter inputs for one of my controller methods and for some reason when I ran "Run Custom Tool" to pi...
Plasm asked 5/7, 2016 at 15:29

1

Solved

VS2017 15.4.1 ASP.NET MVC 5.2.3 T4MVC 4.0.0 AutoT4MVC 1.5.3 Resharper I have been using T4MVC] for many months in this project without issue. However today each time I change a controller me...
Commute asked 20/10, 2017 at 1:53

2

Solved

According to the latest comments in this thread, .tt templates will now after all be supported in ASP.NET 5 starting with Visual Studio Update 1. Which IMHO would be great because after using T4M...
Endurant asked 21/12, 2015 at 16:13

2

T4MVC is not supported yet or ever in ASP.NET 5. Is there any other similar solution ? I need strongly typed views and controllers names.
Illfated asked 16/11, 2015 at 14:14

2

Solved

I am adding tests to the NerdDinner DinnersController class, and when I create the constructors needed to do Constructor Injection I get a conflict with the T4MVC-generated constructor (specificall...
Redford asked 8/3, 2011 at 21:58

4

Solved

I have the following controller action: [ChildActionOnly] public virtual PartialViewResult ListActions(int id) { var actions = meetingActionRepository.GetAllMeetingActions(id); return PartialVi...
Greenwich asked 7/2, 2011 at 22:50

3

I am using T4MVC with MVC2. I have the following building blocks: A simple entity interface which defines that every POCO entity must have a long Id property: public interface IEntity { public...
Nebuchadnezzar asked 18/7, 2011 at 9:34

2

Solved

Hi I am learning Ajax + MVC. I figured it would be nice for the Controller to automatically handle ajax-aware Redirect(). After some digging, I found the code from this link. The code below is tota...
Mano asked 24/6, 2012 at 6:52

3

Solved

I am wokring in ASP.Net MVC (.Net 4.0) with T4MVC template. So far this file was getting updated with entries automatically whenever I used to add new files into my project (like controllers, vie...
Intromission asked 30/3, 2011 at 4:36

3

I'm getting the following warning when I right click on T4MVC.tt and select "run custom tool" (i.e. rebuild by T4MVC.cs file). Warning 1 Compiling transformation: Assuming assembly reference 'E...
Delisle asked 26/7, 2011 at 0:37

2

Solved

We have a large .NET web application that was MVC3, using T4MVC. We recently upgraded it to MVC4, and all is good except for T4MVCExtensions (version 3.6.5 from NuGet) is still dependent on System....
Prine asked 21/5, 2013 at 19:55

0

Visual Studio 2012 RTM I have a MVC website project and i have some problem with adding some references; EDIT: My Visual Studio has some problems (More info in stackoverflow) I can't add any refer...
Berndt asked 1/4, 2013 at 15:40

2

Solved

I'm working on an ASP.NET MVC solution that has a number of different menus. The menu to display depends on the role of the currently logged in user. In MVC 3 I had some custom code to support thi...
Cohn asked 4/3, 2012 at 22:57

4

Solved

I'm converting our MVC3 project to use T4MVC. And I would like to replace java-script includes to work with T4MVC as well. So I need to replace "~/Scripts/DataTables/TableTools/TableTools.min.js"...
Kalinda asked 8/10, 2012 at 12:0

1

Solved

Folks, As of today should I introduce T4MVC in my project or use strongly typed goodness from MvcContrib? return RedirectToAction(MVC.MyController.MyAction()); or return RedirectToAction<...

1

Solved

I've noticed what I believe to be some odd behavior with T4MVC. Specifically, I'm attempting to build an ActionLink (using the HtmlHelper) for an action where the optional parameter value is null. ...
Spear asked 19/7, 2012 at 17:29

4

Solved

Is there a way to create a strongly typed T4MVC ActionLink with a hash/pound/fragment in it? For example, here is the link I'd like to create: <a href="/Home/Index#food">Feed me</a> ...
Acro asked 27/5, 2010 at 12:19

1

Solved

I am using t4mvc to generate links in my project. I would like to generate urls in a controller action, can this be done using t4mvc?
Hhour asked 19/2, 2012 at 16:38

1

Solved

I have an extension method that returns an ActionResult (simplified for demonstration purposes): public static ActionResult GetTestActionResult(this HtmlHelper htmlHelper, int productId) { return...
Mendenhall asked 8/6, 2011 at 14:26

1

Solved

In my controller I want to specify a different View than default. Like this : public ActionResult EditSurvey(Int32 id) { Survey survey = _entities.Surveys.Single(s => s.Id == id); return V...
Clomb asked 24/2, 2011 at 13:4

1

Solved

So I an into an error at runtime with my asp.net mvc3 app, when I checked the code I see that it has a red line on it, the error list says there is no such function defined but it will still compil...
Genitive asked 16/2, 2011 at 8:50

2

Solved

I've been using T4MVC for some time now and love the "explicit HtmlHelpers for rendering partials" feature, which by default is switched off. I am using T4MVC version 2.6.40. I recently upgraded t...
Counterforce asked 1/2, 2011 at 9:56

3

Solved

I'm trying to add the T4MVC templates to my project, but I'm experiencing some problems. I went to Codeplex and downloaded the latest version of T4MVC, and according to the instructions I just copi...
Sinistrodextral asked 15/12, 2009 at 9:59

1

Solved

T4MVC is cool, but I have a couple of issues integrating it in my project, any help is really appriciated: I've got such warnings for all my actions (I use SnippetsBaseController as base class fo...
Backflow asked 26/4, 2010 at 6:8

© 2022 - 2024 — McMap. All rights reserved.