Skip to content

Commit 92cab3c

Browse files
author
Bart Koelman
committed
Update to .NET Core 3.1
1 parent 9992a97 commit 92cab3c

18 files changed

+489
-84
lines changed

.gitignore

+371-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,372 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
##
4+
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5+
6+
# User-specific files
7+
*.rsuser
8+
*.suo
9+
*.user
10+
*.userosscache
11+
*.sln.docstates
12+
13+
# User-specific files (MonoDevelop/Xamarin Studio)
14+
*.userprefs
15+
16+
# Mono auto generated files
17+
mono_crash.*
18+
19+
# Build results
20+
[Dd]ebug/
21+
[Dd]ebugPublic/
22+
[Rr]elease/
23+
[Rr]eleases/
24+
x64/
25+
x86/
26+
[Ww][Ii][Nn]32/
27+
[Aa][Rr][Mm]/
28+
[Aa][Rr][Mm]64/
29+
bld/
30+
[Bb]in/
31+
[Oo]bj/
32+
[Ll]og/
33+
[Ll]ogs/
34+
35+
# Visual Studio 2015/2017 cache/options directory
36+
.vs/
37+
# Uncomment if you have tasks that create the project's static files in wwwroot
38+
#wwwroot/
39+
40+
# Visual Studio 2017 auto generated files
41+
Generated\ Files/
42+
43+
# MSTest test Results
44+
[Tt]est[Rr]esult*/
45+
[Bb]uild[Ll]og.*
46+
47+
# NUnit
48+
*.VisualState.xml
49+
TestResult.xml
50+
nunit-*.xml
51+
52+
# Build Results of an ATL Project
53+
[Dd]ebugPS/
54+
[Rr]eleasePS/
55+
dlldata.c
56+
57+
# Benchmark Results
58+
BenchmarkDotNet.Artifacts/
59+
60+
# .NET Core
61+
project.lock.json
62+
project.fragment.lock.json
63+
artifacts/
64+
65+
# ASP.NET Scaffolding
66+
ScaffoldingReadMe.txt
67+
68+
# StyleCop
69+
StyleCopReport.xml
70+
71+
# Files built by Visual Studio
72+
*_i.c
73+
*_p.c
74+
*_h.h
75+
*.ilk
76+
*.meta
77+
*.obj
78+
*.iobj
79+
*.pch
80+
*.pdb
81+
*.ipdb
82+
*.pgc
83+
*.pgd
84+
*.rsp
85+
*.sbr
86+
*.tlb
87+
*.tli
88+
*.tlh
89+
*.tmp
90+
*.tmp_proj
91+
*_wpftmp.csproj
92+
*.log
93+
*.vspscc
94+
*.vssscc
95+
.builds
96+
*.pidb
97+
*.svclog
98+
*.scc
99+
100+
# MacOS file systems
101+
**/.DS_STORE
102+
103+
# Chutzpah Test files
104+
_Chutzpah*
105+
106+
# Visual C++ cache files
107+
ipch/
108+
*.aps
109+
*.ncb
110+
*.opendb
111+
*.opensdf
112+
*.sdf
113+
*.cachefile
114+
*.VC.db
115+
*.VC.VC.opendb
116+
117+
# Visual Studio profiler
118+
*.psess
119+
*.vsp
120+
*.vspx
121+
*.sap
122+
123+
# Visual Studio Trace Files
124+
*.e2e
125+
126+
# TFS 2012 Local Workspace
127+
$tf/
128+
129+
# Guidance Automation Toolkit
130+
*.gpState
131+
132+
# ReSharper is a .NET coding add-in
133+
_ReSharper*/
134+
*.[Rr]e[Ss]harper
135+
*.DotSettings.user
136+
137+
# JetBrains Rider
138+
.idea/
139+
140+
# TeamCity is a build add-in
141+
_TeamCity*
142+
143+
# DotCover is a Code Coverage Tool
144+
*.dotCover
145+
146+
# AxoCover is a Code Coverage Tool
147+
.axoCover/*
148+
!.axoCover/settings.json
149+
150+
# Coverlet is a free, cross platform Code Coverage Tool
151+
coverage*[.json, .xml, .info]
152+
153+
# Visual Studio code coverage results
154+
*.coverage
155+
*.coveragexml
156+
157+
# NCrunch
158+
_NCrunch_*
159+
.*crunch*.local.xml
160+
nCrunchTemp_*
161+
162+
# MightyMoose
163+
*.mm.*
164+
AutoTest.Net/
165+
166+
# Web workbench (sass)
167+
.sass-cache/
168+
169+
# Installshield output folder
170+
[Ee]xpress/
171+
172+
# DocProject is a documentation generator add-in
173+
DocProject/buildhelp/
174+
DocProject/Help/*.HxT
175+
DocProject/Help/*.HxC
176+
DocProject/Help/*.hhc
177+
DocProject/Help/*.hhk
178+
DocProject/Help/*.hhp
179+
DocProject/Help/Html2
180+
DocProject/Help/html
181+
182+
# Click-Once directory
183+
publish/
184+
185+
# Publish Web Output
186+
*.[Pp]ublish.xml
187+
*.azurePubxml
188+
# Note: Comment the next line if you want to checkin your web deploy settings,
189+
# but database connection strings (with potential passwords) will be unencrypted
190+
*.pubxml
191+
*.publishproj
192+
193+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
194+
# checkin your Azure Web App publish settings, but sensitive information contained
195+
# in these scripts will be unencrypted
196+
PublishScripts/
197+
198+
# NuGet Packages
199+
*.nupkg
200+
# NuGet Symbol Packages
201+
*.snupkg
202+
# The packages folder can be ignored because of Package Restore
203+
**/[Pp]ackages/*
204+
# except build/, which is used as an MSBuild target.
205+
!**/[Pp]ackages/build/
206+
# Uncomment if necessary however generally it will be regenerated when needed
207+
#!**/[Pp]ackages/repositories.config
208+
# NuGet v3's project.json files produces more ignorable files
209+
*.nuget.props
210+
*.nuget.targets
211+
212+
# Microsoft Azure Build Output
213+
csx/
214+
*.build.csdef
215+
216+
# Microsoft Azure Emulator
217+
ecf/
218+
rcf/
219+
220+
# Windows Store app package directories and files
221+
AppPackages/
222+
BundleArtifacts/
223+
Package.StoreAssociation.xml
224+
_pkginfo.txt
225+
*.appx
226+
*.appxbundle
227+
*.appxupload
228+
229+
# Visual Studio cache files
230+
# files ending in .cache can be ignored
231+
*.[Cc]ache
232+
# but keep track of directories ending in .cache
233+
!?*.[Cc]ache/
234+
235+
# Others
236+
ClientBin/
237+
~$*
238+
*~
239+
*.dbmdl
240+
*.dbproj.schemaview
241+
*.jfm
242+
*.pfx
243+
*.publishsettings
244+
orleans.codegen.cs
245+
246+
# Including strong name files can present a security risk
247+
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
248+
#*.snk
249+
250+
# Since there are multiple workflows, uncomment next line to ignore bower_components
251+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
252+
#bower_components/
253+
254+
# RIA/Silverlight projects
255+
Generated_Code/
256+
257+
# Backup & report files from converting an old project file
258+
# to a newer Visual Studio version. Backup files are not needed,
259+
# because we have git ;-)
260+
_UpgradeReport_Files/
261+
Backup*/
262+
UpgradeLog*.XML
263+
UpgradeLog*.htm
264+
ServiceFabricBackup/
265+
*.rptproj.bak
266+
267+
# SQL Server files
268+
*.mdf
269+
*.ldf
270+
*.ndf
271+
272+
# Business Intelligence projects
273+
*.rdl.data
274+
*.bim.layout
275+
*.bim_*.settings
276+
*.rptproj.rsuser
277+
*- [Bb]ackup.rdl
278+
*- [Bb]ackup ([0-9]).rdl
279+
*- [Bb]ackup ([0-9][0-9]).rdl
280+
281+
# Microsoft Fakes
282+
FakesAssemblies/
283+
284+
# GhostDoc plugin setting file
285+
*.GhostDoc.xml
286+
287+
# Node.js Tools for Visual Studio
288+
.ntvs_analysis.dat
289+
node_modules/
290+
291+
# Visual Studio 6 build log
292+
*.plg
293+
294+
# Visual Studio 6 workspace options file
295+
*.opt
296+
297+
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
298+
*.vbw
299+
300+
# Visual Studio LightSwitch build output
301+
**/*.HTMLClient/GeneratedArtifacts
302+
**/*.DesktopClient/GeneratedArtifacts
303+
**/*.DesktopClient/ModelManifest.xml
304+
**/*.Server/GeneratedArtifacts
305+
**/*.Server/ModelManifest.xml
306+
_Pvt_Extensions
307+
308+
# Paket dependency manager
309+
.paket/paket.exe
310+
paket-files/
311+
312+
# FAKE - F# Make
313+
.fake/
314+
315+
# CodeRush personal settings
316+
.cr/personal
317+
318+
# Python Tools for Visual Studio (PTVS)
319+
__pycache__/
320+
*.pyc
321+
322+
# Cake - Uncomment if you are using it
323+
# tools/**
324+
# !tools/packages.config
325+
326+
# Tabs Studio
327+
*.tss
328+
329+
# Telerik's JustMock configuration file
330+
*.jmconfig
331+
332+
# BizTalk build output
333+
*.btp.cs
334+
*.btm.cs
335+
*.odx.cs
336+
*.xsd.cs
337+
338+
# OpenCover UI analysis results
339+
OpenCover/
340+
341+
# Azure Stream Analytics local run output
342+
ASALocalRun/
343+
344+
# MSBuild Binary and Structured Log
345+
*.binlog
346+
347+
# NVidia Nsight GPU debugger configuration file
348+
*.nvuser
349+
350+
# MFractors (Xamarin productivity tool) working folder
351+
.mfractor/
352+
353+
# Local History for Visual Studio
354+
.localhistory/
355+
356+
# BeatPulse healthcheck temp database
357+
healthchecksdb
358+
359+
# Backup folder for Package Reference Convert tool in Visual Studio 2017
360+
MigrationBackup/
361+
362+
# Ionide (cross platform F# VS Code tools) working folder
363+
.ionide/
364+
365+
# Fody - auto-generated XML schema
366+
FodyWeavers.xsd
367+
368+
# Sqlite example databases
369+
*.db
370+
1371
variables.env
2-
bin/
3-
obj/
4-
results/
372+
results/

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM microsoft/dotnet:2.1-sdk AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build
22
WORKDIR /app
33

44
# copy csproj and restore as distinct layers
@@ -12,7 +12,7 @@ COPY app/. ./dotnetapp/
1212
WORKDIR /app/dotnetapp
1313
RUN dotnet publish -c Release -o out
1414

15-
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS runtime
15+
FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS runtime
1616
WORKDIR /app
1717
COPY --from=build /app/dotnetapp/out ./
18-
ENTRYPOINT ["dotnet", "app.dll"]
18+
ENTRYPOINT ["dotnet", "app.dll"]

0 commit comments

Comments
 (0)