November 17, 2019

How to copy a File to output folder (Debug/Release folder)

  November 17, 2019
If we need to get any file inside the project as a build artifact, we need to add that file to the output folder of the build.

We can use the below way to do this.

if we want to copy the file selenium-server-standalone-3.141.59.jar to Debug/Release folder we need to follow the below steps.


  1. Right-click on the file and click on the properties

2. Now select copy to output folder option as Copy always/If newer


Now the file can be found in the Debug/Release folder in local as well as in Azure Artifact.

A sample of such a copied file is shown below.





logoblog

Thanks for reading How to copy a File to output folder (Debug/Release folder)

Previous
« Prev Post

No comments:

Post a Comment

Bookmark this website for more workarounds and issue fixes.

Verify Zip file contents without extracting using C# + Selenium

While doing automation testing, we may get a scenario where we need to download a zip file and to validate the contents inside it. One way t...