T4MVC controller generated files not updating for newly added controller - t4mvc

I added T4MVC into my application and it generated all necessary files for the controllers.
However when i try to add a new controller into my application, but I dont see the controller.generated file for this newly added controller into the application.
Am I missing something or is it a limitation of T4MVC?
Can anyone help me on this?

There are several options to cause the generation to happen:
it happens whenever you save the t4mvc.tt file
you can right click t4mvc.tt and choose Run Custom Tool
You can use Chirpy (http://chirpy.codeplex.com/), which can make T4MVC generation automatic.

Related

Problem with "Edit and Continue" in a ASP.NET core mixed Razor Pages and MVC app

I'm trying to update an old webpage that I had developed using MVC. Now I'm adding Razor Pages, but then Edit and Continue won't work anymore.
I can isolate/reproduce the problem in a minimal context. It seems to occur when there are files both in Pages and in Views, e.g. _ViewStart.cshtml.
Here is how to reproduce:
Create an ASP.NET Core Web App, .NET 5.0, No Authentication, no HTTPs, no Docker, enable Razor runtime compilation
Place a breakpoint in IndexModel constructor
Run App
When hitting the breakpoint, edit the code (just add a semicolon in the ctor), continue: code will compile and continue
Add new folder "Views"
Copy _ViewStart.cshtml from Pages to Views
Run App again
When hitting the breakpoint, edit the code (just add a semicolon in the ctor), continue, get message: "Edits were made to the code which cannot be applied while debugging"
I could probably work around the issue, but I'd rather try to understand why this happens.
This also happens when I add the Identity package and try to customize the pages, in which case I also need a double _ViewStart.cshtml...
Any ideas?

In Dynamics crm the js file can't be attached

When I attach js file to form property in lead and save and publish customization the js file does not run and when I open the form property again it does not have the js file I attach.
Please verify these steps and this should solve your problem:
If you have multiple forms, make sure you are checking the same form in both cases
Don’t forget to click OK button in form properties after adding library/event, then save the form, and then publish. Worst case, do Publish All customizations
the problem was in chrome but when worked on internet explorer the problem is disappear

Where is the NSDocumentController in Apple's Document Application Template

Apple makes the point that I will rarely need to subclass NSDocumentController. OK, but I expected to see it somewhere in the project produced from the document based application template. Is it in the project, but Apple has "helpfully" hidden it? Is there something i'm missing there?
Thanks
According to this link there is a default NSDocumentController:
https://developer.apple.com/library/mac/documentation/DataManagement/Conceptual/DocBasedAppProgrammingGuideForOSX/AdvancedTopics/AdvancedTopics.html .
Other sources indicate that the first document controller created becomes the default. Presumably, a document controller inited and allocated in the application delegate would become the default and any hidden attempt to create one would happen later and would be ignored. In this way one could add one's own document controller.
This is probably explicitly explained somewhere, and I missed it. Sigh!
If you've created a Document-based application, you can find NSDocumentController.h in
Frameworks->AppKit.
The easiest way to find this is to put this line of code
NSDocumentController* controller;
Into a .m file, and right-click->Jump To Definition on the NSDocumentController part.

_ViewStart and _Layout.cshtml files are automatically created in ASP.NET MVC 5 (annoying)

I am having a Weird and annoying problem. In my ASP.NET MVC 5 project, time to time, I see that _ViewStart file and Shared/_Layout.cshtml files are created automatically even though I did not want. So, I deleted those files but these files are getting created time to time by itself. That cause a great problem because, sometimes, if I dont notice that these files are created, I can accidentally publish the website and then, after publish, I notice that all pages are being wrapped by the auto created _Layout.cshtml file. Is it a smart helping feature of Visual Studio 2013 ? Cant we stop this ?
Emran!
I am not sure that you still need the answer but today I have also met similar problem. By some unknown reason file "Shared/_Layout.cshtml" was automatically added to my Project.
I was realy wondering why could it happen and I found which actions should be performed to make this file be created.
I have added new View to my Project and have used for it standard VS resources:
Right mouse click on Views folder.
Add -> Veiw...
Inside window for adding view I have checked "Use a layout page" and have left field below empty.
Press Add
My VS was thinking a lot and suddenly created new view and also... "Shared/_Layout.cshtml" and "Shared/_ViewStart.cshtml" files!! I do not think that this option might be switched off because it is logically to create layout page when it has been missed.
Hope this info is helpful for you and for anybody else :)

Changes in source of components of Joomla is not reflecting

I am modifying the source of Joomla components .Sometimes the changes are not reflecting but sometimes it works.
Is there any clean or repair and rebuild method in joomla ?
So i can get the effect of my modification immediately.
Hey Abdul what you want to achieve by modifying Joomla's source files. You can do it by writing plugin without hacking the core files. There are many users events available in Joomla. I think you want to do something on login so you can use onUserLogin event.
Check this link. http://docs.joomla.org/Plugin/Events/User

Resources