Skip to content

Commit

Permalink
Upgrade R# SDK to 2021.2.0 (#33)
Browse files Browse the repository at this point in the history
* Upgrade R# SDK to 2021.2.0

* Gradle product version
  • Loading branch information
m7clarke authored Aug 19, 2021
1 parent cca5169 commit 16499f5
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 9 deletions.
9 changes: 8 additions & 1 deletion .nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@
"GitHubActions",
"GitLab",
"Jenkins",
"Rider",
"SpaceAutomation",
"TeamCity",
"Terminal",
"TravisCI"
"TravisCI",
"VisualStudio",
"VSCode"
]
},
"IsRiderHost": {
Expand All @@ -41,6 +44,10 @@
"type": "boolean",
"description": "Disables displaying the NUKE logo"
},
"Partition": {
"type": "string",
"description": "Partition to use on CI"
},
"Plan": {
"type": "boolean",
"description": "Shows the execution plan (HTML)"
Expand Down
6 changes: 5 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SdkVersion>2021.1.1</SdkVersion>
<SdkVersion>2021.2.0</SdkVersion>
</PropertyGroup>
<!-- https://jetbrains.slack.com/archives/CBZ36NH7C/p1628090127002200 -->
<PropertyGroup>
<MSBuildWarningsAsMessages>$(MSBuildWarningsAsMessages);MSB3277</MSBuildWarningsAsMessages>
</PropertyGroup>
</Project>
6 changes: 5 additions & 1 deletion build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ protected override void OnBuildInitialized()
.Requires(() => IsRiderHost)
.Executes(() =>
{
Gradle($"buildPlugin -PPluginVersion={ExtensionVersion} -PProductVersion={SdkVersion} -PDotNetOutputDirectory={OutputDirectory} -PDotNetProjectName={Project.Name}", customLogger:
// JetBrains is not very consistent in versioning
// https://github.com/olsh/resharper-structured-logging/issues/35#issuecomment-892764206
var productVersion = SdkVersion == "2021.2.0" ? "2021.2" : SdkVersion;
Gradle($"buildPlugin -PPluginVersion={ExtensionVersion} -PProductVersion={productVersion} -PDotNetOutputDirectory={OutputDirectory} -PDotNetProjectName={Project.Name}", customLogger:
(_, s) =>
{
// Gradle writes warnings to stderr
Expand Down
1 change: 1 addition & 0 deletions build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<NoWarn>CS0649;CS0169</NoWarn>
<NukeRootDirectory>..</NukeRootDirectory>
<NukeScriptDirectory>..</NukeScriptDirectory>
<NukeTelemetryVersion>1</NukeTelemetryVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<VersionPrefix>2021.1.0</VersionPrefix>
<TargetFramework>net472</TargetFramework>
<VersionPrefix>2021.2.0</VersionPrefix>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<PropertyGroup>
Expand All @@ -11,6 +11,6 @@
<RootNamespace>Resharper.ConfigurationSense</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Rider.SDK" Version="$(SdkVersion)" />
<PackageReference Include="JetBrains.Rider.SDK" Version="$(SdkVersion)" PrivateAssets="all" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net461</TargetFramework>
<VersionPrefix>2021.1.0</VersionPrefix>
<TargetFramework>net472</TargetFramework>
<VersionPrefix>2021.2.0</VersionPrefix>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<PropertyGroup>
<SonarQubeTestProject>false</SonarQubeTestProject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JetBrains.ReSharper.SDK" Version="$(SdkVersion)" />
<PackageReference Include="JetBrains.ReSharper.SDK" Version="$(SdkVersion)" PrivateAssets="all" />
</ItemGroup>
</Project>

0 comments on commit 16499f5

Please sign in to comment.