diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index b840175..c94c314 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -43,14 +43,14 @@ steps:
arguments: '--configuration $(BuildConfiguration)'
# Pack (with symbols & SourceLink) happens before publish to ensure packages are available as build artifacts
-- script: echo Packing library with symbols and SourceLink metadata
+- script: echo Packing library with symbols and SourceLink metadata - Version $(Major).$(Minor).$(Revision)
displayName: 'Pre-Pack Info'
- task: DotNetCoreCLI@2
displayName: 'Packing (nupkg + snupkg)'
inputs:
command: 'pack'
packagesToPack: '**/Xunit.Microsoft.DependencyInjection.csproj'
- arguments: '--configuration $(BuildConfiguration) /p:ContinuousIntegrationBuild=true /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg --output $(Build.ArtifactStagingDirectory)/packages'
+ arguments: '--configuration $(BuildConfiguration) /p:ContinuousIntegrationBuild=true /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg /p:PackageVersion=$(Major).$(Minor).$(Revision) --output $(Build.ArtifactStagingDirectory)/packages'
nobuild: true
- task: DotNetCoreCLI@2
displayName: 'Running tests in example folder'
diff --git a/src/Abstracts/TestBedFactoryFixture.cs b/src/Abstracts/TestBedFactoryFixture.cs
index fc22384..4c8e473 100644
--- a/src/Abstracts/TestBedFactoryFixture.cs
+++ b/src/Abstracts/TestBedFactoryFixture.cs
@@ -110,7 +110,7 @@ private object CreateInstance(Type testType, IServiceProvider serviceProvider, I
// Use the fixture's existing GetKeyedService method instead of reflection
try
{
- var getKeyedServiceMethod = GetType().BaseType?.GetMethod("GetKeyedService",[typeof(string), typeof(ITestOutputHelper)])?.MakeGenericMethod(parameter.ParameterType);
+ var getKeyedServiceMethod = GetType().BaseType?.GetMethod("GetKeyedService", [typeof(string), typeof(ITestOutputHelper)])?.MakeGenericMethod(parameter.ParameterType);
arg = getKeyedServiceMethod?.Invoke(this, [key, testOutputHelper]);
}
catch
diff --git a/src/Xunit.Microsoft.DependencyInjection.csproj b/src/Xunit.Microsoft.DependencyInjection.csproj
index fef840a..d1bbba7 100644
--- a/src/Xunit.Microsoft.DependencyInjection.csproj
+++ b/src/Xunit.Microsoft.DependencyInjection.csproj
@@ -4,21 +4,37 @@