Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Add support for .NET 6 projects with Docker image #1157

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .azure-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ variables:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
steps:
- task: DotNetCoreInstaller@1
displayName: 'Use .NET Core sdk 5.0.x'
displayName: 'Use .NET Core sdk 6.0.x'
inputs:
version: 5.0.x
version: 6.0.x

- bash: echo NugetVersion is $NugetVersion; export NugetVersion
displayName: 'export NugetVersion into env vars'
Expand Down
3 changes: 2 additions & 1 deletion CodeAnalysisRules.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<RuleSet Name="CodeProjects" Description="Code analysis rules for NuKeeper Code." ToolsVersion="15.0">
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
<Rule Id="CA1303" Action="None" />
<Rule Id="CA1305" Action="None" />
<Rule Id="CA2000" Action="None" />
<Rule Id="CA2007" Action="None" />
</Rules>
</RuleSet>
</RuleSet>
5 changes: 5 additions & 0 deletions Docker/SDK6.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0-focal
ARG NUKEEPER_VERSION=0.35.0
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this would warrant a 0.36.0 bump if this PR gets merged. But not sure on all the interconnecting pieces.

RUN dotnet tool install --global NuKeeper --version $NUKEEPER_VERSION
ENV PATH="${PATH}:/root/.dotnet/tools"
ENTRYPOINT ["nukeeper"]
2 changes: 1 addition & 1 deletion NuKeeper/NuKeeper.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<PackAsTool>true</PackAsTool>
<PackageId>nukeeper</PackageId>
Expand Down