CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 12/8/2005 6:14:51 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 8 Views: 33 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
9 Items, 1 Pages 1 |< << Go >> >|
inoodle
Asp.Net User
Web Deployment Project. Merging xml files12/8/2005 6:14:51 PM

0/0

Hi, can anyone tell me how to stop the xml files I have in my project from being merged into the overall assembly in a web deployment project ? I actually need them there to load up.
Thanks
tinghaoy
Asp.Net User
Re: Web Deployment Project. Merging xml files12/9/2005 6:48:10 AM

0/0

Do you mean the xml documentation files for your generated web assemblies? You can set the xmldocs option to false in your deployment project file. If it's set to true, the xml documentations files will be merged and the old files will be removed.

HTH,

Ting


This posting is provided "AS IS" with no warranties, and confers no rights.
inoodle
Asp.Net User
Re: Web Deployment Project. Merging xml files12/9/2005 11:13:15 AM

0/0

Hey Ting
thanks for your help.

No I didn't mean those files, but I hadn't realized they were also being merged - which they are as you point out :)

I did try to add the following, hoping it would stop all xml file merging, but it didn't seem to have any effect...

<PropertyGroup>

<MergeXmlDocs>false</MergeXmlDocs>

</PropertyGroup>

Aaron.

 

tinghaoy
Asp.Net User
Re: Web Deployment Project. Merging xml files12/9/2005 8:47:10 PM

0/0

Setting MergeXmlDocs to false would prevent assembly xml documentations from being merged. However, I don't understand what xml files you are referring to, obviously <MergeXmlDocs> would not help solve your issue.

Could you explain what are these Xml files? aspnet_merge only merge assembly binaries and update user web files. Can you give me an example?

Thanks,

Ting

 

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

   ...

   <MergeXmlDocs>false</MergeXmlDocs>

</PropertyGroup>

 


This posting is provided "AS IS" with no warranties, and confers no rights.
inoodle
Asp.Net User
Re: Web Deployment Project. Merging xml files12/10/2005 2:27:34 AM

0/0

Hi Ting,

The xml files are just config files I have for things like O/R Mapping configuration. I load them via StreamReader(filename), but since they are being merged into the assembly, I'm unable to read them in the normal way.

<MergeXmlDocs> seems to have no effect on my xml documentation files from other libraries either - they also get merged (as they are xml files).

Cheers

Aaron

tinghaoy
Asp.Net User
Re: Web Deployment Project. Merging xml files12/12/2005 6:47:13 PM

0/0

I am sorry but I cannot reproduce the same behavior using the deployment project. Here are the steps that I try:

1. Create an empty web site

2. Add the webdeployment project to the web site.

3. Add two empty xml files to the project, say xmlfile.xml and xmlfile2.xml

4. Add couple pages and a .cs file to the app_code folder.

5. Compile the web site

6. Build the deployment project.

The two xml files are simply copied to the target folder, they are not merged. Could you tell me what I am doing differently?

Thanks,

Ting


This posting is provided "AS IS" with no warranties, and confers no rights.
inoodle
Asp.Net User
Re: Web Deployment Project. Merging xml files12/12/2005 11:16:37 PM

0/0

Hi Ting,
Thanks for your continued input.

You're right, it works fine normally. I've narrowed it down to my use of MetaSapiens PageMethods library, which specifies a build provider (see below). This is what seems to cause the problem, although I don't know why this interacts to cause it. Any ideas or should I speak to MetaSapiens ?

Thanks

Aaron

<buildProviders>

<add extension=".xml" type="MetaSapiens.PageMethods.PageMethodsBuildProvider, PageMethods"/>

</buildProviders>

 

tinghaoy
Asp.Net User
Re: Web Deployment Project. Merging xml files12/13/2005 2:00:50 AM

0/0

Yes, you will need to contact the MetaSapiens regarding this issue. Basically because you register .xml for a build provider, the xml files will NEVER be deployed to the target, even if you are not using aspnet_merge or webdeployment project. You can reproduce the same behavior by simply using aspnet_comiler.exe to pre-compile your application.

The idea is that if you register a buildprovider for a known extension, the files with the matching extensions will not be copied to the target during precompilation for source code protection. Instead, the files will be compiled to assemblies which are deployed to target. If you need to access the files are runtime dynamically, you need to make sure these files do get copied during precompilation. You can do so by creating a PostBuild action to copy the xml files or unregister the build providers (depending on whether it is necessary of course).

HTH,

Ting


This posting is provided "AS IS" with no warranties, and confers no rights.
inoodle
Asp.Net User
Re: Web Deployment Project. Merging xml files12/15/2005 12:08:16 AM

