-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add net5
and net6
as TargetFrameworks
#479
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1</TargetFrameworks> | ||
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5;net6</TargetFrameworks> | ||
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT'">$(TargetFrameworks);net452;net46;net461;net472</TargetFrameworks> | ||
<ProjectGuid>6BA232A6-8C4D-4C7D-BD75-1844FE9774AF</ProjectGuid> | ||
<RootNamespace>HandlebarsDotNet.Test</RootNamespace> | ||
|
@@ -36,6 +36,14 @@ | |
<DefineConstants>$(DefineConstants);netcoreapp;netstandard</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TargetFramework)'=='net5'"> | ||
<DefineConstants>$(DefineConstants);netcoreapp;netstandard;net</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(TargetFramework)'=='net6'"> | ||
<DefineConstants>$(DefineConstants);netcoreapp;netstandard;net</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Handlebars\Handlebars.csproj" /> | ||
</ItemGroup> | ||
|
@@ -62,7 +70,7 @@ | |
</ItemGroup> | ||
|
||
|
||
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1' or '$(TargetFramework)'=='netcoreapp2.1'"> | ||
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1' or '$(TargetFramework)'=='netcoreapp2.1' or '$(TargetFramework)'=='net5' or '$(TargetFramework)'=='net6'"> | ||
Comment on lines
-65
to
+73
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Condition should be simplified to improve maintenance going forward. |
||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" /> | ||
<PackageReference Include="System.Collections.NonGeneric" Version="4.3.0" /> | ||
<PackageReference Include="CsQuery.NetStandard" Version="1.3.6.1" /> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
<PropertyGroup> | ||
<AssemblyName>Handlebars</AssemblyName> | ||
<ProjectGuid>9822C7B8-7E51-42BC-9A49-72A10491B202</ProjectGuid> | ||
<TargetFrameworks>netstandard1.3;netstandard2.0;netstandard2.1</TargetFrameworks> | ||
<TargetFrameworks>netstandard1.3;netstandard2.0;netstandard2.1;net5;net6</TargetFrameworks> | ||
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net451;net452;net46</TargetFrameworks> | ||
<Version>2.0.0</Version> | ||
<RootNamespace>HandlebarsDotNet</RootNamespace> | ||
|
@@ -66,9 +66,24 @@ | |
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)'=='net5'"> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(TargetFramework)'=='net6'"> | ||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" /> | ||
</ItemGroup> | ||
|
||
Comment on lines
+69
to
+76
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Microsoft.CSharp is a polyfill package hence this dependency should be able to be removed on the newer frameworks. |
||
<ItemGroup> | ||
<PackageReference Include="ExpressionShortcuts" Version="1.0.4.39" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition="'$(ContinuousIntegrationBuild)' != 'true'"> | ||
<PackageReference Include="SonarAnalyzer.CSharp" Version="8.33.0.40503"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
Comment on lines
+80
to
+86
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be bundled in existing item group |
||
|
||
<ItemGroup Condition="'$(ContinuousIntegrationBuild)' == 'true'"> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" /> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be checked if this is really needed.