.net - Deploying a Console Application by only copying the Bin Directory -


i wanting have deployment process console applications, similar web deployments. looking way copy contents of "release" directory network share directory via vs deployment process.

i know, seems strange, however, these applications used batch internal jobs. however, have go thru development process, dev, uat, production. since our process copy/paste , not install, limited process. problem copy/pasting uat environment getting uat server settings instead of production. i'm trying make efficient possible without having our deployment team thinking.

so main question: process deploy console application visual studio results are, essentially, copy/pasting release directory target directory on remote server?

i think asking mix of things:

  1. how transform configuration files target specific environment
  2. how automatically copy binaries , transformed configuration files

the vs publish button both.

for #1 need define compile configuration each target environment , transform file. non-web apps can use add-in described in app.config transformation projects not web projects in visual studio 2010?.

for #2 there plenty of solutions: can make own add-in adds publish button, or hook standard build process (see https://www.simple-talk.com/dotnet/.net-tools/extending-msbuild/) or wrap build of vs solutions in script deploy after compile. more complete process implement continuous integration server allowed different environment configurations created part of build , deploy process.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -