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.

AssemblyInformationalVersionAttribute is required on client SDK assembly

See original GitHub issue

@vishnuramero commented on Tue Apr 20 2021

I’m trying to integration app configuration in xamarin forms application refering the below documentation https://docs.microsoft.com/en-us/azure/azure-app-configuration/quickstart-dotnet-core-app

while using the below snippet

  try
            {
                var builder = new ConfigurationBuilder();
                builder.AddAzureAppConfiguration("Connection string");
                var config = builder.Build();
                Console.WriteLine(config["TestApp:Settings:Message"] ?? "Hello world!");

            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }

I’m getting the below error

System.ArgumentException: AssemblyInformationalVersionAttribute is required on client SDK assembly ‘Azure.Data.AppConfiguration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8’ (inferred from the use of options type ‘Azure.Data.AppConfiguration.ConfigurationClientOptions’). —> System.InvalidOperationException: AssemblyInformationalVersionAttribute is required on client SDK assembly ‘Azure.Data.AppConfiguration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8’ (inferred from the use of options type ‘Azure.Data.AppConfiguration.ConfigurationClientOptions’). at Azure.Core.Pipeline.HttpPipelineBuilder.CreateTelemetryPolicy (Azure.Core.ClientOptions options) [0x00050] in <f1cd5db6e2924b63b07e4b4dabd6b00b>:0 at Azure.Core.Pipeline.HttpPipelineBuilder.Build (Azure.Core.ClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy[] perCallPolicies, Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies, Azure.Core.ResponseClassifier responseClassifier) [0x0005b] in <f1cd5db6e2924b63b07e4b4dabd6b00b>:0 at Azure.Data.AppConfiguration.ConfigurationClient.CreatePipeline (Azure.Data.AppConfiguration.ConfigurationClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy authenticationPolicy) [0x00034] in <997eb725f857493abce8c234b36edab8>:0 at Azure.Data.AppConfiguration.ConfigurationClient…ctor (System.String connectionString, Azure.Data.AppConfiguration.ConfigurationClientOptions options) [0x0003b] in <997eb725f857493abce8c234b36edab8>:0 at Microsoft.Extensions.Configuration.AzureAppConfiguration.ConfigurationClientFactory.CreateConfigurationClient (System.String connectionString, Azure.Data.AppConfiguration.ConfigurationClientOptions clientOptions) [0x00000] in <9dd2d2eda71a482ca923341b403a1169>:0 at Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationSource.Build (Microsoft.Extensions.Configuration.IConfigurationBuilder builder) [0x0003e] in <9dd2d2eda71a482ca923341b403a1169>:0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Axemastacommented, Jun 13, 2022

If working with Azure.Storage.Blobs in a Xamarin iOS app you would only need to include the following mtouch args:

<MtouchExtraArgs>--linkskip=Azure.Core --linkskip=Azure.Storage.Blobs</MtouchExtraArgs>

Thanks @vishnuramero this answer was extremely helpful and solved my issue! 😃

1reaction
TechieWithBeardcommented, Apr 26, 2021

@pakrym it worked thanks 👍 This happens when linker is in “Link All” state. In case if anyone else faces this issue here is what i have done: in additional mtouch arguments in xamarin ios build, just add these arguments Screenshot 2021-04-26 at 8 33 13 AM

--linkskip=Azure.Core --linkskip=Azure.Data.AppConfiguration --linkskip=Microsoft.Extensions.Configuration.AzureAppConfiguration --linkskip=Microsoft.Extensions.Configuration

Read more comments on GitHub >

github_iconTop Results From Across the Web

AssemblyInformationalVersionAtt...
The attribute defined by this class attaches additional version information to an assembly. If this attribute is applied to an assembly, the string...
Read more >
c# - Querying AssemblyInformationalVersionAttribute while ...
So are you trying to get your own app's version: Debug.WriteLine(string.Format("My App Version: {0}", Assembly.GetExecutingAssembly().
Read more >
Adding AssemblyMetadataAttribute using new SDK project ...
Adding AssemblyMetadataAttribute using new SDK project, with MSBuild. Now that we have the new project system, and we can define common assembly ......
Read more >
How to expose .NET Assembly Version via API endpoint ...
The AssemblyInformationalVersionAttribute attribute comes from the same namespace, and contains some info for the assembly manifest. You can get ...
Read more >
NET Azure SDK Design Guidelines
Introduction. The following document describes .NET specific guidelines for designing Azure SDK client libraries. These guidelines complement general .
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