Visual Web Developer Express How do I build Code-behind into DLL in bin folder

T

teliot

I'm just starting to use VWD Express. Supposedly, if I use a separate
file (code behind) for my web forms, it should build them into a DLL
into the Bin folder. However, no bin folder was automatically created
when I create the project, nor when I build the website. And no DLL
was placed anywhere in my website folder. How do I build the
code-behind files so they would be in the bin folder???
 
K

Ken Cox

That isn't support in the Express version.

See the Prerequisites here:

http://msdn2.microsoft.com/en-us/library/1y1404zt.aspx

"If you want to deploy a finished Web site to a server, you can use the
Publish Web Site utility that is included with the Microsoft Visual Web
Developer Web development tool. "

"The Visual Web Developer Express edition does not support the Publish Web
Site utility."

Perhaps you could do this with the compiler and a command-line script. Not
sure.
 
T

teliot

I see, no wonder I couldn't find that function anywhere. Thank you for
your clarification.

I did however find a way to compile the entire website using command
line tool "aspnet_compiler.exe" which eliminates all code files and put
them all in DLL assemblies. It eventually worked out for the best,
since this method conceals all codes and prevent copying or tampering
of the source and should run faster since the server won't have to
compile the App_Code folder.
 
T

teliot

I see, but in Microsoft's book "Microsoft Visual Web Developer 2005
Express Edition - Build a Web Site Now!" I found this quote:

"If your program source code resides anywhere else (referring to
anywhere other than the app_code folder or inline), you'll need to
choose Build Web Site from the Build menu, and then be sure to upload
the resulting /bin folder along with the rest of your site. You won't,
however, need to upload our program source files; this may reduce the
risk of theft or tampering."

And that's why I assume that the "Build Web Site" command will
automatically generate the /bin folder for me.

But in the meantime, I did manage to use aspnet_compile.exe to compile
the entire site into a target folder, then copy the content to my
actual website.

Thanks.
 
K

Ken Cox

Hmmmm. You might want to check with the author of the book. The current crop
of books were written based on beta 2. You may have found a change in the
release product that the authors couldn't or didn't know about.

Ken
 
A

Alan Silver

Hmmmm. You might want to check with the author of the book. The current crop
of books were written based on beta 2. You may have found a change in the
release product that the authors couldn't or didn't know about.

It's not the only one. That book has a few things like that in it. Not
very impressive given that MS is giving it away free to people who
register VWD. You'd think they would have updated it.
 
K

Ken Cox

If it is an electronic version, it should have been updated. If it is
printed, keep in mind that the lead time for a print book is several months.

The problem is that people want the books to appear on the same date as the
software, even though the software is changing up to the last week or so
before the release. A book can't keep up.
 
A

Alan Silver

If it is an electronic version, it should have been updated. If it is
printed, keep in mind that the lead time for a print book is several months.

It is an electronic version, that's why I made the comment. Obviously a
printed version couldn't have been changed that easily. The PDF file
could, and should, have been changed.

Ta ra
The problem is that people want the books to appear on the same date as the
software, even though the software is changing up to the last week or so
before the release. A book can't keep up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top