<p>I'm developing some cross platform software targeting Mono under Visual Studio and would like to be able to build the installers for Windows and Linux (Ubuntu specifically) with a single button click. I figure I could do it by calling cygwin from a post-build event, but I was hoping for at best a Visual Studio plugin or at worst a more Windows-native way of doing it. It seems like the package format is fairly simple and this must be a common need.</p>

<p>edit: Re-asked question under other account due to duplicate login issue.</p>

[{'answer_id': 3119, 'author': 'Michael Stum', 'author_id': 91, 'author_profile': 'https://Stackoverflow.com/users/91', 'pm_score': 3, 'selected': True, 'text': '<p>I am not aware of any plugin that does it natively, especially since Mono users seem to prefer <a href="http://www.monodevelop.com/Main_Page" rel="nofollow noreferrer">MonoDevelop</a>.</p>\n\n<p>However, it should be possible to use Cygwin and a custom MSBuild Task or Batch file in order to achieve that by using the native .deb creation tools.</p>\n'}, {'answer_id': 9461, 'author': 'Orion Edwards', 'author_id': 234, 'author_profile': 'https://Stackoverflow.com/users/234', 'pm_score': 2, 'selected': False, 'text': "<blockquote>\n  <p>this must be a common need.</p>\n</blockquote>\n\n<p>Some small percentage of software developers develop for .NET <br>\nSome very small percentage of that group develop for mono <br>\nSome small percentage of that group wants to provide .debs instead of just a zip <br>\nSome very small percentage of that group wants to build their linux apps on windows instead of natively on linux <br></p>\n\n<p>It's just you :-)</p>\n"}, {'answer_id': 74257, 'author': 'apenwarr', 'author_id': 42219, 'author_profile': 'https://Stackoverflow.com/users/42219', 'pm_score': 3, 'selected': False, 'text': '<p>Debian\'s .deb packages are just "ar" archives containing tarballs.  You can manipulate both types of files using cygwin or msys quite easily:</p>\n\n<pre><code>$ ar xv asciidoc_8.2.1-2_all.deb \nx - debian-binary\nx - control.tar.gz\nx - data.tar.gz\n\n$ tar -tzf control.tar.gz \n./\n./conffiles\n./md5sums\n./control\n</code></pre>\n\n<p>Or you can install all the "standard" Debian stuff using cygwin, I suppose, but most of that stuff won\'t benefit you much if you\'re building a .Net app anyway.</p>\n'}, {'answer_id': 21111516, 'author': 'Emmanuel Bourg', 'author_id': 525725, 'author_profile': 'https://Stackoverflow.com/users/525725', 'pm_score': 0, 'selected': False, 'text': '<p>If you don\'t mind using Java tools it\'s possible to build Debian packages with <a href="https://github.com/tcurdt/jdeb" rel="nofollow">jdeb</a> in an Ant script. That\'s probably lighter than relying on Cygwin.</p>\n'}, {'answer_id': 52202616, 'author': 'Frederik Carlier', 'author_id': 4463242, 'author_profile': 'https://Stackoverflow.com/users/4463242', 'pm_score': 3, 'selected': False, 'text': '<p>If you use the .NET Core SDK, you can use <a href="https://github.com/qmfrederik/dotnet-packaging" rel="noreferrer">dotnet-packaging</a> tools to create a Debian installer package from any platform that runs .NET Core.</p>\n\n<p>For example, running <code>dotnet deb -c Release -f netcoreapp2.1 -r ubuntu.16.04-x64</code> would then create a <code>.deb</code> file which you can use to install your app on Ubuntu 16.04.</p>\n\n<p>The project repository has more details.</p>\n'}]
['https://Stackoverflow.com/questions/3106', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/327/']