By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,506 Members | 1,881 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,506 IT Pros & Developers. It's quick & easy.

AppCode and source files

P: n/a
Hi,

My WebServices project was converted by VS 2005 to its new format :
*.asmx.cs files are in AppCode folder. Everything works fine, but now, when
I'm deploying my WebServices => the WebMethods source code is deployed, too
!!???
To deploy I'm using a WebSetup project and BTW to integrate my WebServices
project, I can select ONLY content files, not Project output or ..., like I
did in VS2002/2003 !!!???

I cannot put the code from *.asmx.cs files in a separate assembly (I have my
reasons) => this is NOT a solution.

What am I missing ? I just want back the old way : the *.cs files to be
compiled in an assembly, put in Bin sub-folder, no source code to end-user
and that's it .

I played with "Nested related files" toolbox button in Solution Explorer,
but without luck.

Thanks for any advice
Mar 2 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Bragadiru,

Welcome to the MSDN newsgroup.

As for the new VS 2005/ASP.NET 2.0 project compile/build model, it use
dynamic compilation for all the pages, code in App_Code folder or other
resource or dataset in the web application. And when deploy the applcation,
we have the following approachs:

1. No precompilation and make all the source file (codebehind for asp.net
page and other source code file in App_Code) deploy to target site and let
them be compiled at runtime dynamically.

2. Precompile the source into assembly so that wo don't need to deploy
source files to target site

And for use the #2 precompilation, in vs 2005 ide, you can find the
"Build---->Publish WEb Site" menu which do the work. Also, there is the
"Aspnet_compiler.exe" command line tool in .net framework tools which can
help do this. Here is the msdn article on how to precompile ASP.NET 2.0
SITE:

#How to: Precompile ASP.NET Web Sites for Deployment
http://msdn2.microsoft.com/en-us/lib.../ms227976.aspx

In addition, there're some other helpful article discussing on the related
topics:

#Precompilation In ASP.NET 2.0
http://odetocode.com/Articles/417.aspx

#ASP.NET Compilation Overview
http://msdn2.microsoft.com/en-us/lib.../ms178466.aspx

#Visual Studio 2005 Web Deployment Projects (Beta V2 Preview)
http://msdn.microsoft.com/asp.net/re...p/default.aspx

Hope these help.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Mar 3 '06 #2

P: n/a
Thanks a lot Steven.

This is what I missed.
"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:%2***************@TK2MSFTNGXA03.phx.gbl...
Hi Bragadiru,

Welcome to the MSDN newsgroup.

As for the new VS 2005/ASP.NET 2.0 project compile/build model, it use
dynamic compilation for all the pages, code in App_Code folder or other
resource or dataset in the web application. And when deploy the
applcation,
we have the following approachs:

1. No precompilation and make all the source file (codebehind for asp.net
page and other source code file in App_Code) deploy to target site and let
them be compiled at runtime dynamically.

2. Precompile the source into assembly so that wo don't need to deploy
source files to target site

And for use the #2 precompilation, in vs 2005 ide, you can find the
"Build---->Publish WEb Site" menu which do the work. Also, there is the
"Aspnet_compiler.exe" command line tool in .net framework tools which can
help do this. Here is the msdn article on how to precompile ASP.NET 2.0
SITE:

#How to: Precompile ASP.NET Web Sites for Deployment
http://msdn2.microsoft.com/en-us/lib.../ms227976.aspx

In addition, there're some other helpful article discussing on the related
topics:

#Precompilation In ASP.NET 2.0
http://odetocode.com/Articles/417.aspx

#ASP.NET Compilation Overview
http://msdn2.microsoft.com/en-us/lib.../ms178466.aspx

#Visual Studio 2005 Web Deployment Projects (Beta V2 Preview)
http://msdn.microsoft.com/asp.net/re...p/default.aspx

Hope these help.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Mar 6 '06 #3

P: n/a
You're welcome Bragadiru,

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Mar 7 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.