PC Review


Reply
Thread Tools Rate Thread

Compiling User Controls in Web Deployment Project strips Attribute

 
 
Marc Woolfson
Guest
Posts: n/a
 
      27th Nov 2008
Hi all,

I have a Web Application Project in VS 2008 containing a number of User
Controls. Some of these Controls have a custom Attribute assigned to them. I
have attached a Web Deployment Project to the Web project and set the
following values in order to be able to ship the User Controls in a single
assembly:

* Compilation > Allow this precompiled site to be updateable > False
* Output Assemblies > Merge all pages and control outputs to a single
assembly > True
* Deployment > Remove the App_Data folder from output location

The other settings have been left as their defaults.

When the Deployment Project is built, the resultant assemblies may be
analysed in Red Gate's .NET Reflector (formerly Lutz Roeder's) but the custom
Attribute seems to have been stripped from both the 'base' and 'wrapper'
Control classes.

Has anyone else seen this problem and is a aware of the solution? I am
assuming that this is caused by the way that the Web Deployment Project
compiles the Controls into a single assembly but I do not know how to rectify
this.

Thanks in advance,

Marc
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DefaultValue attribute on properties of user controls michael sorens Microsoft C# .NET 5 6th Jun 2008 07:59 AM
User Right configuration in asp .net deployment project fhranck Microsoft ASP .NET 1 25th Nov 2005 10:30 PM
basic: asp.net user controls: how to programmatically add attribute to all text box controls? Microsoft ASP .NET 4 9th Nov 2005 02:14 AM
RE: Deployment Project User Interface Patrick Baker [MSFT] Microsoft Dot NET 0 2nd Sep 2003 08:29 PM
Deployment Project User Interface jonathan Cook Microsoft Dot NET 0 30th Jul 2003 03:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:03 PM.