Skip to content

Commit

Permalink
Bump up dependencies. (#60)
Browse files Browse the repository at this point in the history
* Bump up dependencies.

This pulls in the CommandLine version with .NET Standard 2.0 support, meaning we need to pull in that dependency as well when building the project.

Also added a trait to one of the tests who was missing one.

* Bump project version as well.
  • Loading branch information
AlexGhiondea authored Apr 21, 2020
1 parent 6d7bc65 commit f6848c8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommandLine.Net" Version="1.5.0" />
<PackageReference Include="CommandLine.Net" Version="2.1.2" />
<PackageReference Include="coverlet.collector" Version="1.2.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="2.8.2">
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.5.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace TestHelper
public abstract partial class DiagnosticVerifier
{
// this is relative based on the CommandLine project. We are using Path.Combine for X-Plat support
private static readonly MetadataReference PathToCommandLineAssemblyToReference = MetadataReference.CreateFromFile(typeof(Parser).Assembly.Location); //Path.Combine("..","..","..","..","..","bin","Debug","netstandard1.5","CommandLine.dll");
private static readonly MetadataReference PathToCommandLineAssemblyToReference = MetadataReference.CreateFromFile(typeof(Parser).Assembly.Location);

private static readonly MetadataReference CorlibReference = MetadataReference.CreateFromFile(typeof(object).Assembly.Location);
private static readonly MetadataReference SystemCoreReference = MetadataReference.CreateFromFile(typeof(Enumerable).Assembly.Location);
Expand Down Expand Up @@ -156,6 +156,9 @@ private static Project CreateProject(string[] sources, string language = Languag
refs.Add(MetadataReference.CreateFromFile(item));
}

// add netStandard.dll to the mix
var ns20 = Path.Combine(pathToSharedFx, "netstandard.dll");
refs.Add(MetadataReference.CreateFromFile(ns20));

var solution = new AdhocWorkspace()
.CurrentSolution
Expand Down
4 changes: 2 additions & 2 deletions src/CommandLine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
</PropertyGroup>

<PropertyGroup>
<AssemblyVersion>2.1.2</AssemblyVersion>
<AssemblyVersion>2.1.3</AssemblyVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
<VersionPrefix>2.1.2</VersionPrefix>
<VersionPrefix>2.1.3</VersionPrefix>
</PropertyGroup>

<PropertyGroup>
Expand Down
9 changes: 6 additions & 3 deletions test/CommandLine.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.analyzers" Version="0.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.analyzers" Version="0.10.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions test/CommandLineTests.Environment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ namespace CommandLine.Tests
public partial class CommandLineTests
{
[Fact]
[Trait("Category", "Environment variable")]
public void EnvironmentTest1()
{
ParserOptions po = new ParserOptions() { VariableNamePrefix = nameof(EnvironmentTest1) };
Expand Down

0 comments on commit f6848c8

Please sign in to comment.