Brian Zhu
33d1298ad1
Fixing the ZIP Deploy Task to allow publishing to Functions slots
2018-06-12 18:05:52 -07:00
brzh
4f129b6c15
Adding a IsZipDeploySupported property to Functions.targets
2018-05-17 17:34:37 -07:00
brzh
6af5bc076b
Making DefaultHttpClient disposable
2018-05-17 11:27:15 -07:00
brzh
0fddf1dc70
Changing the generated ZIP path to use the PublishIntermediateTempPath and removing the unecessary System.Net.Http.dll from getting copied to tools\netstandard2.0 in the package
2018-05-17 11:01:25 -07:00
brzh
0c8927c1bf
Zip Deploy
2018-05-16 17:27:01 -07:00
Ahmed ElSayed
99ac9e490a
Fix eventHubName property handling and update version
...
Closes #186
2018-03-29 10:48:23 -07:00
Ahmed ElSayed
cb60645173
Fix generatedBy version and up to 1.0.12
2018-03-27 17:55:54 -07:00
Mike Lorbetske
aae49f3f32
Add updates for host.json and local.settings.json to the build props
2018-03-27 16:33:04 -07:00
Daniel Laughland
0955d91789
Doesn't create a window when generating functions
2018-03-20 13:20:31 -07:00
Ahmed ElSayed
d094003b87
Remove exception for Event Hub property name. Closes #180
2018-03-19 14:26:49 -07:00
Ahmed ElSayed
077cdbc286
Use Assembly version for GeneratedBy
2018-03-08 17:20:14 -08:00
Ahmed ElSayed
f55ddb7ade
Automate build and signing
2018-03-08 15:31:05 -08:00
Maarten van Sambeek
a1e970a323
Retrieving custom attributes through reflection-only load.
...
This prevents System.IO.FileNotFoundExceptions when building a .NET Framework application using dotnet build.
2018-03-01 11:23:29 -08:00
Ahmed ElSayed
9795346f0a
Fix build error in target file
2018-02-06 14:55:27 -08:00
Christian Schwendtner
33c1a14ac7
Include project items with "CopyToOutputDirectory" set to "PreserveNewest" as candidates for user provided function.json files
...
"None" and "Content" items with "CopyToOutputDirectory" set to "Always" or "PreserveNewest" and following the pattern "[folder]\function.json" or "[folder]/function.json" are used to identify functions (named as [folder]) to exclude from generation.
2018-02-05 15:11:31 -08:00
Christian Schwendtner
0d67fbdaa7
Include "Content" items as candidates for user provided function.json files (additional to "None" items)
...
"Content" items (and "None" items) with CopyToOutputDirectory set to "Always" and following the pattern "[folder]\function.json" or "[folder]/function.json" are used to identify functions (named as [folder]) to exclude from generation.
2018-02-05 15:11:31 -08:00
Christian Schwendtner
ec7f46207a
Fix generation of function.json on build
...
(Re)generate function.json files on each build. Use project file items to identify user provided function.json files. "None" items with CopyToOutputDirectory set to "Always" and following the pattern "[folder]\function.json" or "[folder]/function.json" are used to identify functions (named as [folder]) to exclude from generation.
2018-02-05 15:11:31 -08:00
Craig Thomas
f4c9521ebf
Use platform aware directory separators
2018-01-17 09:15:07 -08:00
cschwendtner
e9c91276d6
Add check if method has FunctionNameAttribute before other checks
...
Only methods with a FunctionNameAttribute are relevant for generation.
The generator checks all public types. During the checks (if the necessary attributes are present) it loads dependent assemblies (indirectly - to get the parameters of the methods). During this step an error can occur, because the dependent assembly cannot be loaded.
To avoid such errors, the check for the presence of a FunctionNameAttribute is done before the other checks.
2018-01-17 09:13:35 -08:00
Vijay Ramakrishnan
88e856a641
Merge pull request #152 from cschwendtner/SuppressEmptyWarning
...
Fix empty warning on build
2018-01-10 10:14:24 -08:00
Ahmed ElSayed
6e8cea6a80
Update dependencies
2018-01-02 12:32:11 -08:00
Cédric Luthi
a7d753a8a2
Use a nullable ValueTuple to return function or null
2018-01-02 11:40:32 -08:00
Cédric Luthi
60a74c2d01
Do not abort if generating a function fails
2018-01-02 11:40:32 -08:00
Cédric Luthi
c2a18a9539
Fix NullReferenceException when iterating over generated functions
2018-01-02 11:40:32 -08:00
Cédric Luthi
6fb65f3ca3
Simplify manual trigger binding creation by using a JObject directly
2018-01-02 11:40:32 -08:00
Cédric Luthi
4864d57675
Use FullName when checking WebJobs attributes
2018-01-02 11:40:32 -08:00
Cédric Luthi
1f463e9c53
Handle functions with both NoAutomaticTrigger and a trigger attribute
2018-01-02 11:40:32 -08:00
Cédric Luthi
ea6d0cbb0e
Add tests for invalid functions warnings
2018-01-02 11:40:32 -08:00
Cédric Luthi
691c67aee1
Add support for [NoAutomaticTrigger]
...
Methods with NoAutomaticTriggerAttribute will be exported as "manualTrigger" functions, as documented on https://github.com/Azure/azure-webjobs-sdk-script/wiki/function.json
Fixes #15
2018-01-02 11:40:32 -08:00
Cédric Luthi
d17f64d285
Split the `TryGenerateFunctionJsons` method for better testability
2018-01-02 11:40:32 -08:00
Cédric Luthi
9fd3bdc1d8
Make the Logger class non static and use it with dependency injection
2018-01-02 11:40:32 -08:00
cschwendtner
bb66f68bec
Fix empty warning on build
...
The output from the generator process is checked and only logged as warning, if the output is not empty.
When a project was built from Visual Studio, the build task logged the process output as warning, even when the output was empty. This resulted in an empty warning in Visual Studio.
2017-12-31 11:42:47 +01:00
Ahmed ElSayed
aed7423161
use forwardslashes for scriptPath. Closes #90
2017-10-11 13:16:36 -07:00
Vijay Ramakrishnan
a2b6ab0b96
Adding a new property to choose NETFramework
2017-10-03 19:17:22 -07:00
Vijay Ramakrishnan
1b28b41927
Adding the option to choose the FunctionsGenerator framework
2017-10-03 18:54:10 -07:00
Ahmed ElSayed
92f455a555
Update version and csproj files
2017-10-03 12:19:17 -07:00
Ahmed ElSayed
8729db0e2b
Move build task into executable to avoid msbuild random behavior
2017-10-03 10:10:18 -07:00
Ahmed ElSayed
393aeda534
Add actual version to generatedBy
2017-09-21 18:10:18 -07:00
Ahmed ElSayed
947dcaadbd
Support CosmosDBTriggerAttribute
2017-09-21 18:10:18 -07:00
Ahmed ElSayed
81fd24fc33
Update versions
2017-09-20 16:59:01 -07:00
Vijay Ramakrishnan
7b41225fad
Fixing the casing for Sdk.props
2017-09-13 12:06:37 -07:00
Vijay Ramakrishnan
1551d5f5bb
Adding netstandard2.0 support
2017-09-12 14:05:08 -07:00
Vijay Ramakrishnan
c4c1dfb2d9
Updating the version to 1.0.2 and adding unit test projects to sample
2017-08-18 12:02:26 -07:00
Vijay Ramakrishnan
a31ca50d3c
Fix the p2p references from default unit test project
2017-08-18 12:02:26 -07:00
Ahmed ElSayed
7aa0465af5
Update version to 1.0.1
2017-08-17 12:31:11 -07:00
Vijay Ramakrishnan
287c09f7a3
Fixing the slashes
2017-08-17 10:24:31 -07:00
Ahmed ElSayed
413a233d67
Add package references to csproj, remove them from targets file. Closes #88
2017-08-09 15:34:58 -07:00
Ahmed ElSayed
e01723e428
Fix handling disable attributes. Closes #85
2017-08-09 15:30:19 -07:00
Ahmed ElSayed
bec9345567
Fix test cases
2017-08-08 18:25:21 -07:00
Martijn Stolk
a4c183272b
Support for DisableAttribute
2017-08-08 18:07:42 -07:00
Vijay Ramakrishnan
797869f0ec
Merge pull request #87 from Azure/fixReferences
...
Fixing the copying of application dll
2017-08-04 15:06:00 -07:00
Vijay Ramakrishnan
5b9f65e34b
Fixing the copying of application dll
2017-08-04 13:57:32 -07:00
Ahmed ElSayed
2386db4816
Fix ApiHubFileTrigger serialization. Fixes #55
2017-08-04 09:18:27 -07:00
Ahmed ElSayed
3098dbdfc7
Only serialize triggers, and add generatedBy flag. Closes #74
2017-08-04 09:04:41 -07:00
Vijay Ramakrishnan
1205899e93
Adding support for building and publishing to bin
2017-08-02 18:26:41 -07:00
Vijay Ramakrishnan
3305f7d28b
Fixing the TargetFileName
2017-08-02 14:12:03 -07:00
Vijay Ramakrishnan
b40bc2a8b0
Update the msbuild package versions to latest stable
2017-08-02 09:52:29 -07:00
Vijay Ramakrishnan
6cbeab5902
Creating a bin folder for the published output
2017-08-01 19:57:35 -07:00
Vijay Ramakrishnan
b0b035b8bf
Adding package references to the targets
2017-08-01 10:02:09 -07:00
Vijay Ramakrishnan
307c7773e0
Fixing up the comments
2017-07-31 16:23:10 -07:00
Vijay Ramakrishnan
0aaf96c5c0
Clean should delete the generated Files
2017-07-31 16:15:54 -07:00
Vijay Ramakrishnan
2ef2d4805a
Renaming target names
2017-07-29 09:59:33 -07:00
Vijay Ramakrishnan
110d4a433b
Supports Publishing to a folder
2017-07-28 17:36:21 -07:00
Vijay Ramakrishnan
293303c795
Fixing the publish imports
2017-07-28 13:54:49 -07:00
Martijn Stolk
bc7efe971d
Updated the generated 'disabled' field to generate either a bool or string based upon the overload that has been used in the DisabledAttribute.
2017-07-20 11:15:40 +02:00
Ahmed ElSayed
a88858a0c4
Correctly handle errors when function.json shouldn't be generated
2017-06-09 13:34:12 -07:00
Vijay Ramakrishnan
85378be511
Moving the all the publish contents outside bin
2017-06-09 12:35:04 -07:00
Ahmed ElSayed
659ce76b63
Update to alpha5
2017-05-26 14:21:16 -07:00
Ahmed ElSayed
ef4ff41096
Only copy artifact files if it's needed.
2017-05-26 14:20:49 -07:00
Ahmed ElSayed
a0cf1a27c9
Copy function runtime artifacts from _assemblyPath to _outputPath. Fixes #49
2017-05-25 11:47:44 -07:00
Ahmed ElSayed
7ae75e6cb2
Allow manually provided function.json file. Closes #50
2017-05-25 11:29:09 -07:00
Ahmed ElSayed
68ef61ce39
Make having multiple functions with the same FunctionNameAttribute an error
2017-05-16 11:46:20 -07:00
Ahmed ElSayed
e221e29a44
Upgrade package to alpha4
2017-05-12 13:43:05 -07:00
Ahmed ElSayed
169ad808f3
Fix warning for missing or blank AzureWebJobsStorage
2017-05-12 13:41:40 -07:00
Ahmed ElSayed
a8e0dfe726
Handle EventHubAttribute correctly
2017-05-12 13:22:01 -07:00
Ahmed ElSayed
dc0bf3dd3a
Warn on a blank or missing AzureWebJobsStorage connection string if the function is anything but httpTrigger. Closes #39
2017-05-11 16:19:05 -07:00
Ahmed ElSayed
e72092add9
Handle ServiceBusAttribute correctly. Fixes #40
2017-05-11 15:43:14 -07:00
Ahmed ElSayed
b4058f606a
Don't warn on local.settings.json missing.
2017-05-09 10:45:19 -07:00
Mike Lorbetske
3b173e7b50
Fix location of debug information
2017-05-09 10:43:56 -07:00
Mike Lorbetske
363ee4f50e
Bump versions
2017-05-09 10:43:56 -07:00
Mike Lorbetske
15e218fd0d
Fix quotes, add the ability to set debug symbols
2017-05-09 10:43:56 -07:00
Mike Lorbetske
a380357b3c
Move property defaulting into the build target
2017-05-09 10:43:56 -07:00
Mike Lorbetske
4d43dda932
Fix issue #3
2017-05-09 10:43:56 -07:00
Ahmed ElSayed
8d04d05792
Change version back to alpha2
2017-05-08 13:44:50 -07:00
Ahmed ElSayed
6f02bbbca7
Warn on missing app settings from local.settings.json
2017-05-08 13:44:01 -07:00
Ahmed ElSayed
2691a3b425
Use LoadInSeparateAppDomain instead of creating an app domain explicitly. Closes #35
2017-05-08 13:36:35 -07:00
Vijay Ramakrishnan
a5fb7d8c13
Changing MsBuildSDKsPath to Import Sdk
2017-05-03 15:26:25 -07:00
Ahmed ElSayed
95bc4c104e
Clean function.json directory on build. Fixes #29
2017-05-03 15:25:59 -07:00
Ahmed ElSayed
e56e4d4d7f
Refactor clearing authLevel for httpTrigger webhooks
2017-05-03 14:57:05 -07:00
Ahmed ElSayed
c6a84b6ff3
Update package version to alpha2
2017-05-02 14:12:19 -07:00
Ahmed ElSayed
1c13be4996
Load assembly in a different app domain, then unload it to prevent the assembly from being locked
2017-05-02 14:05:44 -07:00
Ahmed ElSayed
af9e317480
Still use _supportedAttributes list until ServiceBusAttributes have [Binding]
2017-05-01 16:25:32 -07:00
Ahmed ElSayed
bda42928b3
Fix authLevel with WebHook handling
2017-05-01 16:19:16 -07:00
Ahmed ElSayed
51e1bf7bb0
Handle DocumentDbAttribute. Fixes #27
2017-05-01 16:07:58 -07:00
Ahmed ElSayed
96ffae1de3
Support SDK DisableAttribute. Closes #17
2017-04-27 10:51:47 -07:00
Ahmed ElSayed
2c6db75f56
Update signing settings
2017-04-26 17:01:11 -07:00
Ahmed ElSayed
951158396c
Clear AuthLevel from httpTrigger that has a webHook property. Fixes #23
2017-04-26 17:00:55 -07:00
Ahmed ElSayed
73a9e17f7b
Add IConnectionProvider tests
2017-04-26 12:17:57 -07:00
Ahmed ElSayed
b1b62fc45e
Move logic for adding $return for httpTrigger to the returnOutputBinding logic
2017-04-26 12:07:32 -07:00
Ahmed ElSayed
d51dff065a
Support IConnectionProvider. Closes #11
2017-04-25 18:44:46 -07:00