I am trying something like below:
#DNX
project.lock.json
and
*.lock.json
but it does not seem to be ignoring these files.
I am trying something like below:
#DNX
project.lock.json
and
*.lock.json
but it does not seem to be ignoring these files.
If file is already tracked to git, then you must first remove it(physically file must be placed out of git folder for the time), commit changes and add the file again to folder. Then git will begin ignoring it using your instruction.
from https://learn.microsoft.com/en-us/nuget/schema/project-json :
The project.lock.json file is generated in the process of restoring the NuGet packages in projects that use project.json. It holds a snapshot of all the information that is generated as NuGet walks the graph of packages and includes the version, contents, and dependencies of all the packages in your project. The build system uses this to choose packages from a global location that are relevant when building the project instead of depending on a local packages folder in the project itself. This results in faster build performance because it's necessary to read only project.lock.json instead of many separate .nuspec files.
The project.lock.json is automatically generated on package restore, so it can be omitted from source control by adding it to .gitignore and .tfignore files. However, if you include it in source control, the change history will show changes in dependencies resolved over time.