You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run dotnet build, ExtensionsMetadataGenerator throws an exception (which results in a warning) if Microsoft.Win32.Registry 4.6.0 is used.
I'm not sure if this warning is important, or can be safely ignored.
I tried different framework versions: .NET Core 2.1, .NET Core 2.2;
different Microsoft.NET.Sdk.Functions package versions: 1.0.23, ..., 1.0.29, 1.0.30-beta1, 1.0.30-beta2;
and different Microsoft.Win32.Registry package versions: 4.5.0, 4.6.0
The framework version doesn't seem to matter, it fails the same way for 2.1 and 2.2.
Microsoft.Win32.Registry 4.5.0 works for every Functions version I tried,
and the new 4.6.0 version fails if the Functions package version >= 1.0.25.
It works with 1.0.24.
Based on this, I think this is a similar issue to #4055 which also started to fail from 1.0.25.
/home/ngg/.nuget/packages/microsoft.azure.webjobs.script.extensionsmetadatagenerator/1.1.2/build/Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets(33,5): warning : Could not evaluate 'Microsoft.Win32.Registry.dll' for extension metadata. Exception message: Could not load file or assembly 'Microsoft.Win32.Registry, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. [/tmp/test/test.csproj]
The text was updated successfully, but these errors were encountered:
ngg
changed the title
.NET Core 2.1/2.2; Functions v2: ExtensionsMetadataGenerator fails for new Microsoft.Win32.Registry
Functions v2: ExtensionsMetadataGenerator fails for new Microsoft.Win32.Registry
Oct 20, 2019
@ngg Sorry for the delayed response but this warning can be safely ignored in this case. The ExtensionsMetadataGenerator is just checking to see if the Registry dll is a Functions extension by attempting to load it (it's not, so not a problem). This would only be an issue if you get this warning for a Functions extension dll.
I'll go ahead and close this issue but let me know if you have any more questions
When I run
dotnet build
, ExtensionsMetadataGenerator throws an exception (which results in a warning) if Microsoft.Win32.Registry 4.6.0 is used.I'm not sure if this warning is important, or can be safely ignored.
I tried different framework versions: .NET Core 2.1, .NET Core 2.2;
different Microsoft.NET.Sdk.Functions package versions: 1.0.23, ..., 1.0.29, 1.0.30-beta1, 1.0.30-beta2;
and different Microsoft.Win32.Registry package versions: 4.5.0, 4.6.0
The framework version doesn't seem to matter, it fails the same way for 2.1 and 2.2.
Microsoft.Win32.Registry 4.5.0 works for every Functions version I tried,
and the new 4.6.0 version fails if the Functions package version >= 1.0.25.
It works with 1.0.24.
Based on this, I think this is a similar issue to #4055 which also started to fail from 1.0.25.
Minimal repro case:
test.csproj:
I get the following warning:
The text was updated successfully, but these errors were encountered: