JetBrains / azure-tools-for-intellij

Azure Toolkit for JetBrains Rider.
MIT License
50 stars 11 forks source link

[4.0] Unable to deploy function app from standalone project #862

Closed Grimeh closed 3 months ago

Grimeh commented 3 months ago

Hi there!

UPDATE: this only happens when opening a standalone .csproj, creating a wrapper .sln allows you to successfully deploy a function app. This issue is specifically about the inability to deploy from a standalone .csproj.

After installing the 4.0 preview I cannot deploy our function app.

When creating a deploy configuration, the app settings are correctly pulled down, but I see Error: Choose a project platform at the bottom of the panel: image

I have tried both:

I was able to deploy to this target with 3.50.0 (though I ran into #861), and can deploy with VS Code's Azure extension.

Let me know if you'd like logs and I can provide them (I just didn't have the time today to comb through and redact confidential info sorry).

rafaelldi commented 3 months ago

Hello! You should be able to see the values in that field, is there anything in it?: image

Grimeh commented 3 months ago

Ah apologies, I should have specified that in the original post. The Configuration field has no values.

rafaelldi commented 3 months ago

Perhaps you don't have any build configuration? What do you see in the configuration manager?

image

image

You can also check other Publish configurations if they have values in the Configuration combo box.

image

image

Grimeh commented 3 months ago

I'm not sure if it's because I'm not on the EAP (which your screenshots seem to be from), but I don't seem to have a dedicated configuration manager. I can see Debug & Release configurations in the project properties though, but they seem to be a different type of configuration.

image

image

As suggested, I checked another publish configuration and "Publish to folder" has the same problem. image

Grimeh commented 3 months ago

So I noticed that our setup doesn't actually have a .sln, just a standalone .csproj. Without a solution I suppose there aren't any solution configurations 😅 I will attempt to create a wrapper solution to see if that resolves the issue.

Is this an intentional restriction? Pre-4.0 doesn't require a solution, neither does VSC's plugin.

Grimeh commented 3 months ago

Creating a wrapper solution did indeed fix the issue (I can also see & edit solution configurations now).

I'll update the title & OP to reflect the info that it only happens when opening a standalone .csproj.

rafaelldi commented 3 months ago

Thank you, fixed that

Grimeh commented 3 months ago

Legend, thanks!