473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

BuildProvider for asp.net application?

Hello.

For a asp.net 'web site' I wrote a simple BuildProvider that worked on a
..myxml file in my app_code folder that generated some code.

Now I need something similar for a 'web application'.

I have already figured out that a BuildProvider won't do the trick. There is
no app_code folder.

Also, I don't want to emit a temp-file with code in (like how
build-providers work) but rather just have a sort of pre-compiler that can
read my xml-file and add/update a proper C#-file in my project, before the
c#-compiler starts.

Linq for Sql seems to able to do this trick, from the .dbml-file to generted
..cs-code, does anyone know how do emulate that behavour?

Thanks

- Michael Starberg
Oct 3 '08 #1
1 1284
you should create msbuild task to do this.

-- bruce (sqlwork.com)
Michael S wrote:
Hello.

For a asp.net 'web site' I wrote a simple BuildProvider that worked on a
.myxml file in my app_code folder that generated some code.

Now I need something similar for a 'web application'.

I have already figured out that a BuildProvider won't do the trick. There is
no app_code folder.

Also, I don't want to emit a temp-file with code in (like how
build-providers work) but rather just have a sort of pre-compiler that can
read my xml-file and add/update a proper C#-file in my project, before the
c#-compiler starts.

Linq for Sql seems to able to do this trick, from the .dbml-file to generted
.cs-code, does anyone know how do emulate that behavour?

Thanks

- Michael Starberg

Oct 3 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: J. Baute | last post by:
I'm caching data in the Application object to speed up certain pages on a website The main reason is that the retrieval of this data takes quite a while (a few seconds) and fetching the same data...
3
by: Amit Dedhia | last post by:
Hi I am developing a Dot net application (involving image processing) on a uni processor. It works well on my machine. I then take all my code on a multi processor, build and run the application...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
2
by: NormD | last post by:
Hi, I use DataDynamics Active Reports instead of Crystal. When I add an Active Report object to my web site, it inserts the following in the web.config file. <buildProviders> <add...
20
by: Peter Oliphant | last post by:
How does one launch multiple forms in an application? Using Photoshop as an example, this application seems to be composed of many 'disjoint' forms. Yet, they all seem somewhat 'active' in...
6
by: Josef Brunner | last post by:
Hi, I published my application (VS 2005) and am now trying to install it when I get this error message. It worked before...even on a different machine. Here is the detailed description: ...
9
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... -...
3
by: asadikhan | last post by:
Hi, I have written a windows application with a GUI (let's call it MENU). I own the code for this application and have access to it. We have another application that is a third-part windows...
0
by: Michael S | last post by:
(Posted earlier in aspnet usegroup) Hello. For a asp.net 'web site' I wrote a simple BuildProvider that worked on a ..myxml file in my app_code folder that generated some code. Now I need...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.