Bassie
Bassie

Reputation: 10390

Why is there no executable when publishing my console application

When I publish my console application, the target folder only contains these files

ADVWKSPConsole.application
Application Files
autorun.inf
setup.exe

And the Application Files folder doesn't contain my .exe

I can see that the .exe is generated in the bin folder, but its not sent to the publish location ... Why?

I need to run the application from a scheduled task, and this is not working when telling the task to run the ADVWKSPConsole.application manifest (even from a .bat)

I can see in my publish properties in VS:

enter image description here

What gives? Why is this so annoying? All I want is an executable file published as my console application why isn't that the default!?

Upvotes: 0

Views: 1401

Answers (1)

Bassie
Bassie

Reputation: 10390

Thanks to Rufus' suggestions in the comments, I realised that the scheduled task works when pointing it at Steup.exe, which is pretty unintuitive in my opinion, as that looks like an installer not the application itself..

What I ended up doing is

  1. Point the Build path in Properties -> Publish to the location on the server
  2. Changed the Publish path to some other folder
  3. Now the .exe sits in the Build folder on the server and I can just point the task at that

Upvotes: 2

Related Questions