Change the order during bundling in web essentials - visual-studio

I am trying to bundle files using web essentials
I installed the web essentials and added it to the extensions
I selected the files to minify as in the below image
http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-15-70/3223.5.JPG
But i couldnt find any option to set the order in which the files should be bundled, for example, in the image, i want to move knockoutvalidation.js to the top and have jQuery.js after that in the bundled file
How can i achieve this?

Well, here goes -- my first post on StackOverflow! Gulp.
Web Essentials should have created a .bundle file containing XML used for configuration. Use the files node to change the order; eg, here foo.js is bundled before bar.js:
<files>
<file>foo.js</file>
<file>bar.js</file>
</files>

Related

CKEditor not shown when i download js file from server

Below script reference getting cke js from server
<script src="//cdn.ckeditor.com/4.5.0/standard-all/ckeditor.js"></script>
When I download from this server and add manually my project CKEditor not shown.
what is the difference two situation?
You've downloaded only one file "ckeditor.js" but it tries to load many other files (images, css, language files, dialogs, ...) so it can't work that way.
You should download instead the full package that you can deploy to your server: http://ckeditor.com/download

Installing Magento Extensions on a Custom Theme

I'm building a Magento theme, and the extensions that I've installed so far do not work well with my website. As it seems, some of the plugins are not showing any display on the front-end (others show, but not completely as intended).
In general practice, when building a custom theme and installing extensions, are the extensions installed in the custom theme's directories or in the base or default directories? I haven't yet ruled out the possibility that Magento is unable to find all the proper files because it's looking in the wrong place, and that while it should be looking in the theme files, the files are not there, because they're installed in the base path instead.
I saw something on those lines over here: http://www.collaboration133.com/magento-extensions-not-displaying-on-frontend-after-install/2693/
What's the common standard (as far as directories) for successfully installing a Magento extension? Also, if I need to reinstall it in the custom theme directory, is there a simple way to do this, or must this be done manually? Thanks!
As far as Magento folder structure is concerned, it checks the files in:
<current theme package> --> <current theme folder>
<current theme package> --> <default folder in current theme's package>
base --> default folder
So if the extension has files in suppose default --> default folder and your theme package already has a default folder, then extension files will not be accessible by default.
You need to manually copy those files into your theme.

Is there software I can use to view my Markdown files as a wiki, with relative links, on Windows

Our team has installed the Markdown Mode extension in Visual Studio on our Windows PCs, and we're happy with that as an editor for Markdown files, but we need a way to generate a wiki from those files where we can click on links that cross-link the files of the wiki. I've been trying to find something, but haven't had any success getting something running.
I tried creating an empty web application and pasting in the html file from here http://dynalon.github.io/mdwiki/#!index.md and naming it index.html, and adding a couple of md files to the same directory that I set to always copy to the build directory, but I got 404-3 errors when it tried to access the .md file.
I see a couple of tools that look possibly good but need Python or Ruby installed, which isn't ideal: http://markdoc.org/quickstart or http://helloform.com/projects/commonplace/
I see this ASP.NET control for embedding a Markdown file into a page http://wikicontrol.codeplex.com/ but the control is for VS 2010 so clearly is not being actively maintained, plus to use it I'll need to build something to take the relative links and find the related .md files and load them up in MVC - sounds like a hassle to get working, and it will require me to put MVC in my docs project.
Is there something that is just designed so that I can put an html file or similar in a directory with a root .md file and have it just immediately act like a wiki and allow navigation between them?
We have decided to use MarkdownDeep NuGet package and a single MVC controller to handle this. The MVC controller looks at the requested path, uses it to figure out the location of the Markdown file, reads that file and renders it to HTML and returns the HTML.

app_code folder

Normally I only copy the dll files in the bin folder to update the website, when changing the codebehind.
I have made a change to a code file located in the app_code folder.
I have published the site and updated the bin folder with a lot of app_webxxx.dll files.
Now I get a parser error: Could not load the assembly 'App_Web_syn42ext
Is it possible to only update the dll files or do I need to update all aspx files everytime I make a change to get the website running ?
You need to do it as well, you need to update web pages as well, because if you will see when you publish the webpages in aspx page, on header tag, the reference of cs file upgrades itself.
So whenever you will publish there will be some random giud generated and will appended to file name, basically it reference to the name space.
So you will need to update web pages as well.

Is it possible to filter on files in sub folders in ContentFiles for a web setup project?

I have a web setup project and a web site included in the same sollution.
In the setup project, I have added Content files pointing to the web site content.
In this web site there are some folders that contains dynamically generated files (i.e .log files, some image files etc.) I do not want these files to be included in the setup. I have tried to add a filter Symbols\*.png but this does not work. I have also tried a filter called *.png, and this excludes the .png files within that folder, but the problem is it also excludes all static .png files in the web site that must be there.
How can I add a filter that excludes only the files under the directory I want?
Is it possible to call something in the PreBuildEvent after the files are deleted that will tell VS to refresh the web site content?
Are there any other approaches that can solve this?
Have you tried to edit your .csproj file with notepad and add something like:
<ItemGroup>
<!-- This will exclude the .png files from the Symbols folder -->
<ExcludeFromPackageFiles Include="$(ProjectDir)..\..\MyWebSite\Symbols\*.png" />
</ItemGroup>
where ItemGroup is after the following line:
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
More info you can find in the following article: http://sedodream.com/2010/05/01/WebDeploymentToolMSDeployBuildPackageIncludingExtraFilesOrExcludingSpecificFiles.aspx
As a workaround, I have created a PreBuildEvent that deletes all the files that should not be included in the setup:
del /Q $(ProjectDir)..\..\MyWebSite\Symbols\*.png
This actually deletes the files when I start the build, but it causes an error later in the build, because some content files does not exist that the setup content thinks should be there. The files that are deleted, are still referenced in VS as content in the web site. If I browse the folders in the web site, I see that the deleted files are there in the VS GUI (although the files are actually deleted). I have to do a refresh on the web site project to tell VS that the content has changed, and then do the build again. Then it works, and my setup contains what I want.

Resources