Skip to content

Commit ffc7154

Browse files
Remove script and lock details
1 parent 3b89426 commit ffc7154

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

articles/azure-functions/functions-reference-csharp.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,6 @@ To use NuGet packages in a C# function, upload a *extensions.csproj* file to the
386386
</Project>
387387
```
388388

389-
When you upload a *extensions.csproj* file, the runtime gets the packages and automatically adds references to the package assemblies. You don't need to add `#r "AssemblyName"` directives. To use the types defined in the NuGet packages; just add the required `using` statements to your *run.csx* file.
390-
391-
In the Functions runtime, NuGet restore works by comparing `extensions.csproj` and `project.lock.json`. If the date and time stamps of the files **do not** match, a NuGet restore runs and NuGet downloads updated packages. However, if the date and time stamps of the files **do** match, NuGet does not perform a restore. Therefore, `project.lock.json` should not be deployed, as it causes NuGet to skip package restore. To avoid deploying the lock file, add the `project.lock.json` to the `.gitignore` file.
392-
393389
To use a custom NuGet feed, specify the feed in a *Nuget.Config* file in the Function App root. For more information, see [Configuring NuGet behavior](/nuget/consume-packages/configuring-nuget-behavior).
394390

395391
### Using a extensions.csproj file

0 commit comments

Comments
 (0)