Questions tagged [t4mvc]

T4MVC is an open source utility for Microsoft ASP.NET MVC. It allows replacing magic strings in Views, Controllers and Links to content with strong names/types.

T4MVC is an open source utility for Microsoft ASP.NET MVC. It allows replacing magic strings in Views, Controllers and Links to content with strong names/types.

Resources

245 questions
1
vote
2 answers

T4MVC using with external javascript files

Is it possible to use T4MVC in an external js file? I include a js file in my cshtml file and in MyScript.js i have the following in a function @Url.Action(MVC.MyController.MyAction()) but it never get compiled to its Action name (thought that…
KanTube
  • 61
  • 1
  • 3
1
vote
2 answers

T4MVC and testing with MvcContrib.TestHelpers issues with static linked content

I'm trying to write some tests around some code previously written before I start mucking with it. I'm running into issues where the controller method references some of the static variables that T4MVC makes for images and links. It is actually…
nportelli
  • 3,934
  • 7
  • 37
  • 52
1
vote
1 answer

localized routes solution

I built a french/english app and I would like to use the same controller/view for both language but to have a different route that is map to the current language. Let say I have website.com/Account/Register that return to my Account controller and…
VinnyG
  • 6,883
  • 7
  • 58
  • 76
1
vote
1 answer

View Not being rendered on installation of T4MVC

I have an ASP.NET MVC 3 web application. I recently installed T4MVC templates by using the package manager: Tools -> Library Package Manager -> Package Manager Console PM> install-package T4MVC This caused T4MVC.tt and T4MVC.tt.Settings.t4 to be…
floatingfrisbee
  • 928
  • 1
  • 10
  • 28
1
vote
1 answer

T4MVC handling minified js and css files generated with Chirpy

I am using T4MVC and the Chirpy plugin in an ASP.Net MVC 3 website and I am loving both of them. Only T4MVC can't seem to handle the minified js files generated with Chirpy and .yui.js javascript files. Chirpy is generating .min.js files but the…
Wim
  • 1,967
  • 11
  • 19
1
vote
1 answer

T4MVC with ActionNames

I just included T4MVC in my project and ran into an issue. I'm passing data to my javascript via hidden text fields and I need to be able to pass the names of controllers and their actions. Here's what I have:
Ryan
  • 4,354
  • 2
  • 42
  • 78
1
vote
1 answer

T4MVC 2.6.44 missing T4MVC.settings.t4 file

I downloaded the latest version of T4MVC 2.6.44 from http://mvccontrib.codeplex.com/releases/view/41582. When I unzipped the file, it has T4MVC.tt and T4MVC.cs. And I don't see T4MVC.settings.t4. I double checked that the T4MVCVB version has…
eyob
  • 11
  • 2
1
vote
1 answer

ActionExecutingContext.ActionParameters NULL on RedirectToAction MVC 5 - T4MVC

I have a redirection like: return RedirectToAction(MVC.Area.Controller.Index(institutionId)); This redirects to a controller which inherits from another controller which has an action filter defined like so: protected override void…
qubits
  • 1,227
  • 3
  • 20
  • 50
1
vote
1 answer

Problem with IEnumerable in View

I have a view that enumerates over a model. Outside of the grid that enumerates over the model, I want to have a create link that accepts a parameter of MeetingActionId, that will bind the ActionUpdate object to a specific MeetingAction. How do I…
MrBliz
  • 5,830
  • 15
  • 57
  • 81
1
vote
1 answer

Error while using custom TYPE in TextTemplate(t4)

I created MVC project and added "Class1.cs" to it(in the same project) Class1 code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using MvcApplication2.Models; namespace MvcApplication2 { public class…
theateist
  • 13,879
  • 17
  • 69
  • 109
1
vote
2 answers

T4MVC not picking up the Views in Areas (ASP.NET MVC 3 RTM)

T4MVC is working fine everywhere except in Areas. In Areas, it picks up the Controllers and the Actions, but not the Views. So, I cannot write, in my controller: return View(MVC.MyArea.MyController.Views.MyView); Outside of the Areas, I CAN…
awrigley
  • 13,481
  • 10
  • 83
  • 129
1
vote
2 answers

t4mvc doesn't work with VS2010 .Net 3.5

I converted my solution to run with VS2010 from VS2008. But I'm still running .Net 3.5 instead of 4. T4MVC has stopped working and is not able to generate any code. Would be great if you could please help with this. I've tried to look for this…
Divleen
  • 11
  • 2
1
vote
0 answers

Nested application ignores bundles

I'm trying to run my ASP.NET MVC 5.2.3.0 application as nested application so that I can access it as a subfolder, like http://example.com/my-application. I've added it to an existing application by choosing Add Application a chosen separate…
Denys Denysenko
  • 7,598
  • 1
  • 20
  • 30
1
vote
1 answer

Convert ActionLink to T4MVC ActionLink

Probably it should be very easy but I am not sure that I did it correctly, so I want to ask you how to convert the code below to T4MVC syntax: @Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new {id =…
Misha Zaslavsky
  • 8,414
  • 11
  • 70
  • 116
1
vote
2 answers

T4MVC in MonoDevelop 2.4

Has anyone tried to make T4MVC work in MonoDevelop? Out of the box, I get this error: Could not resolve include file 'T4MVC.settings.t4'. When I include the full path in the include statement, it makes MonoDevelop crash completely. Thanks for any…
RooSoft
  • 1,481
  • 2
  • 17
  • 32