-
Notifications
You must be signed in to change notification settings - Fork 525
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
Ignore _._ content files #193
Comments
related to #192 we need some kind of blacklisting /cc @theimowski ideas? |
guess the blacklist etc is included in the powershell scripts.. not sure, maybe something similiar to --interactive? |
There's no |
so it's magic in nuget.exe? cool let's do the same magic |
IIRC the . files were completely empty, probably a blacklist for 0-byte-files wouldn't be that bad? |
Seems like magic to me :-) Actually, it's not that funny to think about it. It's one thing to have magic in a tool (NuGet), but questionable to not document it. |
Let me see if NuGet handles 0-byte content files this way or just the |
it's open source! open source needs no docs. 2014-09-29 17:28 GMT+02:00 Alexander Groß notifications@github.com:
|
These content files are black magic actually. Can't find a way to have them added by NuGet/VS, 0-bytes or not. |
OK, seems you cannot just mess with the nupkg. You need to create a new nupkg from a valid nuspec. Here's what I've found: Only |
|
ok I wonder what these files do? |
(GH markdown swallows it underscores) https://nuget.codeplex.com/SourceControl/latest#src/Core/Packages/Constants.cs |
The first and most relevant link I found for |
yes. we need to do this. 2014-09-29 21:55 GMT+02:00 Cameron Taggart notifications@github.com:
|
What are the use cases where adding content files automatically to the project is a good idea? I don't want any of them showing up in my projects automatically. With |
Asp.net related packages like jquery use this technique. |
I've never liked and choose not to use NuGet package manager for JavaScript files. It isn't flexible enough for custom install locations. UI devs often prefer using a different packages manager. GitHub dependencies may work better here as well. I'd like to see content files not automatically added by default. |
I'm pretty sure @agross agrees. ;- I see two options:
I think 1) will kill adoption. Any ideas for 2)?
|
We could use a global switch like we did with strict mode. AlexAlexander Groß On Mon, Sep 29, 2014 at 11:21 PM, Steffen Forkmann
|
OK. So like strict mode, with |
👍 |
I have nostrong opinion on this yet, that's why I have to ask: are you sure 2014-09-29 23:40 GMT+02:00 Cameron Taggart notifications@github.com:
|
Yes, I think it makes sense at the solution level. It feels right for |
ok let's do this. |
#199 is for the This one is for blacklisting . files since the are ignored by nuget. Also up-for-grabs |
And could this be something like a .gitignore ? By giving glob path of content files to avoid to import ? |
Yes that's what we figured. They try to selectively add a reference. If
|
But more globally, it could be interesting to opt out from any content file by specifying glob path.... |
ahh you are referring to #199 - moved the comment there. |
Microsoft.Bcl has several
content
subfolders containing nothing but_._
files. NuGet seems to ignore these files whenInstall-Package
ing them in VS.(I couldn't find any documentation about these file names online, perhaps this is undocumented but supported behavior.)
The text was updated successfully, but these errors were encountered: