Skip to content

Commit

Permalink
Extension schema and nuget cache fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocav committed Oct 12, 2017
1 parent b1c209b commit 518ac5d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 245 deletions.
24 changes: 0 additions & 24 deletions extensions.json

This file was deleted.

33 changes: 33 additions & 0 deletions schemas/json/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"title": "JSON schema for Azure Functions extensions.json files",
"$schema": "http://json-schema.org/draft-04/schema#",

"type": "object",

"properties": {
"extensions": {
"type": "array",
"description": "The list of installed extensions.",
"items": {
"type": "object",
"properties": {
"name": {
"description": "The short extension name.",
"type": "string",
"minLength": 0
},

"typeName": {
"description": "The type assembly qualified name.",
"type": "string"
},

"hintPath": {
"description": "An optional file path hint to the assembly containing the type.",
"type": "string"
}
}
}
}
}
}
203 changes: 0 additions & 203 deletions src/WebJobs.Script.WebHost/BindingExtensions/ExtensionsManager.cs

This file was deleted.

18 changes: 0 additions & 18 deletions src/WebJobs.Script.WebHost/BindingExtensions/IExtensionsManager.cs

This file was deleted.

7 changes: 7 additions & 0 deletions src/WebJobs.Script/BindingExtensions/ExtensionsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ internal virtual Task ProcessExtensionsProject(string projectFolder)
startInfo.Arguments += $" --configfile \"{nugetPath}\"";
}

if (ScriptSettingsManager.Instance.IsAzureEnvironment)
{
string nugetCacheLocation = Path.Combine(ScriptSettingsManager.Instance.GetSetting(EnvironmentSettingNames.AzureWebsiteHomePath), ".nuget");

startInfo.Arguments += $" --packages \"{nugetCacheLocation}\"";
}

SetupProcessEnvironment(startInfo);

var process = new Process { StartInfo = startInfo };
Expand Down

0 comments on commit 518ac5d

Please sign in to comment.