question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator >= 1.0.2 + e.g. Microsoft.Win32.Registry = warning

See original GitHub issue

Investigative information

As in title, having Microsoft.Win32.Registry and Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator in version higher than 1.0.1 in the same project causes warning.

Repro steps

Create console app project with such csproj and try to build it.

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.2</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Win32.Registry" Version="4.7.0" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator" Version="1.0.2" />
  </ItemGroup>

</Project>

Expected behavior

No warning.

Actual behavior

Following warning: Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets(33, 5): Could not evaluate 'Microsoft.Win32.Registry.dll' for extension metadata. Exception message: Could not load file or assembly 'Microsoft.Win32.Registry, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Known workarounds

Downgrading a package to at least 1.0.1

Related information

One might argue that this behavior is appropriate. Maybe. I’m not familiar with these packages’ content.

But having

  • Microsoft.NET.Sdk.Functions > 1.0.24 depending on Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator > 1.0.1
  • System.Data.SqlClient = 4.8.0 depending on Microsoft.Win32.Registry

causes my pipelines to fail because I treat warnings as errors and I cannot really accept this. Issue on the Azure Function SDK side is hanging as opened since March 2019.

Thank you for your reply.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
gl4eqencommented, Jan 30, 2020

Thank you for your time. It seems that project migration to .NET Core 3.1 is my best bet then. Nevertheless, I consider removal of this warning as an worthwhile improvement that I hope will happen soon.

0reactions
William-Froelichcommented, Jul 29, 2020

Yeah, we’re working on that too but our function apps are stuck on 2.2 from another issue with the azure functions library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ExtensionsMetadataGenerator error when upgrading ...
Workaround: Manually adding the Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator nuget package to your project and it will work well.
Read more >
Azure SDK for .NET package index
Listing of the package names, NuGet links, docs links, and source code links for all libraries in the Azure SDK for .NET.
Read more >
NuGet Gallery | Microsoft.Azure.WebJobs.Script. ...
Azure Functions extensions metadata generator.
Read more >
NuGet Warning NU1605
Solution. To the project exhibiting the restore warning, add a package reference to the higher version of the package. In the example above,...
Read more >
Azure Functions quit building with error after upgrading ...
My Azure functions target x64 specifically due to some native dependencies. I have one that targets v1 (due to a Framework dependency) and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found