I want to launch a .bat file through a scheduler. The .bat file calls a third party command line tool. What's the difference between doing this through a console app vs a windowless winform application? I am using .NET. I prefer the app not show a DOS window.
This sounds like a job for a windows scheduled task. I assume that you're using the ProcessStart classes to launch the program from .NET? If so then I think the only difference would be the overhead involved in the WinForm assemblies being loaded vs not loading in the console app.
Related
I need to deploy a WinForm application and I need to generate just 1 .exe file.
I tried with ClickOnce but it generates also a manifest file, so I can't use it,
and I can not use the Release folder content because there aerseveral files (eg. strings resources)
Thanks a lot!
There's a little tool called ILMerge.
With this it is possible to merge several dlls and exe into one exe.
I don't know if it is possible to integrate resource files as well, but i don't think so.
Have a look at:
ILMerge Best Practices
I have a clickonce application that has a console application foo.exe which simply launches a windows forms application bar.exe. I deployed it using visual studio to a network share. Life happened and I no longer have the project that I used to publish the original clickonce application. I need to replace the bar.exe windows froms application.
What is a good way to accomplish this?
Use MageUI. Make sure you back up your full deployment before doing anything. Then replace the bar.exe file
Open the application manifest (the one without the .application extension), save, and re-sign. Then open the deployment manifest (the one with the .application extension), save, and re-sign.
You could use the command line version of Mage as well, but for a one-off scenario, the UI version will be easier.
Is it possible to build silverlight application in on-demand manner. I have lot of silverlight applications to be shipped. I would like to ship the project files alone. Based on some user interaction, I would like to generate the XAP.
You thought about using a NANT script to compile your project and grab the output xap file?
We have a WPF application that we want to convert to Silverlight. I understand there are going to challenges in converting the application. We are willing to embrace those challenges as long as it is possible for us to accomplish the end goal.
Our WPF application launches some exe (non-WPF) files. So the question is, can we deploy those files with our Silverlight application? If so, can we still run the application from a browser?
I don't think you can run exe on client machine from silverlight so there is no point of embedding them into xap.
Maybe you can think about multi-targeting your code so you will have one code-base for wpf and silverlight.
Take a look at this article.
I've been asked to investigate the possibility of using a single .csproj file to run both interactive and unit tests. I've been able to get the windows forms project changed over to run msTests but now I'm not finding a way to run the windows forms/interactive side. Is there a way to do this?
There are only 2 methods I've found for what my team was looking for. nUnit instead of MsTests, or manually executing the /debug built win-forms executable and then attaching the debugger to it. So nice clean integration using MsTests/VS2010 is out the window.