Update csproj File Azure Function In portal editor
I am writing an azure function that needs a NuGet package Sendgrid
. The only way I found was to update the .csproj
file.
Now in the View File option, I can't go back to the parent directory, but I can go from the Console. I just need to update the .csproj
file in the parent directory so that I can update the Nuget packages.
I need to all the work in the provided in the portal editor. I know I can publish the code by any IDE
- Ref 1
- Ref 2
Thanks
UPDATE 1: Link to update csproj but the reference to Sendgrid is not established after the link
UPDATE 2: (ANSWER) Link to manually add Nuget Package This worked for me. But Update 1 was worth trying
c# azure azure-functions sendgrid azure-webjobs
add a comment |
I am writing an azure function that needs a NuGet package Sendgrid
. The only way I found was to update the .csproj
file.
Now in the View File option, I can't go back to the parent directory, but I can go from the Console. I just need to update the .csproj
file in the parent directory so that I can update the Nuget packages.
I need to all the work in the provided in the portal editor. I know I can publish the code by any IDE
- Ref 1
- Ref 2
Thanks
UPDATE 1: Link to update csproj but the reference to Sendgrid is not established after the link
UPDATE 2: (ANSWER) Link to manually add Nuget Package This worked for me. But Update 1 was worth trying
c# azure azure-functions sendgrid azure-webjobs
add a comment |
I am writing an azure function that needs a NuGet package Sendgrid
. The only way I found was to update the .csproj
file.
Now in the View File option, I can't go back to the parent directory, but I can go from the Console. I just need to update the .csproj
file in the parent directory so that I can update the Nuget packages.
I need to all the work in the provided in the portal editor. I know I can publish the code by any IDE
- Ref 1
- Ref 2
Thanks
UPDATE 1: Link to update csproj but the reference to Sendgrid is not established after the link
UPDATE 2: (ANSWER) Link to manually add Nuget Package This worked for me. But Update 1 was worth trying
c# azure azure-functions sendgrid azure-webjobs
I am writing an azure function that needs a NuGet package Sendgrid
. The only way I found was to update the .csproj
file.
Now in the View File option, I can't go back to the parent directory, but I can go from the Console. I just need to update the .csproj
file in the parent directory so that I can update the Nuget packages.
I need to all the work in the provided in the portal editor. I know I can publish the code by any IDE
- Ref 1
- Ref 2
Thanks
UPDATE 1: Link to update csproj but the reference to Sendgrid is not established after the link
UPDATE 2: (ANSWER) Link to manually add Nuget Package This worked for me. But Update 1 was worth trying
c# azure azure-functions sendgrid azure-webjobs
c# azure azure-functions sendgrid azure-webjobs
edited Nov 23 '18 at 18:46
Jackboys
asked Nov 23 '18 at 10:24
JackboysJackboys
172218
172218
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The only way I found was to update the .csproj file
To add a NuGet package to an Azure function, you can add it to the project.json file in the portal:
Then reference it in the .csx file:
It didn't worked
– Jackboys
Nov 23 '18 at 10:36
Sorry to hear that. Have you added theusing
references to the function .csx file? Have you tried what the link you posted suggested, upload an extensions.csproj file?
– stuartd
Nov 23 '18 at 10:39
Yes, I had already tried the #r with the using but no progress. From the reference, it says to upload the csproj file but its not possible because there is now way to do that. However I have found a way through Kudus, update the csproj file but it didn't either solve the issue
– Jackboys
Nov 23 '18 at 10:42
The Link docs.microsoft.com/mt-mt/azure/azure-functions/…
– Jackboys
Nov 23 '18 at 10:42
" I had already tried the #r with the using" - you can only use#r
with certain assemblies, NuGet packages have regularusing
statements: updated answer.
– stuartd
Nov 23 '18 at 10:48
|
show 4 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53444859%2fupdate-csproj-file-azure-function-in-portal-editor%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The only way I found was to update the .csproj file
To add a NuGet package to an Azure function, you can add it to the project.json file in the portal:
Then reference it in the .csx file:
It didn't worked
– Jackboys
Nov 23 '18 at 10:36
Sorry to hear that. Have you added theusing
references to the function .csx file? Have you tried what the link you posted suggested, upload an extensions.csproj file?
– stuartd
Nov 23 '18 at 10:39
Yes, I had already tried the #r with the using but no progress. From the reference, it says to upload the csproj file but its not possible because there is now way to do that. However I have found a way through Kudus, update the csproj file but it didn't either solve the issue
– Jackboys
Nov 23 '18 at 10:42
The Link docs.microsoft.com/mt-mt/azure/azure-functions/…
– Jackboys
Nov 23 '18 at 10:42
" I had already tried the #r with the using" - you can only use#r
with certain assemblies, NuGet packages have regularusing
statements: updated answer.
– stuartd
Nov 23 '18 at 10:48
|
show 4 more comments
The only way I found was to update the .csproj file
To add a NuGet package to an Azure function, you can add it to the project.json file in the portal:
Then reference it in the .csx file:
It didn't worked
– Jackboys
Nov 23 '18 at 10:36
Sorry to hear that. Have you added theusing
references to the function .csx file? Have you tried what the link you posted suggested, upload an extensions.csproj file?
– stuartd
Nov 23 '18 at 10:39
Yes, I had already tried the #r with the using but no progress. From the reference, it says to upload the csproj file but its not possible because there is now way to do that. However I have found a way through Kudus, update the csproj file but it didn't either solve the issue
– Jackboys
Nov 23 '18 at 10:42
The Link docs.microsoft.com/mt-mt/azure/azure-functions/…
– Jackboys
Nov 23 '18 at 10:42
" I had already tried the #r with the using" - you can only use#r
with certain assemblies, NuGet packages have regularusing
statements: updated answer.
– stuartd
Nov 23 '18 at 10:48
|
show 4 more comments
The only way I found was to update the .csproj file
To add a NuGet package to an Azure function, you can add it to the project.json file in the portal:
Then reference it in the .csx file:
The only way I found was to update the .csproj file
To add a NuGet package to an Azure function, you can add it to the project.json file in the portal:
Then reference it in the .csx file:
edited Nov 23 '18 at 10:48
answered Nov 23 '18 at 10:31
stuartdstuartd
51.5k1199128
51.5k1199128
It didn't worked
– Jackboys
Nov 23 '18 at 10:36
Sorry to hear that. Have you added theusing
references to the function .csx file? Have you tried what the link you posted suggested, upload an extensions.csproj file?
– stuartd
Nov 23 '18 at 10:39
Yes, I had already tried the #r with the using but no progress. From the reference, it says to upload the csproj file but its not possible because there is now way to do that. However I have found a way through Kudus, update the csproj file but it didn't either solve the issue
– Jackboys
Nov 23 '18 at 10:42
The Link docs.microsoft.com/mt-mt/azure/azure-functions/…
– Jackboys
Nov 23 '18 at 10:42
" I had already tried the #r with the using" - you can only use#r
with certain assemblies, NuGet packages have regularusing
statements: updated answer.
– stuartd
Nov 23 '18 at 10:48
|
show 4 more comments
It didn't worked
– Jackboys
Nov 23 '18 at 10:36
Sorry to hear that. Have you added theusing
references to the function .csx file? Have you tried what the link you posted suggested, upload an extensions.csproj file?
– stuartd
Nov 23 '18 at 10:39
Yes, I had already tried the #r with the using but no progress. From the reference, it says to upload the csproj file but its not possible because there is now way to do that. However I have found a way through Kudus, update the csproj file but it didn't either solve the issue
– Jackboys
Nov 23 '18 at 10:42
The Link docs.microsoft.com/mt-mt/azure/azure-functions/…
– Jackboys
Nov 23 '18 at 10:42
" I had already tried the #r with the using" - you can only use#r
with certain assemblies, NuGet packages have regularusing
statements: updated answer.
– stuartd
Nov 23 '18 at 10:48
It didn't worked
– Jackboys
Nov 23 '18 at 10:36
It didn't worked
– Jackboys
Nov 23 '18 at 10:36
Sorry to hear that. Have you added the
using
references to the function .csx file? Have you tried what the link you posted suggested, upload an extensions.csproj file?– stuartd
Nov 23 '18 at 10:39
Sorry to hear that. Have you added the
using
references to the function .csx file? Have you tried what the link you posted suggested, upload an extensions.csproj file?– stuartd
Nov 23 '18 at 10:39
Yes, I had already tried the #r with the using but no progress. From the reference, it says to upload the csproj file but its not possible because there is now way to do that. However I have found a way through Kudus, update the csproj file but it didn't either solve the issue
– Jackboys
Nov 23 '18 at 10:42
Yes, I had already tried the #r with the using but no progress. From the reference, it says to upload the csproj file but its not possible because there is now way to do that. However I have found a way through Kudus, update the csproj file but it didn't either solve the issue
– Jackboys
Nov 23 '18 at 10:42
The Link docs.microsoft.com/mt-mt/azure/azure-functions/…
– Jackboys
Nov 23 '18 at 10:42
The Link docs.microsoft.com/mt-mt/azure/azure-functions/…
– Jackboys
Nov 23 '18 at 10:42
" I had already tried the #r with the using" - you can only use
#r
with certain assemblies, NuGet packages have regular using
statements: updated answer.– stuartd
Nov 23 '18 at 10:48
" I had already tried the #r with the using" - you can only use
#r
with certain assemblies, NuGet packages have regular using
statements: updated answer.– stuartd
Nov 23 '18 at 10:48
|
show 4 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53444859%2fupdate-csproj-file-azure-function-in-portal-editor%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown