Skip to content

Commit

Permalink
Add net6 support for tool (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 13, 2021
1 parent 3eab30f commit 49a8b7f
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/ConfigReader.Tests/ConfigReader.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5</TargetFramework>
<TargetFramework>net6</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand All @@ -10,7 +10,7 @@
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />
<PackageReference Include="Xunit" Version="2.4.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<PackageReference Include="ProjectDefaults" Version="1.0.59-beta.5" PrivateAssets="All" />
<PackageReference Include="ProjectDefaults" Version="1.0.60" PrivateAssets="All" />
<None Update="allConfig.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
2 changes: 1 addition & 1 deletion src/ConfigReader/ConfigReader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<ProjectReference Include="..\MarkdownSnippets\MarkdownSnippets.csproj" />
<PackageReference Include="ProjectDefaults" Version="1.0.59-beta.5" PrivateAssets="All" />
<PackageReference Include="ProjectDefaults" Version="1.0.60" PrivateAssets="All" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<NoWarn>CS1591</NoWarn>
<Version>24.1.0</Version>
<Version>24.2.0</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Markdown, Snippets, mdsnippets, documentation, MarkdownSnippets</PackageTags>
<Description>Extracts snippets from code files and merges them into markdown documents.</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.11.0" PrivateAssets="All" />
<ProjectReference Include="..\MarkdownSnippets\MarkdownSnippets.csproj" PrivateAssets="All" />
<PackageReference Include="ProjectDefaults" Version="1.0.59-beta.5" PrivateAssets="All" />
<PackageReference Include="ProjectDefaults" Version="1.0.60" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" Condition="$(Configuration) == 'Release'" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions src/MarkdownSnippets.Tool/MarkdownSnippets.Tool.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5</TargetFramework>
<TargetFrameworks>net5;net6</TargetFrameworks>
<ToolCommandName>mdsnippets</ToolCommandName>
<AssemblyName>mdsnippets</AssemblyName>
<PackageId>MarkdownSnippets.Tool</PackageId>
Expand All @@ -14,7 +14,7 @@

<ProjectReference Include="..\MarkdownSnippets\MarkdownSnippets.csproj" />
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="ProjectDefaults" Version="1.0.59-beta.5" PrivateAssets="All" />
<PackageReference Include="ProjectDefaults" Version="1.0.60" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" Condition="$(Configuration) == 'Release'" />
</ItemGroup>
</Project>
1 change: 0 additions & 1 deletion src/MarkdownSnippets/Downloader/Downloader.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Net;
using System.Net.Http;

static class Downloader
{
Expand Down
4 changes: 1 addition & 3 deletions src/MarkdownSnippets/Downloader/Timestamp.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Net.Http;

class Timestamp
class Timestamp
{
static DateTime minFileDate = DateTime.FromFileTimeUtc(0);
public DateTime? Expiry;
Expand Down
4 changes: 2 additions & 2 deletions src/MarkdownSnippets/MarkdownSnippets.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<TargetFrameworks>netstandard2.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ProjectDefaults" Version="1.0.59" PrivateAssets="All" />
<PackageReference Include="ProjectDefaults" Version="1.0.59-beta.5" PrivateAssets="All" />
<PackageReference Include="ProjectDefaults" Version="1.0.60" PrivateAssets="All" />
<PackageReference Include="ProjectDefaults" Version="1.0.60" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" Condition="$(Configuration) == 'Release'" />
<PackageReference Include="Nullable" Version="1.3.0" PrivateAssets="All" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5</TargetFramework>
<TargetFramework>net6</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="DirectorySnippetExtractor\VerifyLambdasAreCalled\subpath\" />
Expand All @@ -12,7 +12,7 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
<ProjectReference Include="..\MarkdownSnippets.Tool\MarkdownSnippets.Tool.csproj" />
<ProjectReference Include="..\MarkdownSnippets\MarkdownSnippets.csproj" />
<PackageReference Include="ProjectDefaults" Version="1.0.59-beta.5" PrivateAssets="All" />
<PackageReference Include="ProjectDefaults" Version="1.0.60" PrivateAssets="All" />
<None Include="badsnippets\code.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down

0 comments on commit 49a8b7f

Please sign in to comment.