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

NuGet restore for .NET core #42

Closed
loremaps opened this issue Apr 24, 2017 · 4 comments
Closed

NuGet restore for .NET core #42

loremaps opened this issue Apr 24, 2017 · 4 comments

Comments

@loremaps
Copy link

Hi,

I get the following exception when trying to restore the NuGet package in an .NET Core project (VS2017):

Restoring packages for D:\Projects\stanTest\stanTest\stanTest.csproj...
Package STAN.Client 0.1.3 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package STAN.Client 0.1.3 supports: net45 (.NETFramework,Version=v4.5)
Package NATS.Client 0.6.1 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package NATS.Client 0.6.1 supports: net45 (.NETFramework,Version=v4.5)
One or more packages are incompatible with .NETCoreApp,Version=v1.1.
Package restore failed. Rolling back package changes for 'stanTest'.

This should be working according to #37 correct?

Thanks

@ColinSullivan1
Copy link
Member

ColinSullivan1 commented Apr 24, 2017

@loremaps , You are correct, This is odd - it looks like the .NET 45 clients are being installed with core. Have you tried clearing out your local NuGet cache before restoring?

nuget locals -Clear all

@ColinSullivan1
Copy link
Member

Ahh, I see the problem; .NET core is not available for NATS streaming in NuGet yet, only in master branch. There will be release soon (I'm aiming for the next few days) where the latest streaming NuGet packages will have .NET core support. In the meantime, it you build the NATS streaming client, you'll have .NET core support.

@loremaps
Copy link
Author

Thank you for your prompt response. Indeed building the client works fine with .NET core. Looking forward for the latest NuGet packages.

@ColinSullivan1
Copy link
Member

@loremaps You're welcome - I'm glad to hear it is working out for you! The release is coming soon...

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

2 participants