0
votes

I am having a lot of trouble debugging a .NET Core 2.2 Azure function in VS 2019 that uses version 1.0.29 of the Microsoft.NET.Sdk.Functions package. When I try to debug I get the following, how can I fix this?

Invalid Output Type Error

Note: I am not able to upgrade framework or package versions.

Edit: A colleague can debug a copy of the same Azure function on their PC without issue.

Thanks

1
You cant debug a project that's of output type, Class Library. You need to add a console project to your solution and use that to test the methods you want to test from your class library project - Jawad
@Jawad please see the edit above - radulfr
Do you have more than one project in your solution? Change the startup project to the one that your colleague is running. see here for setting startup project - Jawad
@Jawad already did. - radulfr
Can you go to this: ...\Functionappname\bin\Debug\netcoreappx.x? I want to see the structure. - Cindy Pau

1 Answers

0
votes

In the end what fixed it was wiping away my copy of the repo and repulling it. Something seems to have become corrupted in my local version.