Skip to content

Commit

Permalink
Improve VS Code support - see dotnet/vscode-csharp#1783.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillig committed Jul 15, 2021
1 parent 0978761 commit bb66b26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Description>Autofac implementation of the interfaces in Microsoft.Extensions.DependencyInjection.Abstractions, the .NET Framework dependency injection abstraction.</Description>
<!-- Set by AppVeyor -->
<VersionPrefix>0.0.1</VersionPrefix>
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;netstandard2.0;netstandard2.1;net5.0</TargetFrameworks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Autofac.Extensions.DependencyInjection</AssemblyName>
Expand Down Expand Up @@ -57,18 +57,18 @@
</PackageReference>

<!-- Conditional references of the MEDI abstractions depending on runtime target. -->
<PackageReference Condition=" '$(TargetFramework)' == 'net6.0' "
Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0-preview.6.21352.12" />

<PackageReference Condition=" '$(TargetFramework)' == 'netstandard2.0' "
Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.1.0" />

<PackageReference Condition=" '$(TargetFramework)' == 'netstandard2.1' "
Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.1.0" />

<PackageReference Condition=" '$(TargetFramework)' == 'net5.0' "
Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="5.0.0" />

<PackageReference Condition=" '$(TargetFramework)' == 'net6.0' "
Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="6.0.0-preview.6.21352.12" />


</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks>net6.0;netcoreapp3.1;net5.0</TargetFrameworks>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Autofac.Extensions.DependencyInjection.Test</AssemblyName>
Expand All @@ -19,6 +19,12 @@
<ProjectReference Include="..\..\src\Autofac.Extensions.DependencyInjection\Autofac.Extensions.DependencyInjection.csproj" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0-preview.6.21352.12" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Specification.Tests" Version="6.0.0-preview.6.21352.12" />
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0-preview.6.21352.12" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.6" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Specification.Tests" Version="3.1.16" />
Expand All @@ -31,12 +37,6 @@
<PackageReference Include="Microsoft.Extensions.Options" Version="5.0.0" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0-preview.6.21352.12" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Specification.Tests" Version="6.0.0-preview.6.21352.12" />
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0-preview.6.21352.12" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="3.0.3">
<PrivateAssets>all</PrivateAssets>
Expand Down

0 comments on commit bb66b26

Please sign in to comment.