Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Project in Visual Studio uses Microsoft.Azure.WebJobs v1.1.2 #2368

Open
KSchlobohm opened this issue Nov 6, 2019 · 6 comments
Open

New Project in Visual Studio uses Microsoft.Azure.WebJobs v1.1.2 #2368

KSchlobohm opened this issue Nov 6, 2019 · 6 comments
Milestone

Comments

@KSchlobohm
Copy link

Repro steps

  1. Launch Visual Studio 2019
  2. Create a new C# Azure WebJob (.NET Framework) project
  3. View the Installed NuGet packages
    out of date packages

Expected behavior

The new project should use the HostBuilder() and latest version of the Microsoft.Azure.WebJobs NuGet package.

Actual behavior

The version provided promotes the usage of the deprecated JobHostConfiguration class.
first experience for people learning webjobs

Known workarounds

I located the expected setup in the extensions sample and supporting documentation in the README.md

@v-anvari
Copy link

Hi @KSchlobohm , Apologies for the delay in response. This issue was somehow missed, we are eager to know if you are still facing the same issue, so that we can look into it.

@ghost
Copy link

ghost commented Sep 27, 2020

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@KSchlobohm
Copy link
Author

I recreated this issue today using VS 2019 v16.7 preview 6.

image

@KSchlobohm
Copy link
Author

@v-anvari

Do you know anyone on the azure-webjobs-sdk-extensions project?

@v-anvari
Copy link

v-anvari commented Sep 30, 2020

Hi @KSchlobohm ,NuGet package updates brought in breaking changes which is discussed in the git hub issue. It's based on the generic host which is similar to the asp.net host. Here's an example of the new setup

Here you can find a GitHub discussion related to that topic.

Able to reproduce the issue. I am zipping my reproduced file for further investigation. Need to update the project template to use the latest versions.

2368.zip
2368 screenshots.zip

Below is the error after updating the NuGet package version to the latest version and installing required packages.

Severity Code Description Project File Line Suppression State

Error NU1202 Package Microsoft.Azure.KeyVault.Core 3.0.5 is not compatible with net45 (.NETFramework,Version=v4.5). Package Microsoft.Azure.KeyVault.Core 3.0.5 supports:

  • net452 (.NETFramework,Version=v4.5.2)
  • net461 (.NETFramework,Version=v4.6.1)
  • netstandard1.4 (.NETStandard,Version=v1.4)
  • netstandard2.0 (.NETStandard,Version=v2.0) 2368 C:\Users\v-anvari\source\repos\2368\2368\2368.csproj 1
    Error Package restore failed. Rolling back package changes for '2368'.
    Error NU1202 Package Microsoft.Azure.WebJobs 3.0.19 is not compatible with net45 (.NETFramework,Version=v4.5). Package Microsoft.Azure.WebJobs 3.0.19 supports: netstandard2.0 (.NETStandard,Version=v2.0) 2368 C:\Users\v-anvari\source\repos\2368\2368\2368.csproj 1
    Error NU1202 Package Microsoft.Azure.WebJobs 3.0.19 is not compatible with net45 (.NETFramework,Version=v4.5) / win7-x86. Package Microsoft.Azure.WebJobs 3.0.19 supports: netstandard2.0 (.NETStandard,Version=v2.0) 2368 C:\Users\v-anvari\source\repos\2368\2368\2368.csproj 1
    Error NU1202 Package Microsoft.Azure.WebJobs.Core 3.0.19 is not compatible with net45 (.NETFramework,Version=v4.5) / win7-x86. Package Microsoft.Azure.WebJobs.Core 3.0.19 supports: netstandard2.0 (.NETStandard,Version=v2.0) 2368 C:\Users\v-anvari\source\repos\2368\2368\2368.csproj 1
    Error NU1202 Package Microsoft.Azure.KeyVault.Core 3.0.5 is not compatible with net45 (.NETFramework,Version=v4.5) / win7-x86. Package Microsoft.Azure.KeyVault.Core 3.0.5 supports:
  • net452 (.NETFramework,Version=v4.5.2)
  • net461 (.NETFramework,Version=v4.6.1)
  • netstandard1.4 (.NETStandard,Version=v1.4)
  • netstandard2.0 (.NETStandard,Version=v2.0) 2368 C:\Users\v-anvari\source\repos\2368\2368\2368.csproj 1
    Error NU1202 Package Microsoft.Azure.WebJobs.Core 3.0.19 is not compatible with net45 (.NETFramework,Version=v4.5). Package Microsoft.Azure.WebJobs.Core 3.0.19 supports: netstandard2.0 (.NETStandard,Version=v2.0) 2368 C:\Users\v-anvari\source\repos\2368\2368\2368.csproj 1

For the other two issues mentioned, I shall update the comments there, please check the comments.

@v-anvari v-anvari added this to the Triaged milestone Sep 30, 2020
@v-anvari v-anvari removed their assignment Sep 30, 2020
@gallettoNL
Copy link

gallettoNL commented Nov 10, 2021

Any updates on this? The webjob template in VS2019 still adds the deprecated packages, updating packages results in compile error "Type Queuetrigger is not defined" What's the story? @v-anvari ? Thanks for any help on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants