Skip to content

Commit

Permalink
Merge pull request #742 from dotnet-script/bugfix/conditional-dep
Browse files Browse the repository at this point in the history
conditionally reference appropriate version of Microsoft.Extensions.Logging.Console
  • Loading branch information
seesharper committed Nov 13, 2023
2 parents 3d6fa49 + b34c2c7 commit 14e0ca7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Dotnet.Script.Tests/ScriptExecutionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ public void ShouldCompileAndExecuteWithWebSdk()
[Fact]
public void ShouldCompileAndExecuteWithWebSdk()
{
var processResult = ScriptTestRunner.Default.ExecuteFixture("WebApi", "--no-cache --isolated-load-context");
var processResult = ScriptTestRunner.Default.ExecuteFixture("WebApi", "--no-cache");
Assert.Equal(0, processResult.ExitCode);
}
#endif
Expand Down
6 changes: 5 additions & 1 deletion src/Dotnet.Script/Dotnet.Script.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.4.0-1.final" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="4.0.2" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0"
Condition="'$(TargetFramework)' == 'net6.0' or '$(TargetFramework)' == 'net7.0'"/>

<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0-rc.2.23479.6"
Condition="'$(TargetFramework)' == 'net8.0'"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Dotnet.Script.Core\Dotnet.Script.Core.csproj" />
Expand Down

0 comments on commit 14e0ca7

Please sign in to comment.