Skip to content
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

Compile error due to xunit.runners #42

Open
jordana309 opened this issue May 2, 2018 · 10 comments
Open

Compile error due to xunit.runners #42

jordana309 opened this issue May 2, 2018 · 10 comments

Comments

@jordana309
Copy link

When I ran build.sh, the script crashed out because it couldn't find a given version of xunit.runners (see below). I'm running on Ubuntu 16.04, and ran the following commands:

Input:

cd ~/Codes/src
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install mono-complete
sudo apt-get install mono-dbg
sudo apt-get install mono-runtime-dbg
mozroots --import --machine --sync
# Asside: mono --version returned 5.10.1.20
git clone --recursive https://github.com/zabirauf/icsharp.git
cd icsharp
bash ./build.sh

Output at error:

Installed:
    17 package(s) to packages.config projects
+ cd ./Engine
+ '[' '' == brew ']'
+ ./build.sh
+ mozroots --import --sync --quiet
+ mono ./.nuget/NuGet.exe restore ./ScriptCs.sln
Unable to find version '1.9.2' of package 'xunit.runners'.

Any thoughts? I'm new to mono, so I'm still figuring out how it works.

@lotapp
Copy link

lotapp commented Jun 19, 2018

CSharp for Jupyter Notebook
http://www.cnblogs.com/dotnetcrazy/p/9198129.html

@CM-Kajiwara
Copy link

+1

@HALOCORE
Copy link

HALOCORE commented Sep 1, 2018

I know how to solve the Unable to find problem, but even if you build successfully, you will still not be able to launch C# kernel. Too many bugs! I rewrited build.sh,packages.config, and so on just to pass the build, but still not be able to use....

@HALOCORE
Copy link

HALOCORE commented Sep 1, 2018

the 'Unable to find version '1.9.2' of package 'xunit.runners'' is because of the old Nuget.exe in subfolder Engine/.nuget is broken. It should be replaced by a usable one. I copied icsharp/.nuget/nuget.exe(4MB) to replace the icsharp/Engine/.nuget/Nuget.exe(2MB)

@davidcorbin
Copy link

Still having this issue on macOS.

$ sudo bash ./build.sh brew
+ mozroots --import --sync --quiet
+ mono ./.nuget/NuGet.exe restore ./iCSharp.sln
MSBuild auto-detection: using msbuild version '15.0' from '/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/msbuild/15.0/bin/'.
All packages listed in packages.config are already installed.
+ cd ./Engine
+ '[' brew == brew ']'
+ ./build_brew.sh
+ mozroots --import --sync --quiet
+ mono ./.nuget/NuGet.exe restore ./ScriptCs.sln
Unable to find version '1.9.2' of package 'xunit.runners'.

@HuangJunye
Copy link

the 'Unable to find version '1.9.2' of package 'xunit.runners'' is because of the old Nuget.exe in subfolder Engine/.nuget is broken. It should be replaced by a usable one. I copied icsharp/.nuget/nuget.exe(4MB) to replace the icsharp/Engine/.nuget/Nuget.exe(2MB)

This does the trick.

@yoiang
Copy link

yoiang commented Aug 21, 2019

I don't love this build process of including and executing nuget from the repo, is there a more safe way for this to work?

@zabirauf
Copy link
Owner

@yoiang agreed that there needs to be a better build/installation process. You can also use the docker image to run icsharp
https://cloud.docker.com/u/zabirauf/repository/docker/zabirauf/icsharp

Though the docker image is older then the latest commit in repo.

Feel free to send any PR to improve/fix the build and installation process.

@cyrillemidingoyi
Copy link

Is there any solution to this problem?
Unable to find version '1.9.2' of package 'xunit.runners'.

@thanhle7
Copy link

Outdated NuGet.exe made problem, just update to the latest version, as followings:

# change to cloned folder
cd icsharp
# update NuGet
mono Engine/.nuget/NuGet.exe update -self
mono .nuget/NuGet.exe update -self
# then,
bash ./build.sh brew

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants