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:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
If working with
Azure.Storage.Blobs
in a Xamarin iOS app you would only need to include the following mtouch args:Thanks @vishnuramero this answer was extremely helpful and solved my issue! 😃
@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
--linkskip=Azure.Core --linkskip=Azure.Data.AppConfiguration --linkskip=Microsoft.Extensions.Configuration.AzureAppConfiguration --linkskip=Microsoft.Extensions.Configuration