Can you use the new ASP.NET 4.5 bundling and minification features in Orchard CMS?
In my layout.cshtml, "#Scripts.Render("~/bundles/js")" is not recognised.
If so what do I need to do to enable it?
Thanks
Related
After applying Update-Package on a long solid MVC Application, the _Layout markup has been lost. This took place in 4/26/2017.
I couldn't determine which updated component from NuGet is causing the error.
However, I also created a new clean .NET Framework MVC Application. With no other actions, did an Update-Package. The new Application has also lost its _Layout rendering. My framework level is 4.6.1
At least one of the problems is the result of the Nuget batch Update-Package modifying the Bootstrap version to 4.1.0
The fix is using Nuget Package Manager on References and lowering the Bootstrap version to 3.3.7 At least my new clean trial MVC application is then correctly displaying the _ Layout page.
But this hasn't corrected my major application.
Further Fix. In my main application I removed using Nuget in the following order:
Bootstrap
Microsoft.jQuery.Unobtrusive.Validation
jQuery.Validation
jQuery
Then clear the Scripts folder in the Project View
In the reverse order of above Install, at the latest version:
jQuery
jQuery.Validation
Microsoft.jQuery.Unobtrusive.Validation
Bootstrap(3.3.7)
Now the Scripts Folder should be regenerated.
At this point my application is displaying the correct _Layout
What is the difference in bundling feature between MVC5.0 and webpack bundling?
In ASP.Net MVC 5.0, we use Microsoft.AspNet.Web.Optimization Framework for bundling and minification.
Start from ASP.Net Core, Microsoft supports third-party frameworks for bundling and minification such as Gulp, Bower, Webpack.
Please note that those third-party frameworks offers a lot more than just bundling and minification.
I am developing asp.net mvc5 project and now I want to use text editor in the project so I have downloaded richtexteditor from nuget to the mvc project but I do not know how to use thisin the prohect .please help me to solve this problem
Ajax Control Toolkit can not be used in ASP.NET MVC projects, only non-MVC ASP.NET projects.
I am currently working on a project in Orchard. We are looking to wrap up an existing .NET MVC Web application within an Orchard Module. Currently, we are having issues with AutoFac.
The original site was built using AutoFac 3.5, however the latest stable version of Orchard is still running on 3.0. The application requires features introduced in 3.3. If I install 3.0 into the module, the features do not work, if I have 3.5 in the module, it produces a conflict.
Can anybody suggest a way of handling this conflict? Or, is it safe to upgrade AutoFac 3.0 in Orchard and if so how should I perform this without breaking it?
Thanks,
If I may suggest, Orchard 1.9 should be released soon™ and it already has dependency on latest stable Autofac 3.5.2. If you don't want to wait you can grab latest repository from GitHub
https://github.com/OrchardCMS/Orchard/tree/1.9-int
It's perfectly stable in my opinion and I find released 1.8.1 to be much more buggy :D.
Copy the web.config file runtime Node from Existing Module (Lucene or Markdown or like) and add the runtime node on conflicts Module Web.Config file. After Compile then clear the Conflict
I am coming from MVC background and has recently started development using angularjs.
I am using Visual Studio for the WebApi development and using MVC from angularjs.
The basic template for hosting webapi i had picked from: here
But now i dont have any way for minification & bundling, which would in production drastically hamper the app load time. Is there any way to use minification & bundling with angularjs & webapi without using MVC.
While looking for solution i came across "Node.Js Tools for Visual Studio" which seems to came to my rescue. Now i am having separate projects for webapi and angularjs. i am using node.js for build & testing purposes. npm for installing packages in angular project & nuget for installing any dependencies for webapi project. Now, I can do all the development in visual studio.
But I am still not sure about few things:
how do i make connect between webapi & angularjs. i need to host both in different ports and do the CORS from angularjs.
if i make a change in webapi, will i have to host it again and then test it... is there no easy way out?
Btw, combining visual studio with node.js - is that a bad idea? should i keep the mvc with webapi and angularjs in same visual studio project and using mvc bundling-minification... so i am not worried about hosting & deployment.
Note: I am using NHibernate and have to connect with Oracle. is there any other option that i can try apart from webapi which can make the things easier.
Sorry for my lack of knowledge on how the things on overall level works.. how do these threads combine, and thanks for helping me out. I have done enough googling but was not able to find out a solution. if somebody can point me to some articles it would be great.
AngularJs is built perfectly for communicating with RESTful web apis. Look at the $http and $resource providers. If you are communicating cross domain, you will have to set up CORS in your web api application.
If your project is set up that your angular app is also served by your web api server, you can debug local, make and deploy changes together, etc.
Node.js is a great solution for non-mvc bundling, linting and minification, but nuget does the same thing as npm, and in most cases, it's more suitable for the visual studio experience.
If you're using node.js, you can pretty much wrap anything you like to communicate with oracle.