Coder Social home page Coder Social logo

Create a NuGet package about managed-lzma HOT 12 CLOSED

weltkante avatar weltkante commented on June 21, 2024
Create a NuGet package

from managed-lzma.

Comments (12)

weltkante avatar weltkante commented on June 21, 2024

Are you looking for the LZMA or 7z part of the library? While the parts that are there are working the 7z API is not ready for distribution, its still in experimental stages and changes a lot every time I work on it. For the LZMA encoders/decoders I could consider creating a nuget package however.

Currently I'm concentrating my work on creating a "universal windows" version of the library, which has the advantage of being able to use C++ and getting the performance of the native lzma implementation. Once that's done I should have a better idea how the API will look like and will proceed on cleaning up the managed libraries. That would be the point where I'd create nuget packages I guess. If you'd like to have a nuget package for the LZMA part sooner I could make a prerelease version sometime next week, but the API would not be final.

from managed-lzma.

sepehr1014 avatar sepehr1014 commented on June 21, 2024

Wow! A complete library for .NET Core would be awesome!
On Aug 20, 2015 12:37 AM, "Tobias Kรคs" [email protected] wrote:

Are you looking for the LZMA or 7z part of the library? The 7z part is not
ready for distribution, its still in experimental stages and changes a lot
every time I work on it. For the LZMA encoders/decoders I could consider
creating a nuget package however.

Currently I'm concentrating my work on creating a "universal windows"
version of the library, which has the advantage of being able to use C++
and getting the performance of the native lzma implementation. Once that's
done I should have a better idea how the API will look like and will
proceed on cleaning up the managed libraries. That would be the point where
I'd create nuget packages I guess. If you'd like to have a nuget package
for the LZMA part sooner I could make a prerelease version sometime next
week, but the API would not be final.

โ€”
Reply to this email directly or view it on GitHub
#8 (comment)
.

from managed-lzma.

 avatar commented on June 21, 2024

Ping on this ๐Ÿ‘ - MyGet may be better as it actually allows deleting packages. AppVeyor/Travis may help you automate builds so there's less work for you

from managed-lzma.

weltkante avatar weltkante commented on June 21, 2024

I did a quick check on myget and I don't think I'd be immediately using any of the additional services they provide.

(Also deleting packages is a really bad idea, it makes the service unreliable and makes users want to mirror the packages in case stuff gets deleted, so as a user I'm actually glad nuget doesn't allow it!)

from managed-lzma.

weltkante avatar weltkante commented on June 21, 2024

Also as a status update on the actual issue, some of it mentioned on gitter:

I'm currently working on wrapping up the new API (which is already merged into the master branch) and planning beta nuget packages by the end of the month.

However I'm having some problems creating a portable library for the project in VS 2015 so it might be just desktop libraries on nuget for now. The problem is that when I define a portable library in VS 2015 and want to add the required nuget libraries for cryptography (which exist but are rather new) then VS and/or nuget errors out resolving dependencies. I hoped VS Update 1 would fix that but it didn't.

from managed-lzma.

 avatar commented on June 21, 2024

What's the package source? Perhaps a solution-level packages.config could help.

from managed-lzma.

 avatar commented on June 21, 2024

Also, can you paste some of the errors here for reference?

from managed-lzma.

weltkante avatar weltkante commented on June 21, 2024

Just create a portable library project and and add a nuget reference to System.Security.Cryptography.Algorithms (the corefx package for the AES encryption/decryption algorithms) and it will fail.

System.Security.Cryptography.Algorithms 4.0.0-beta-23516 is not compatible with .NETPlatform,Version=v5.0.
Some packages are not compatible with .NETPlatform,Version=v5.0.
All packages are compatible with .NETFramework,Version=v4.6.
All packages are compatible with UAP,Version=v10.0.
All packages are compatible with DNXCore,Version=v5.0.
All packages are compatible with .NETFramework,Version=v4.6 (win-x86).
All packages are compatible with .NETFramework,Version=v4.6 (win-x64).
All packages are compatible with UAP,Version=v10.0 (win10-x86).
All packages are compatible with UAP,Version=v10.0 (win10-x86-aot).
All packages are compatible with UAP,Version=v10.0 (win10-x64).
All packages are compatible with UAP,Version=v10.0 (win10-x64-aot).
All packages are compatible with UAP,Version=v10.0 (win10-arm).
All packages are compatible with UAP,Version=v10.0 (win10-arm-aot).
All packages are compatible with DNXCore,Version=v5.0 (win7-x86).
All packages are compatible with DNXCore,Version=v5.0 (win7-x64).

Note that whatever framework you chose for the portable library to support doesn't matter, it always errors out on ".NET Platform 5.0" (and the nuget package indeed says it requires ".NET Platform 5.1" - but I don't see where I can configure that in Visual Studio). So far I have not found any reference on the net what that ".NET Platform 5.0" means. There is the possibility that VS simply cannot deal with these corefx libraries yet.

I haven't done anything with .NET Core yet, so portable libraries may actually be the wrong project type. If you have any links or suggestions to share that would probably help.

from managed-lzma.

weltkante avatar weltkante commented on June 21, 2024

Actually while reproducing the issue for you I noticed that if I don't take the newest version of the library there's an older one which still supported ".NET Platform 5.0" and also has AES support, so I may get away referencing that one.

from managed-lzma.

weltkante avatar weltkante commented on June 21, 2024

I've been able to setup a portable library project and compile it, but nuget refuses to build a package out of it. I'm getting an error targetFramework attribute not declared if I run nuget on the project.

For the record, I've been trying to follow the explanations from this blog post

I'd appreciate any hints, links, or a working nuspec file ;-)

For now I've made a nuget package for the desktop framework to get started. You can find it under https://www.nuget.org/packages/ManagedLzma

I don't have much of a documentation or examples yet, but you can take a look at the code in the repository to get started.

Of course any testing and potential bug reports are welcome too.

from managed-lzma.

weltkante avatar weltkante commented on June 21, 2024

I've checked in a 2nd variant of a portable project which uses older nuget references and the older packages.config instead of project.json format. Of course that means it won't target .NET Core, ASP.NET 5 or UWP (these need the project.json file which I can't get to work).

Not publishing a portable nuget package yet because I want to try to figure out if I can get the desktop and portable build into the same package (instead of making two distinct packages).

from managed-lzma.

weltkante avatar weltkante commented on June 21, 2024

I've pushed a .NET Standard 1.3/2.0 nuget package under v0.2-alpha-7 which should cover most platforms which previously were using portable. If anyone still needs portable support, I have it working, I just don't know how to write a nuspec for it. Unless someone still requires portable (and knows how to write the nuspec) I'll stick to .NET Standard.

from managed-lzma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.