Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

netcoreapp version crashes #379

Closed
johnkors opened this issue Nov 19, 2016 · 7 comments
Closed

netcoreapp version crashes #379

johnkors opened this issue Nov 19, 2016 · 7 comments
Labels

Comments

@johnkors
Copy link

This version of apiport is not expecting a certian dotnet core version to be installed on my system, right? It should just work, as it's bundled with the dotnet core version it needs? Or am I missing something?

C:\code\core\dotnet-apiport\bin\Release\ApiPort\netcoreapp1.0\x64 (master)
λ ApiPort.exe

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.IO.FileSystem.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at System.ConsolePal.OpenStandardOutput()
   at System.Console.<>c.<get_Out>b__25_0()
   at System.Console.EnsureInitialized[T](T& field, Func`1 initializer)
   at System.Console.get_Out()
   at System.Console.WriteLine(String format, Object arg0, Object arg1)
   at ApiPort.Program.Main(String[] args) in C:\code\core\dotnet-apiport\src\ApiPort\Program.cs:line 22
@johnkors
Copy link
Author

For what it's worth, I've dotnet 1.1.0 installed outside that folder.

@Petermarcu
Copy link
Member

Looks like it's depending on 1.0.X because it's a netcoreapp1.0 app. Try installing 1.0.X.

@johnkors
Copy link
Author

Isn't this a self-contained app meaning it comes with all it's deps (also dotnet core 1.0.x)?

@conniey conniey added the bug label Nov 22, 2016
@conniey
Copy link
Member

conniey commented Nov 22, 2016

It may be because we are using msbuild to build the netcoreapp1.0 instead of the .NET CLI tools.

@scottaddie
Copy link
Member

scottaddie commented Nov 23, 2016

@conniey Does this mean that VS 2017 RC is required in order to compile the .NET Core project with MSBuild? I'm trying to build it on Windows.

@johnkors
Copy link
Author

It think all MSBuild does is pipe everything to dotnet anyhow.

@conniey
Copy link
Member

conniey commented May 3, 2017

If you pull the latest version of master and build it, executing: dotnet .\ApiPort\netcoreapp1.0\ApiPort.dll should work now.

Fixed in #411 .

@conniey conniey closed this as completed May 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants