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
0
votes
1 answer

T4MVC causing incorrect URL

I am trying to generate URL using T4MVC. Here's the view @{ Layout = null; } Index
0
votes
2 answers

T4MVC - Does not generate parameter-less constructors?

I'm trying to use T4MVC in my ASP.NET MVC4 application. I'm inserting it in my view as shown below: @using (Ajax.BeginForm(MVC.Check.Lead(), The Lead method takes an integer ID parameter which is supplied in the form itself. In the documentation…
John Mayer
  • 3,313
  • 3
  • 19
  • 20
0
votes
1 answer

T4mvc for VB Breaking Everything

I've grown an unhealthy dependency on T4MVC since it's such an awesome library i have been using it for years in c# and have never had much of a problem with it I am working on a new MVC 4 project in VB and it seems to break a lot of my code, any…
Chris McGrath
  • 1,727
  • 3
  • 19
  • 45
0
votes
0 answers

Visual studio Error in adding any references OR installing and updating any packages (loading type library/DLL)

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 reference to my projects (even inside new solutions and…
Ramin Bateni
  • 16,499
  • 9
  • 69
  • 98
0
votes
1 answer

Model not binding to action

can anyone can help me finding why this is not working: Model: public class CreateAdCategoryViewModel { [Display(ResourceType = typeof(HeelpResources), Name = "AdViewModel_Category_Label")] [Required(ErrorMessageResourceName =…
Patrick
  • 2,995
  • 14
  • 64
  • 125
0
votes
3 answers

Best way to manage Magic Strings in JavaScript external JS file

Has T4MVC is not extensible to external JavaScript file, I would like to find the best way for manage "Magic Strings" like a Controller/Action value in a JQuery .load() method. I want to minimize the risk of the change of an Action to provoque an…
Patrick
  • 2,995
  • 14
  • 64
  • 125
0
votes
4 answers

T4MVC ArgumentOutOfRangeException in View

I just installed T4MVC on my project and I run into some problem. In my controller i can call redirect to action without problem: return RedirectToAction(Actions.Index()); If i do call it from my view, i get an…
Tom
  • 944
  • 1
  • 14
  • 26
0
votes
2 answers

T4MVC and virtual directory

I'm using T4MVC in my project . but after deploying to a virtual directory e.g "/app" when I run the site all addresses were wrong . for example instead of being content/site.css it's /app/content/site.css and the browser can't find it . for…
0
votes
2 answers

T4MVC adding current page controller to action link

I have the following ActionLink that sits in the home page on the register controller (Index.cshtml) @Html.ActionLink("terms of service", Url.Action(MVC.Home.Terms()), null, new { target="_blank" }) Generating the following URL. …
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
0
votes
1 answer

t4mvc not working in Visual Studio 2012

Any changes to actions or controllers results in errors or, worse, bizarre behaviour when the app runs. For example, adding a new Action to a controller resulted in an Html.ActionLink call in a view actually calling the action. I didn't know what…
awrigley
  • 13,481
  • 10
  • 83
  • 129
0
votes
2 answers

T4MVC Exclude File or Controller

I have a controller that is only built in Debug (using #if DEBUG) that I use to house some test methods that I don't want on the production server. The problem I'm running into is that using T4MVC I get a derived class based on the controller with…
Greg Jackman
  • 686
  • 7
  • 9
0
votes
2 answers

T4MVC with Portable areas on TeamCity

I have a situation where we have a solution that uses Portable Areas and T4MVC which has a separate project for T4MVC where all the generated files for the 7 portable areas and main MVC3 application. We have followed the instructions here we are…
Nathan
  • 931
  • 1
  • 12
  • 26
0
votes
1 answer

T4MVC and HTTPS not showing up in URL

Im a bit confused but my URLs being rendered with T4MVC on my local IIS Express contain HTTPS in the URL. On our staging server the URL being rendered contains HTTP but are using the same code like below? Does anyone know why?
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
0
votes
1 answer

T4MVC Multiple types were found that match the controller

I have Home controller in main Controllers folder and in Controllers folder of some Area. As result I get an error telling ASP.NET MVC can not find out which of Home controllers to use: Multiple types were found that match the controller named…
SiberianGuy
  • 24,674
  • 56
  • 152
  • 266
0
votes
0 answers

Using T4MVC with .NET 4.5 in Visual Studio 2012 RC

Does anyone know if this is possible? I can get it to work OK if I build for 4.0 compatibility but when I use 4.5 all my tests fail with the familiar; System.Security.VerificationException: Method …
cirrus
  • 5,624
  • 8
  • 44
  • 62
1 2 3
16
17