monodevelop-dnx-addin icon indicating copy to clipboard operation
monodevelop-dnx-addin copied to clipboard

PostBuild.proj exit code 2 or 3

Open geoffrey-vl opened this issue 8 years ago • 3 comments

Building the solution exits with exit-code 2 on Linux, exit-code 3 on Windows. The issue can be solved by downloading the ILRepack Nuget package, and next edit its executable path in PostBuild.proj to match the Nuget downloaded package, for example:

<ILRepackExePath Condition=" '$(ILRepackPath)' == '' ">$(SolutionDir)packages\ILRepack.2.0.8\tools\ILRepack.exe</ILRepackExePath>

geoffrey-vl avatar Nov 13 '15 10:11 geoffrey-vl

Instead of doing that you can run NuGet.exe restore MonoDevelop.Dnx.sln from the directory containing the solution.

I should add that to the readme or maybe look at using a before.sln targets file to automatically restore on the build. Or it may just be simpler to add ILRepack to the GitHub repository instead of using NuGet.

mrward avatar Nov 13 '15 10:11 mrward

Indeed, that way none of the current code could brake because of changes in ILRepack.

Do you plan to host the addin in a repo?

geoffrey-vl avatar Nov 14 '15 14:11 geoffrey-vl

I was planning on publishing the addin at some point to the MonoDevelop addin-repo and to my own addin repo. Probably just after Microsoft release ASP.NET 5 RC 1, which should happen sometime this month.

mrward avatar Nov 14 '15 20:11 mrward