I am trying to deploy a .net4.5 (not .net core) console application which one of the 7 projects inside a solution (type class library). This console application accepts command line parameters and invokes an API. It also references a few other class library projects in the solution. I have successfully built and tested it in local environment without issue.
When I tried to publish it created a 'setup' application, an application menifesto file and 'autorun' setup information file with an applications folder which has again an application manifesto along with config.deploy , exe.deploy, exe.manifest and dll.deploy type of files of all referenced projects and nuget packages installed.
I also have a app.config in the project which is not part of this published folder . I need to change values in app.config dependant on environment.
When I copied this published folder to the new environment and tried to deploy using setup file I get an error 'empty path name is not legal'. My issue is :
- How do i access the app.config details in published code?
- how do I make deployment work?
I have checked the .net publishing articles and they all talk about .net core application deployment where in publish I can edit the profile and add the settings. But i don't get that option while publishing .net4.5 console application. I have published to local folder.
</div>