Run T4MVC transformation from command-line [duplicate] - asp.net-mvc

This question already has an answer here:
Using T4MVC with build script
(1 answer)
Closed 8 years ago.
I'm happy to found a way to publish my ASP.NET MVC app from command-line, but I want to run T4MVC transform before build from .bat file too.
Is this possible?

This came up in this previous question: Using T4MVC with build script.
Unfortunately, this just isn't possible due to the DTE dependency.

Related

ASP.Net MVC project doesn't start at the proper url [duplicate]

This question already has an answer here:
Debug current page in ASP.NET MVC
(1 answer)
Closed 4 years ago.
I'm an absolute beginner at asp.net mvc, i am not sure what changes i made to the project but now upon debugging the project in visual studio 2013, it starts at the path
localhost:port/views/controller/action
instead of
localhost:port/controller/action
and thus giving me a 404 not found error. How do i go about resolving this and rectifying this path? Upon changing this manually to /controller/action the page loads properly but somewhy on debugging it always tries to access the wrong path.
You are starting your app while current open window in Visual Studio is your view page, try to switch to controller.

Visual Studio could not load file or assembly 'System.Web.Mvc' or one of its dependencies? [duplicate]

This question already has answers here:
Could not load file or assembly 'System.Web.Mvc'
(19 answers)
Closed 5 years ago.
I have been working on a MVC5 project using Visual Studio Community Edition on Windows 10. One fine morning, when I started Visual Studio to resume work and run the webapp I got the following error
Could not load file or assembly 'System.Web.Mvc' or one of its
dependencies.
What really happened all of a sudden, I have absolutely no clue. . It's my personal machine.
Can anyone please help me out? What happened to my dear Visual Studio? Is it sick or something?
I have tried all the things that are mentioned in a similar question asked on SO. In that question the OP compiled his own version of ASP.NET from its sources. I have not performed any such thing. Those Jks. who have been finding similarity in that question should read the 2 questions fully before declaring that they are exact duplicates.
Following steps might help:
1.Right click your solution and select open folder in file explorer.
2.Close your visual studio.
3.Delete .vs folder.
4.Open Visual Studio as administrator.
5.Clean and Build Solution.

how to write unit tests for Routes (RouteConfig.cs) using FakeItEasy [duplicate]

This question already has answers here:
Route testing ASP.NET MVC4
(2 answers)
Closed 7 years ago.
I am trying to write unit tests for RouteConfig.cs files to evaluate the routes. For example, "~/" should map to default action and default controllers, and like that.
I am using xUnit and FakeItEasy in my project. Earlier, I could achieve it using MvcContrib.TestHelpers nuget, but that depends on RhinoMocks whereas I am using FakeItEasy in my project and I don't think it will be a good idea to import RhinoMocks just for the purpose of RouteConfig unit tests.
Any idea of a better approach to achieve this?
I switched to using https://github.com/AnthonySteele/MvcRouteTester after having the same issue, hope this helps.

Good WiX editor [duplicate]

This question already has answers here:
GUI for Dialog-design for WiX [closed]
(5 answers)
Closed 9 years ago.
I'm currently working on a project that uses WiX to create an MSI. I've used WiXEdit on Sourceforge in the past for managing the files that get included in the WiX project as it's slightly easier than manipulating the XML directly but it's still a bit clunky. Does anyone know of a better tool for managing the files included in a WiX project or a better alternative for creating an MSI to deploy an MVC application?
You might want to consider IsWiX ( CodePlex )
Here's a recent blog article with a YouTube video showing how to create a stub windows service, create an installer for it and check it into TFS SaaS for CI builds in < 10 minutes.
http://blog.iswix.com/2013/01/iswix-20130134-released.html
The same patterns can be used to handle whatever MVC can throw at you. ( Tweak the MSBuild proj to publish to a local folder and use IsWiX to cherry pick the files from that folder into your WXS. )
An hour on a webex together would probably bring tons of clarity.
i'm using Visual studio 2012 with Wix 3.7 . but you can also look here GUI for Dialog-design for WiX
Here is a list of editors: http://robmensching.com/blog/posts/2007/11/20/WiX-editors. The WiX v2.0 editors are not interesting but the WiX v3.0 editors is still relevant.

Blackberry Build Creation Without Using BB JDE [duplicate]

This question already has answers here:
BlackBerry - Ant build script for more complex apps
(5 answers)
Closed 9 years ago.
I am working on a blackberry application and I want to package and sign the blackberry application without using the Blackberry JDE. Is it feasible to do so ?
Any help is much appreciated. Thanks in advance !!
The best and easiest is using bb-ant-tools. Also please review this question where you'll find build file and it's usage.

Resources