Using The Microsoft Ajax Minifier With Web Setup Project & Source Control?

Feb 22, 2010

I've just started investigating the Microsoft Ajax Minifer 4.0 for use with a Visual Studio 2008 Web Application I work on. It's proven easy enough to hook it into the .csproj file so it produced .min.js files for all scripts, however I'm stumped as to how to integrate this with the Web Setup project & Source Control.

Essentially what I want to do is have the resultant .min.js files included in the Web Setup project without having them included in Source Control because:

Having to check them out prior to the build being executing is a pain (the minifier cannot modify them if they're not checked out).

As they're created as a "build artifact" it just seems wrong to have them stored under source control.

The only option I've managed to come across so far is to explicitly include the .min.js files as part of the Setup project by right clicking on the Web Setup project and choosing "Add > File", and then having the relevant folder hierarchy duplicated in "File System on Target Machine" so that I can force the file to the correct location. This is neither elegant or simple/robust as:

It requires me to manually add every minified js file to the Web Setup project by hand Maintain a copy of the relevant directory structure in both the Web Application project and the Web Setup projec Remember to add any new js files minified versions to the Web Setup project.

View 2 Replies


Similar Messages:

AJAX :: Implement Microsoft Minifier To Website Project?

Sep 30, 2010

there is a tutorial about ASP.Net Application but i am using ASP.Net Web Site so i don't have unload edit name feature like stated here [URL]

View 1 Replies

Visual Studio :: Why Microsoft Ajax Minifier Dosen't Minifi The File When Used With Team Build 2010

Oct 9, 2010

I just used the wonderful tool Microsoft Ajax Minifier and it's working very well when I build my MVC application on my machine but when I check-in in source control and started build by the Team Build 2010 it doesn't create the min files, for sure I can't put the mini files inside the source control as the recommendation from the Microsoft Ajax Minifier because it's like the dll it's generated every time you build your application so no need to put it in source control beside it can't be because you will need always to check-out this file to build and this will prevent other from build using the team build, so what I need to do to make generate the mini file with team build 2010?

View 1 Replies

VS 2008 - How To Make DataSet As A Source For Microsoft Chat Control

Jan 24, 2013

I have a simple .aspx page. I am using VS 2008. I have a microsoft chart control on the page. In the page_load event, I would like to to populate the chart control. I wrote the following code. I can see the data in the dataset. But for some reason, the data is not seen in the chart control.

Code:
protected void Page_Load(object sender, EventArgs e)
{
DataSet adataset;
string Sql = "select count " + '|'+'|' + "unit as Tenor, value from qrm.advancecurve order by days asc";
Database db = DatabaseFactory.CreateDatabase("ConnectionString_OracleQRM");

[Code] .....

View 1 Replies

Visual Studio :: Configure Ajax Minifier For 2008?

Nov 2, 2010

How to configure Ajax Minifier for Visual Studio 2008?

View 2 Replies

DataSource Controls :: Deprecated DataTypes - Will Microsoft Put Out An Update For This Particular Setup

Apr 29, 2010

I read on MSDN that Ntext and Image will be removed from future version of SqlServer, but as I check my db the aspnet_Profiles uses ntext and image MSDN says replace them with nvarchar and varbinary

1. I tried to replace these column and got an error
2. When should I replace these datatypes?
3. Will Microsoft put out an update for this particular setup?

View 4 Replies

AJAX :: Can Use The Ajax Minifier In Vs2005

Jan 27, 2010

How can i use the ajax minifier in vs2005 ? ( vs2008 is available )

View 1 Replies

How To Create The Web Setup Project

Jul 26, 2010

I need to create the web setup project

1. the hide the code from the user(dll)

2.need to add some launh condition if the user machine doesn't has Crystal Report for 2008 and Chat controls for .Net 3.5 SP1 i make the project to instal the things first then install the project how to do this

View 5 Replies

Project Setup For An ADO.NET/WCF DataService?

Apr 3, 2010

I'd like to implement a ADO.NET/WCF DataService and I am wondering what's the best way to setup a project in VS2008 SP1 for this purpose.

Currently I have an ASP.NET web application project (not of "WebSite" project type). The data access layer is an Entity model (EF version 1) with SQL Server database. I have the Entity Model in a separate DLL project and the web application project references to this assembly for all data accesses.

The ADO.NET/WCF DataService needs to communicate with the Entity model/database as well. It has to be hosted on the same web server (IIS 7.5) together with the web application.

Since the DataService is not directly related to that specific web application (though it will provide and modify data from/in the same database the web application uses as well) my basic idea was to separate the DataService in its own new project (which also references the Entity Model DLL).

Now I have seen that there is no project type "ADO.NET/WCF DataService" in VS2008 SP1. It seems only possible to add a DataService as an element to other existing projects, for instance Web Application projects.

Why isn't there a separate DataService project type? Does this mean now that I have to add the DataService as an element to my Web Application project? Or shall I create a new Web Application project and add a DataService to it? (I could delete the pregenerated default.aspx since I do not need any web pages in this project.)

View 2 Replies

Configuration :: Add SQL Scripts Into Setup Project?

Mar 16, 2010

In one asp.net project, I created a setup project. It is working fine. Is it possible to add SQL scripts(to create database and store procedures) into setup project and run scripts automatically once client user installs the application?

View 1 Replies

How To Setup .NET Project To Find Files

Jan 5, 2010

edit I do not want to redirect pages, specific files etc. I would like to change the path where images, videos and other media are stored from the root source directory to the directory of my choosing. In this case c:/dev/prjfiles/prjname/public (c:/dev/prjfiles/prjname/ is my working directory) and i except when my html does img src="/pic.png" it will find the image in c:/dev/prjfiles/prjname/publi/pic.png. I need a working solution, i tried looking at how to set virtual directories and etc. I cant figure it out.

View 7 Replies

C# - MVC, EF Layer, And Automapper Setup For A Project

Jan 17, 2011

I'm trying to figure out the best approach to architecting this project. Basically, it's a "band" profile site. I'm using ASP.NET 4, EF, and Automapper (structuremap too, but that's not important). I'm running into performance issues I have a EntityFramework repository class that interacts directly onto the EF objects using LINQ:

[Pluggable("Repository")]
public class EntityDataRepository : IRepository
static EntityDataRepository()
// other mappings removed
// Data. objects are EF objects, mapping to my DTO classes
[code]...

View 1 Replies

Web Forms :: How To Create A Setup For Project

Dec 21, 2011

I want to create a set up for a web project in asp.net 3.5. How can i do it? What are the steps involved? How to include database?

View 1 Replies

VS 2008 Upgrading Application With Web Setup Project?

Apr 27, 2010

i created a web setup project for my asp.net application. am trying to create an upgrade MSI that will only replace some few files in my initial installation (very minor upgrade). right now, am not getting it right because the whole initial set of files is been replaced. i guess i only need to change the package code, but i cant do this in VS.NET 2008.

View 6 Replies

Visual Studio :: Getting VS To Setup IIS When Opening Web App Project?

Oct 29, 2010

When I open up a web application project, VS attemps to configure IIS to open the project. This is fine, but typically there is already an application in that place. For example, we have apps that run at the root, and various feature branches would map to the same virtual application. Even though VS can *create* the application, it won't modify an existing one.

For example, lets say IIS has:
/MyApp
During my day I mightwant to work on MyApp from:
c:ranchesfeature1MyApp
c:ranchesfeature2MyApp
c:archive
elease102MyApp
c:production
elease204MyApp

If I delete /MyApp, then VS will create it when I open any of these projects, but it will never modify /MyApp to point to my current project. So first thing is: Is there any way to change this behavior?

Second question is, is there no way to open a web application project w/o having a properly backed IIS application setup? I know you can have the projects run off the casini webserver, but all of our applications target IIS and rely on inherited web.config settings. /MyApp is expecting to find config values that exist at /Web.Config and a login page for the entire system at /Login.aspx. Trying to run /MyApp in casini fails immediately because of these dependencies.

But what if I am just doing a code review. I don't care to browse the site, I just want to open the project. Is there no way to tell VS to just open the project and ignore the fact that IIS isn't setup right?

View 4 Replies

Installation :: How To Create A Setup Project For Web Application

Jan 17, 2011

I want to ask about how to create a setup project for asp.net web application

In a way that the .cs files didn't appear when executing the setup

Like when you publish a web site only the aspx files appear and the dlls no cs files

View 2 Replies

Architecture :: Setup Project Structure For Web Application?

Feb 15, 2011

I am not new to ASP.Net application development but I haven't used some of the new frameworks or features that are used in applications these days.

For cross-cutting concerns, things like: Logging, Caching and DAAB are used in projects these days to implement proven and efficient source code from either Microsoft or other third party vendors such as Log4Net for logging purposes.

View 1 Replies

Configuration :: Make A Setup Project For Web Application?

Dec 8, 2010

I want to make a set up project which would install, .net framework, sql server 2008, configure my website in IIS.

View 2 Replies

Configuration :: Setup Project And Multiple Installations?

Sep 28, 2010

is it possible to create a Setup project within Visual Studio that will allow the generated installer to allow for the user to install the application multiple times? I would imagine there would be changes needed for checking if the destination folder already has an installation there but what about removing the "already exist" detection or how to change the Add/Remove Programs to show nothing at all or each individual instance of the installation.

View 2 Replies

Installation :: Customizing The Address In Web Setup Project?

Feb 28, 2011

I have a web app and a web setup project in VS2010. By default, when I install my web app using my web setup project, in the Installation Address folder dialog window, the default Application Pool is DefaultAppPool. It has been stated in the MSDN documentation that we can change this default TARGETAPPPOOL, say to "ASP.NET V2.0". Here is the excerpt from MSDN... "The Application Pool list shows the available application pools on the target computer, and the default setting is named DefaultAppPool. To change the default application pool in your Web setup projects, you can use a post-build action to update the name of the application pool in the MSI." Is there anybody in the group knows the syntax on setting the TargetAppPool to another pool that exists in IIS, e.g., ASP.NET V4.0 CLASSIC?

View 1 Replies

Configuration :: Exclude Files From Web Setup Project?

Aug 4, 2010

I try to create a web setup project. Following this example ttp://weblogs.asp.net/scottgu/archive/2007/06/15/tip-trick-creating-packaged-asp-net-setup-programs-with-vs-2005.aspx everything was perfect. Now I need to find how going trought the wizard exclude some files from Content files Output.

View 3 Replies

Visual Studio :: Debugging A Web Setup Project?

Jun 18, 2010

Is it possible to debug a Web Setup Project, specifically its custom action code, by setting breakpoints and walking through the code? How does one do this?

View 2 Replies

The 'Microsoft.Jet.OLEDB.4.0 Data Source=d:websiteorthwind.mdb' Provider Is Not Re?

Nov 27, 2010

i m running vs 2005 +asp.net with +xp professional+ms access 2003 now problem when i run code of for opening of oledb connection it shows error The 'Microsoft.Jet.OLEDB.4.0 data source=d:website
orthwind.mdb' provider is not registered on the local machine.wht should i do if u r taliking about 32 or 63 bit provide me complete detail

View 2 Replies

How To Custom Web.config In Visual Studio Setup Project

Mar 24, 2010

In the Setup Project I have 2 web.config files: web.config - used during the development and web_dist.config - the one that should be included into Setup Project. I must be sure the the Setup project will NOT include the web.config and will always include web_dist.config.

In the File System -> Web Application Folder I have added the Content Files from the project.
Also included the web_dist.config and mapped it to the web.config.

But this gives the warning:

WARNING: Two or more objects have the same target location ('[targetdir]web.config') And the actual config file included is web.config and not web_dist.config. What would be the best option to include the web_dist.config (and named as web.config in the setup)?

View 2 Replies

Web Setup Project - How To Get Selected Hostname For Installer Class

Aug 2, 2010

I have an installer class which I use to do some processing on the application after it is initially installed.

In the installer I have a custom dialog which requests a username and password. This is accessed in my installer class with Me.Context.Parameters("username")

After setting it as CustomActionData /username="[TXTUSERNAME]"

This is all fine. The first dialog of a Web Setup Project gets the user to select an IIS website from a dropdownlist and set a VirtualDirectory if required. I need to get the seleted Hostname but so far I have failed to find a reference to it in any documentation. I have tried things like:

Me.Context.Parameters("targetURL")
Me.Context.Parameters("TARGETSITE")

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved