Comments (8)
IMO, your request looks like a hack of nuget principles. Is there a documentation somewhere that recommends this practice?
Can you also investigate Paket: GitHub dependencies? Then can you tell us why this "recipe"-thing is better than using Paket?
from bytesize.
from bytesize.
Hey Lawson,
This looks interesting. I think many people would benefit from a recipe. I'll look into this and add it to my to do list.
Thanks
from bytesize.
Hey Lawson,
I'm not sure when I'll get to this, but If you have something already, maybe you can open a PR and we can work on it together to build some momentum for this feature.
from bytesize.
Do you publish your packages by hand? If so then you just simply need another nuspec file (ByteSize.Recipe.nuspec let's say) with a new ID (ByteSize.Recipe) and in the file list you would specify a single file:
<files>
<file src="ByteSize.cs" target="content/45/.ByteSize.Recipe/ByteSize.cs" />
</files>
Then pack and push that new package. NuGet will automatically put this in a folder (.ByteSize.Recipe) in Visual Studio and the period prefix is just to denote that it's not used or make the directory hidden if you have that enabled...
Feel free to message me if you have any issues or questions.
from bytesize.
IMO, your request looks like a hack of nuget principles. Is there a documentation somewhere that recommends this practice?
Thought exactly the same thing when I first saw this "recipe" thing. Where did that come from? Source should really not be distributed as content in .NET.
from bytesize.
from bytesize.
Thanks for clarifying @wlscaudill .
Still, this introduces so many complications though. What happens if you reference a file, and then try to update it from inside Visual Studio? This is like using a scaffolding mechanism, updating the results, and then running the scaffolding again on updates. What happens when you attempt to update the NuGet package?
It is such an outlandish concept to me... I assume it was used exclusively internally at Microsoft? I've never seen a "standard" package employ this approach. It seems like a way to "package a 'Shared Content' project type".
from bytesize.
Related Issues (20)
- Internationalization HOT 3
- [Cosmetic] "k" vs. "K": Wrong symbol for KiloByteSymbol constant in DecimalByteSize.cs HOT 2
- 0 defaults to bits (b) whereas all other values defaults to bytes (B)
- Seemingly huge number of dependencies for a "small library" HOT 5
- Add a ByteSpeed type which combines ByteSize & TimeSpan
- Add operators for ByteSize and int & double (e.g. *, /, etc) HOT 5
- Handle exabyte and more HOT 4
- Missing XML documentation for the library HOT 1
- Parsing bits and Bytes
- Formattable ToString exception in 2.1.0 HOT 2
- Remove "AddX" method like AddKiloByte/AddKebibyte etc.
- Change casing of *Bytes (e.g. MebiBytes, KiloBytes) to proper casing (i.e. Mebibytes, Kilobytes)
- Remove increment/decrement operators
- Different default format when using string interpolation
- Partial bytes do not exist HOT 3
- Suggestion: add helpers to format pairs of `ByteSize` in progress-like scenarios
- FR: ToString() method that uses the largest metric prefix whose value is greater than or equal to 1, using the binary values instead of decimal values. HOT 2
- Recommended way to parse legacy strings HOT 1
- FR: INumber interface implementation (generic math)
- ByteSizeTypeConverter issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bytesize.