Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello, I need to upload my asp.net project via sftp to my webserver.. I know if you publish it via frontpage extensions or \\servername\ you have the ability to just publish the data that is needed to be published.. aka not all the dev files as well..

 

How can I do this but over sftp?

 

 

thanks!

  • 3 weeks later...
  • Administrators
Posted

If you are deploying by CD you can build a setup project from within Visual Studio - this will deploy all the required files, create the virtual directory etc.

 

If you are using some other method it is just a matter of not including the .cs / .vb, .sln, .suo, .csproj, .vbproj files.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

  • Leaders
Posted

I'm not sure if it is any different for web dev, but if you set everything up right, all you need should be in the appropriate bin folder. Files that should be included should be added to a project with the build action set as "Content." This will cause them to be copied to the output directory. Anything else you need should be embedded as a resource or code.

 

But, again, I'm not sure if it is different for web development. I'd imagine that there could be a lot more files and details involved.

[sIGPIC]e[/sIGPIC]
Posted

I normally use a command line ftp that do the trick for me.

 

It's exactly what PlausiblyDamp said. Copy all .aspx, .asax, folders, css, etc... at the right place and you're ready.

 

I don't know any trick to do that from VS2003. Unless they built an addon that do the FTP transfer for you.

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...