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

support .net framwork? #27

Closed
LeiYangGH opened this issue Apr 26, 2020 · 6 comments
Closed

support .net framwork? #27

LeiYangGH opened this issue Apr 26, 2020 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@LeiYangGH
Copy link

LeiYangGH commented Apr 26, 2020

I'm using .net4.5 and trying to install it via nuget. The lowest version is 1.1.0. and it says requires .net standard2.0.

The question is why doesn't is support .net 4.5(.netstandard1.0)? As far as I know many dotnet core libraries also support .net framework.

@hsluoyz
Copy link
Member

hsluoyz commented Apr 26, 2020

@huazhikui @nodece @GopherJ can we support .NET Framework 4.5?

@hsluoyz hsluoyz self-assigned this Apr 26, 2020
@hsluoyz hsluoyz added the question Further information is requested label Apr 26, 2020
@nodece
Copy link
Member

nodece commented Apr 26, 2020

We can use .NET Standard 1.2 and It can support .NET Framework 4.5.1.

See https://docs.microsoft.com/en-us/dotnet/standard/net-standard for detail.

But I don't know how to compatible with the current version.

@hsluoyz
Copy link
Member

hsluoyz commented Apr 26, 2020

.net 4.5(.netstandard1.0) is still widely used. If we haven't used advanced features, we should downgrade compatible level to: .net 4.5(.netstandard1.0)

@LeiYangGH
Copy link
Author

LeiYangGH commented Apr 27, 2020

yes.
I also tried re-targeting to .net framework 4.6.1(lowest of .netstandard2.0), but then I got a lot of warnings (Consider app.config remapping of assembly ...), and didn't find a elegant solution to fix them. so expecting casbin.net to support .net 4.5.

@hsluoyz
Copy link
Member

hsluoyz commented Apr 27, 2020

I have asked an issue in our expression evaluator: dynamicexpresso/DynamicExpresso#120

@huazhikui
Copy link
Member

casbin.net support .net 4.5 in version 1.2.6

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

No branches or pull requests

4 participants