0/0

Hi Ting,

I implemented the post build steps and have everything working now. Thanks for your persistence in getting to the bottom of the problem.

Aaron

http://intrepidnoodle.com

 

9 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming Microsoft Infopath: A Developer's Guide Authors: Thom Robbins, Pages: 337, Published: 2004
The Complete Reference to Professional Soa With Visual Studio 2005 (C# & Vb 2005) .net 3.0 Authors: Tom Gao, Pages: 700, Published: 2007
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
MCAD/MCSD: Visual Basic¿ . Net XML Web Services and Server Components Study Guide. Exam 70-310 Authors: Pamela Fanstill, Brian Reisman, Mitch Ruebush, Pages: 597, Published: 2003
Programming C#: Jesse Liberty Authors: Jesse Liberty, Pages: 689, Published: 2003
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
MCAD/MCSD: Developing XML Web Services and Server Components with Visual C# . NET and the . NET Framework Authors: Amit Kalani, Ed Tittel, Pages: 1040, Published: 2003
Microsoft Visual C# .NET 2003 Developer's Cookbook: Developer's Cookbook Authors: Mark Schmidt, Simon Robinson, Pages: 787, Published: 2003
Java Enterprise in a Nutshell: [a practical guide] Authors: Jim Farley, William Crawford, Prakash Malani, Safari Tech Books Online, Pages: 892, Published: 2005
Pro Eclipse JST: Plug-ins for J2EE Development Authors: Christopher M. Judd, Hakeem Shittu, Pages: 334, Published: 2005

Web:
Using Web Deployment Projects with Visual Studio 2005 A Web Deployment project is an MSBuild project file for a Web site. ..... MergeXmlDocs, Merge the xml documentation files associated with the assemblies ...
Web Deployment Project : Assemblies not merging - ASP.NET Forums The Web Deployment Project will actually only merge the assemblies generated ... The .compiled files are added (or not) depending on whether you have the ...
OCEG Technology Blog: Web Deployment Project is the answer! One of the nice features of the web deployment project is merging all page ... < delete files="$(OutputPath)\bin\*.xml;$(OutputPath)\bin\*.pdb" / > ...
Web deployment project CTP for VS2008 - missing connectionStrings ... I've installed this morning the web deployment project ctp for VS 2008 and ... it's trying to merge the connection string section into a web.config file ...
Web Deployment Project : Assemblies not merging - ASP.NET Forums I use a Web Deployment Project with options "Merge all outputs to a ... The . compiled files are added (or not) depending on whether you have ...
Extreme ASP.NET: Web Deployment Projects Like all Visual Studio project files, Web deployment projects are MSBuild ... your build script if you select the merge option in a Web Deployment Project. ...
ProfileCommon Runtime error using web deployment proj generated ou using the output generated from a web deployment project. I have specified ... description="Read-only Xml File-based profile provider" ...
XML merging made easy - JavaWorld Jul 10, 2007 ... Merging XML files from different sources ... Generating an automated deployment descriptor at build time ...
Marco Bellinaso's Blog - An excerpt from Chapter 12: Pre-compiling ... ... and the merge processes) directly from the XML configuration file, which can be opened by clicking the Open Project File option from the Web Deployment ...
Crystal .NET Blog : Deploying Web Applications with CR for VS.NET You must add output files from the Web application, and merge modules to the Web Setup Project. Merge modules must be added to the setup project, ...

Videos:
An Introduction to SQLite Google TechTalks May 31, 2006 Richard Hipp ABSTRACT SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQ...




Search This Site:










disable login control to anyone outside of local network

phase one is done!!!!

novice- setting up an admin editable news section

i can't create web application with visual studio .net

building menu.navigateurl based on user selection

frames support in visual studio 2005

system.unauthorizedaccessexception: access is denied

404 erases identity?

core team: dnn 3.2 question...

.net framework 2.0 and dnn 2.0

realise this popup idea

pathing of images from css

possible bug?

dynamically access component name

bug: 3.0.9 - parent page lists self in dropdownlist

nameboundfield.dataformatstring

howto: change the password format???

default button

localizing the date in portal banner ?

maximumasp and dnn - virtual director proprietary software- will it work?

please supply sample web.config for dnn 3.1.0

problem loading page which has codebehind

products category

requirements for wd express asp site?

business and dnn

problem with path using asp:literal

dnn2 manifest / .dnn file creator

cdonts newbie

profile.username

trying to find the id for all components of the createuserwizard

 
All Times Are GMT