-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on Linux with beta0014 #1460
Comments
You may want to reach out to UtilPack for this one: https://github.com/CometaSolutions/UtilPack |
Also there is a beta15 package with an updated utilpack version you can try (on our appveyor nuget feed not nuget.org at present) |
@dazinator Where do I find the beta15 package? What's the URL of the appveyor nuget feed? |
@ermshiperete info can be found at the top of this PR: #1269 |
Thanks! I overlooked the beta15 because it's so far down the list 😄 . With beta15 it still fails:
|
@ermshiperete can you check this dir: HOME/.nuget/packages/utilpack.nuget.msbuild/2.6.0/ Does utilpack exist there or is that directory empty? |
P.s im glad to see from the stacktrace it is atleast using the multi target build targets now - so thats your merged PR taking effect there. |
yes, |
Can you provide further details about your linux setup, distro, etc? |
Ubuntu 16.04.5 LTS
Is it working for you on Linux? |
I'm a windows user, never used linux, but I was going to make the dive to try and repro this. |
@ermshiperete - please could you try again with:
the above package is available from our appveyor nuget feed. The reason I ask is because we fixed a null ref issue with msbuild recently in #1458 and I am wondering if it might be the same thing. |
We're half way there. Running |
Progress then! |
Hi @ermshiperete , the guy behind UtilPack task factory here. I wasn't prepared for the task factory to be used in Mono environment when I was writing the code, as I thought .NET Core was supposed to practically replace it (at least at some point there was some talk about it). The task factory thus autodetects the runtime framework to be How can I repro this issue? Or, if it requires some special permissions or is too hard to explain, could you try to switch the contents of |
@dazinator I run msbuild on the command line with Mono 5. Unfortunately it is currently not possible for the projects I'm working on to switch to use |
@stazz Thanks for looking into this! To reproduce you can use the minimal project: https://gist.github.com/fd8baae02180f2156dc0c5bbf166b29d.git I'd recommend to install Mono 5.x from https://www.mono-project.com/download/stable/ - the mono versions that come with the Linux distros are usually much older and so other Mono bugs might come into play. Then run Switching |
@ermshiperete Thanks - I'll try to reproduce it locally and see if actually compiling task factory against Mono framework could solve this issue. |
@ermshiperete Sorry for late message, I unfortunately only now got time to try this out. It seems that the required version of GitVersionTask is in AppVeyor feed. Is there any way for me to pull the package from AppVeyor without registering? I remember sometimes @dazinator sending me a link for some repro case, but I guess each link has to be explicitly generated? If I register to AppVeyor, would I automatically get access to the required (all?) versions of GitVersionTask? |
@stazz yeah you should be able to pull nuget packages from the appveyor feed without registering.. |
Thank you @dazinator for quick reply! Good to know that link is apparently covering all GitVersionTask versions - I thought it was specific to some version last time you posted it. I have now successfully reproduced the issue. As a side-note, it seems the crash happens also in Docker container, so it is relatively easily to test by running Next, I'll try to compile UtilPack.NuGet.MSBuild task factory against Mono framework (instead of just .NET Desktop and Core), and see if that would fix the problem. :) |
I've googled around a bit, and it doesn't look good. More specifically, apparently compiling against Mono is just compiling against .NET Desktop with different environment. Then, there is xunit/xunit#1357 , and these quotes especially:
And the Desktop version of UtilPack.NuGet.MSBuild specifically uses AppDomains, as they are the sole sandboxing mechanism in Desktop. One not-so-pretty fix that springs to my mind is that everything could be done within the same AppDomain, if the task factory detects it is running Desktop version within non-Windows OS ( = Mono, in this case at least). Thus the usage of custom, newly-created AppDomains could be avoided, at the cost of polluting the current AppDomain with the assemblies loaded from task (which might have some negative impact on subsequent task factory usages within same MSBuild process). What do you think of this? |
I've now verified that this issue does not happen when I use current AppDomain to execute task instead of creating a dedicated AppDomain. I'll see if I can get the auto-detection code to work so that the task factory would use current AppDomain instead of dedicated one if the task factory automatically detects to be running in Mono environment. Will post a follow-up of how it went. |
@dazinator @ermshiperete I've fixed this now in |
@stazz - excellent news. Thank you for going the extra mile and turning this around for mono users :-) |
No problems - it is important for me that stuff I make actually works. Let me know if there are still issues with this! :) |
…ild error on Linux (Travis-CI) GitTools/GitVersion#1460
…ild error on Linux (Travis-CI) GitTools/GitVersion#1460
…ild error on Linux (Travis-CI) GitTools/GitVersion#1460
…ild error on Linux (Travis-CI) GitTools/GitVersion#1460
…ild error on Linux (Travis-CI) GitTools/GitVersion#1460
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
When I try to build a project on Linux that uses GitVersionTask 4.0.0-beta0014, I get the following error:
msbuild version 15.6.0.0
mono version 5.14.0.177
The text was updated successfully, but these errors were encountered: