bungpeng Posted April 12, 2004 Posted April 12, 2004 To deploy ASP.NET to server, We just need to move the "aspx" and "dll", but not ".vb" (in vb.net). Is there anyway I can filter those ".vb" file so easy for my deployment or version updating process? Quote
sholliday Posted August 30, 2004 Posted August 30, 2004 To deploy ASP.NET to server, We just need to move the "aspx" and "dll", but not ".vb" (in vb.net). Is there anyway I can filter those ".vb" file so easy for my deployment or version updating process? How to deploy a Visual Basic or C# (csharp) web site: With only the "needed" files for deployment. Create a .bat file. Put this bat file where you .sln (visual basic for C# solution) file exists. <<mybat.bat>> del BuildDefaultResultsRelease.txt "C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe" MYSOLUTION.sln /rebuild Release /out BuildDefaultResultsRelease.txt xcopy *.* c:\wutemp\mytempdirectory\*.* /E /R /EXCLUDE:.\XCopyExcludes.txt <</mybat.bat>> Ok. Now you create a new txt file called XCopyExcludes.txt Also place it in the directory with the solution file. << XCopyExcludes.txt>> .vbproj .scc .resx .vb .snk .pdb .xsx .xsd .sln .vssscc .bat XCopyExcludes.txt BuildDefaultResultsRelease.txt <</ XCopyExcludes.txt>> Make sure the directory c:\wutemp\mytempdirectory\ already exists. Naturally, make sure the value C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.exe is legitimate for your local setup. The above is the default location. Run the .bat file. Check the c:\wutemp\mytempdirectory\ directory. Quote
Arch4ngel Posted August 30, 2004 Posted August 30, 2004 The better to do that... is via "Copy Project". Go into the main menu : Project/Copy Project... And there... you'll have to fill the correct information ... and... look at the bottom of the window... there's 3 options related to Copy and the first one is : "Only files needed to run this application" and everything will be set up correctly. I've used this on my side. It throw me some error (don't have admin access and can't configure IIS on the Distant server so...) but he's able to copy the file. That way... if you have a admin right on the server... everything will be "nearly" installed and ready to run. Have some fun ! Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.