SDH
SDH

Reputation: 99

What is the correct way to modify dll.config of published project?

I published a .net core console application to my test server and scheduled it to run using task scheduler. I then wanted to turn on additional functionality using a switch from the app.config (that apparently turns into project.dll.config). The modifications did not take effect however. What is the correct way to modify my app.config file in this scenario? Do I need to republish? Maybe reschedule?

Upvotes: 0

Views: 522

Answers (2)

Bambam Deo
Bambam Deo

Reputation: 177

Nope, you won't need to republish or recompile, unless you modify a ".cs" file. Just need to restart the app, like @Hayden said.

Upvotes: 0

Hayden Hall
Hayden Hall

Reputation: 356

The Console Application will need to be restarted to pick up any change in its .config files.

Upvotes: 1

Related Questions