1

Closed

NuGet license any text on the same line is ignored while looking for if user has modified the content

description

  1. Create new console app.
  2. install jquery from nuget.org
  3. modify jquery.js and add the following
    /* NUGET: BEGIN LICENSE TEXT
    • NUGET: END LICENSE TEXT */ test
  4. uninstall jquery (or update)
Actual:
jquery.s is removed from the project. It seems to ignore the text that has been modified by the user on the same line as nuget end license.

Expected:
since user has modified the file by typing 'test' at the EOL of end license text it should be considered as modified.
Closed Oct 4, 2013 at 12:54 AM by JeffHandley

comments

deepakverma wrote Oct 3, 2013 at 9:17 PM

same is true with the modification at the start of the line
test/* NUGET: BEGIN LICENSE TEXT
  • NUGET: END LICENSE TEXT */

JeffHandley wrote Oct 4, 2013 at 12:54 AM

This is by design. We don't want to try parsing the JS comments or be restrictive about them at all. The BEGIN and END lines will be completely ignored. It's a little unintuitive, yes, but it drastically simplifies the requirements and implementation.

This can be used in any content file, so there's no way for us to universally parse and know the proper end of our statement. We must just ignore the entire line for both BEGIN and END.