Skip to content

Commit

Permalink
updated to .net 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ENDAVA\mzorec committed Jan 8, 2024
1 parent 568f25a commit 12882b2
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.4.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions src/FlubuCore.LiteDb/FlubuCore.LiteDb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="LiteDB" Version="5.0.11" />
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.0" />
<PackageReference Include="LiteDB" Version="5.0.17" />
<PackageReference Include="Microsoft.Extensions.Options" Version="8.0.0" />
</ItemGroup>

</Project>
20 changes: 10 additions & 10 deletions src/FlubuCore.Tests/FlubuCore.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
<WarningsAsErrors>true</WarningsAsErrors>
Expand All @@ -12,9 +12,9 @@
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<Version>5.1.8</Version>
<AssemblyVersion>5.1.8.0</AssemblyVersion>
<FileVersion>5.1.8.0</FileVersion>
<Version>8.0.0</Version>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<FileVersion>8.0.0.0</FileVersion>
<CodeAnalysisRuleSet>..\stylecop.ruleset</CodeAnalysisRuleSet>
<NoWarn>1701;1702;1705;1591;1573;1572;1574</NoWarn>
</PropertyGroup>
Expand Down Expand Up @@ -80,20 +80,20 @@
<ProjectReference Include="..\FlubuCore\FlubuCore.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="4.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.DotNet.InternalAbstractions" Version="1.0.500-preview2-1-003177" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="7.0.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="moq" Version="4.18.4" />
</ItemGroup>
<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/FlubuCore.Tool/FlubuCore.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<PackAsTool>true</PackAsTool>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
<ToolCommandName>flubu</ToolCommandName>
<PackageTags>dotnet;flubu;flubucore;build;builder;script;buildscript;automation;VisualStudio</PackageTags>
<Authors>Marko Zorec;Zoro Zorec;Micheal Tsai</Authors>
Expand All @@ -21,9 +21,9 @@
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<AssemblyVersion>5.1.8.0</AssemblyVersion>
<FileVersion>5.1.8.0</FileVersion>
<Version>5.1.8</Version>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<FileVersion>8.0.0.0</FileVersion>
<Version>8.0.0</Version>
<CodeAnalysisRuleSet>..\stylecop.ruleset</CodeAnalysisRuleSet>
<NoWarn>1701;1702;1705;1591;1573;1572;1574</NoWarn>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/FlubuCore.WebApi.Client/FlubuCore.WebApi.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

Detailed examples can be found at: https://github.com/dotnetcore/FlubuCore.Examples
</Description>
<Version>5.1.8</Version><AssemblyVersion>5.1.8.0</AssemblyVersion><FileVersion>5.1.8.0</FileVersion></PropertyGroup>
<Version>8.0.0</Version><AssemblyVersion>8.0.0.0</AssemblyVersion><FileVersion>8.0.0.0</FileVersion></PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net462|AnyCPU'">
<DocumentationFile>bin\Debug\net462\FlubuCore.WebApi.Client.xml</DocumentationFile>
Expand All @@ -36,7 +36,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion src/FlubuCore.WebApi.Model/FlubuCore.WebApi.Model.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

Detailed examples can be found at: https://github.com/dotnetcore/FlubuCore.Examples
</Description>
<Version>5.1.8</Version><AssemblyVersion>5.1.8.0</AssemblyVersion><FileVersion>5.1.8.0</FileVersion></PropertyGroup>
<Version>8.0.0</Version><AssemblyVersion>8.0.0.0</AssemblyVersion><FileVersion>8.0.0.0</FileVersion></PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>bin\Debug\netstandard2.0\FlubuCore.WebApi.Model.xml</DocumentationFile>
Expand Down
8 changes: 4 additions & 4 deletions src/FlubuCore.WebApi.Tests/FlubuCore.WebApi.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<WarningsAsErrors>true</WarningsAsErrors>
<CodeAnalysisRuleSet>..\stylecop.ruleset</CodeAnalysisRuleSet>
<NoWarn>1701;1702;1705;1591;1573;1572;1574</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="LiteDB" Version="5.0.11" />
<PackageReference Include="LiteDB" Version="5.0.17" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="3.1.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
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;net462;net5.0;net7.0</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net462;net5.0;net7.0;net8.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net462'">
Expand Down
19 changes: 12 additions & 7 deletions src/FlubuCore.WebApi/FlubuCore.WebApi.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net462;net5.0;net7.0;</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net462;net5.0;net7.0;net8.0</TargetFrameworks>
<WarningsAsErrors>true</WarningsAsErrors>
<CodeAnalysisRuleSet>..\stylecop.ruleset</CodeAnalysisRuleSet>
<NoWarn>1701;1702;1705;1591;1573;1572;1574</NoWarn>
<Version>5.1.8</Version><AssemblyVersion>5.1.8.0</AssemblyVersion><FileVersion>5.1.8.0</FileVersion></PropertyGroup>
<Version>8.0.0</Version><AssemblyVersion>8.0.0.0</AssemblyVersion><FileVersion>8.0.0.0</FileVersion></PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<ReferringTargetFrameworkForProjectReferences>.NETStandard,Version=v2.0</ReferringTargetFrameworkForProjectReferences>
<DefineConstants>NETCOREAPP3_1;</DefineConstants>
Expand Down Expand Up @@ -82,8 +82,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="FluentValidation.AspNetCore" Version="8.6.2" />
<PackageReference Include="LiteDB" Version="5.0.11" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.25.1" />
<PackageReference Include="LiteDB" Version="5.0.17" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.0.3" />
<PackageReference Include="Octokit" Version="0.47.0" />
<PackageReference Include="Serilog.Sinks.LiteDB" Version="1.0.29" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
Expand Down Expand Up @@ -115,17 +117,20 @@
<ProjectReference Include="..\FlubuCore.LiteDb\FlubuCore.LiteDb.csproj" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<ProjectReference Include="..\FlubuCore.LiteDb\FlubuCore.LiteDb.csproj" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<ProjectReference Include="..\FlubuCore.LiteDb\FlubuCore.LiteDb.csproj">
<SetTargetFramework>TargetFramework=net462</SetTargetFramework>
</ProjectReference>
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.1" />
Expand Down
2 changes: 1 addition & 1 deletion src/FlubuCore.WebApi/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"JwtOptions": {
"Issuer": "FlubuCoreWebApi",
"Audience": "FlubuCoreConsole",
"SecretKey": "fasfgvgl#@%VZA5@!EDDA@R$E", //// Secret key is generated randomly if it is deployed with flubu script. We would advise to store secret key in enviroment variable.
"SecretKey": "fasfgvgl#@%VZA5@!EDDA@R$ESF@cdc__das_3", //// Secret key is generated randomly if it is deployed with flubu script. We would advise to store secret key in enviroment variable.
"ValidFor": "5" //// Time in minuts for how long access token is valid.
},

Expand Down
2 changes: 1 addition & 1 deletion src/FlubuCore/Commanding/FlubuCommandParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private int PrepareDefaultArguments()
_parsed.Help = false;
_parsed.MainCommands = _command.Values.Where(x => !x.StartsWith("/")).ToList();
_parsed.Script = _scriptPath.Value();
_parsed.AssemblyDirectories = _assemblyDirectories.Values;
_parsed.AssemblyDirectories = _assemblyDirectories.Values.ToList();
if (_targetsToExecute.HasValue())
{
_parsed.TargetsToExecute = _targetsToExecute.Value().Split(',').ToList();
Expand Down

0 comments on commit 12882b2

Please sign in to comment.