Skip to content

Commit

Permalink
Update dependencies; use net6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fakefeik committed Nov 11, 2021
1 parent d60646b commit b05021c
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"jetbrains.resharper.globaltools": {
"version": "2020.3.3",
"version": "2021.2.2",
"commands": [
"jb"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v2.0.105 - 2021.11.11
- Use net6.0 in cli tool
- Update Roslyn dependencies

## v2.0.104 - 2021.10.28
- treat long type as number in javascript according to serializers' behavior (e.g. JSON.NET & Netwonsoft.JSON)

Expand Down
1 change: 1 addition & 0 deletions Common.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_FIELD_ATTRIBUTE_ON_SAME_LINE/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/PLACE_CONSTRUCTOR_INITIALIZER_ON_SAME_LINE/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/INDENT_CASE_FROM_SWITCH/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_WITHIN_SINGLE_LINE_ARRAY_INITIALIZER_BRACES/@EntryValue">False</s:Boolean>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=AP/@EntryIndexedValue">AP</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=AB/@EntryIndexedValue">AB</s:String>
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=TTN/@EntryIndexedValue">TTN</s:String>
Expand Down
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.4.244" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>SkbKontur.TypeScript.ContractGenerator.Cli</AssemblyName>
<RootNamespace>SkbKontur.TypeScript.ContractGenerator.Cli</RootNamespace>
<PackageId>SkbKontur.TypeScript.ContractGenerator.Cli</PackageId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.9.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.0.1" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions TypeScript.ContractGenerator.Tests/CliTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class CliTest
[Test]
public void CliGenerated()
{
RunCmdCommand($"dotnet {pathToSlnDirectory}/TypeScript.ContractGenerator.Cli/bin/{configuration}/net5.0/SkbKontur.TypeScript.ContractGenerator.Cli.dll " +
$"-a {pathToSlnDirectory}/AspNetCoreExample.Generator/bin/{configuration}/net5.0/AspNetCoreExample.Generator.dll " +
RunCmdCommand($"dotnet {pathToSlnDirectory}/TypeScript.ContractGenerator.Cli/bin/{configuration}/net6.0/SkbKontur.TypeScript.ContractGenerator.Cli.dll " +
$"-a {pathToSlnDirectory}/AspNetCoreExample.Generator/bin/{configuration}/net6.0/AspNetCoreExample.Generator.dll " +
$"-o {TestContext.CurrentContext.TestDirectory}/cliOutput " +
"--nullabilityMode Optimistic " +
"--lintMode TsLint " +
Expand All @@ -28,7 +28,7 @@ public void CliGenerated()
[Test]
public void RoslynCliGenerated()
{
RunCmdCommand($"dotnet {pathToSlnDirectory}/TypeScript.ContractGenerator.Cli/bin/{configuration}/net5.0/SkbKontur.TypeScript.ContractGenerator.Cli.dll " +
RunCmdCommand($"dotnet {pathToSlnDirectory}/TypeScript.ContractGenerator.Cli/bin/{configuration}/net6.0/SkbKontur.TypeScript.ContractGenerator.Cli.dll " +
$"-d {pathToSlnDirectory}/AspNetCoreExample.Api;{pathToSlnDirectory}/AspNetCoreExample.Generator " +
$"-a {typeof(ControllerBase).Assembly.Location} " +
$"-o {TestContext.CurrentContext.TestDirectory}/roslynCliOutput " +
Expand Down
4 changes: 2 additions & 2 deletions TypeScript.ContractGenerator.Tests/TestRewriteTypeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public void Rewrite()
.Project;

var compilation = project.GetCompilationAsync().GetAwaiter().GetResult()!
.AddReferences(AdhocProject.GetMetadataReferences())
.AddReferences(MetadataReference.CreateFromFile(typeof(ControllerBase).Assembly.Location));
.AddReferences(AdhocProject.GetMetadataReferences())
.AddReferences(MetadataReference.CreateFromFile(typeof(ControllerBase).Assembly.Location));

TypeInfoRewriter.Types.Clear();
var tree = compilation.SyntaxTrees.Single(x => x.FilePath.Contains("ApiControllerTypeBuildingContext.cs"));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net472;netcoreapp3.1;net5.0</TargetFrameworks>
<TargetFrameworks>net48;net6.0</TargetFrameworks>
<AssemblyName>SkbKontur.TypeScript.ContractGenerator.Tests</AssemblyName>
<RootNamespace>SkbKontur.TypeScript.ContractGenerator.Tests</RootNamespace>
</PropertyGroup>
Expand All @@ -13,10 +13,10 @@

<ItemGroup>
<PackageReference Include="DiffPlex" Version="1.7.0" />
<PackageReference Include="FluentAssertions" Version="5.10.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1" />
<PackageReference Include="NUnit" Version="3.13.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="FluentAssertions" Version="6.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ skip_commits:
files:
- '**/*.md'

image: Visual Studio 2019
image: Visual Studio 2022

init:
- cmd: git config --global core.autocrlf false
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "5.0.302",
"version": "6.0.100",
"rollForward": "latestFeature"
}
}

0 comments on commit b05021c

Please sign in to comment.