Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an artifact in the context of a visual studio solution?

Hopefully an easy question.

What is an artifact in the context of a visual studio solution? What do they do? What are some common deployment patterns?

like image 840
sennett Avatar asked Dec 27 '22 11:12

sennett


1 Answers

From the docs:

Build artifacts are files produced by a build and stored on the server. Typically these include distribution packages, WAR files, reports, log files, etc. When creating a build configuration you specify artifacts of your build at the General Settings page

And now to specifically answer your question.

What is an artifact in the context of a visual studio solution?

Your solution is compiled by TeamCity using a Build Step. Artifacts are the files you choose to 'keep' after compiling your Visual Studio sln file.

For example:

enter image description here

This assumes you have a sln that compiles 2 projects, ConsoleApplication and WebApi - this example says keep all the output of ConsoleApplication and all the dll's of WebApi. These artifacts are held by TeamCity and can be downloaded as part of a deployment process.

like image 53
wal Avatar answered Dec 31 '22 12:12

wal