Skip to content

Commit

Permalink
Added dotnet base
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinc committed Dec 13, 2023
1 parent a095146 commit d5f4840
Show file tree
Hide file tree
Showing 55 changed files with 578 additions and 14 deletions.
25 changes: 25 additions & 0 deletions dotnet/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.idea
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
13 changes: 13 additions & 0 deletions dotnet/.idea/.idea.BSB/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dotnet/.idea/.idea.BSB/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dotnet/.idea/.idea.BSB/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dotnet/.idea/.idea.BSB/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions dotnet/.idea/.idea.BSB/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions dotnet/BSB.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BSB", "BSB\BSB.csproj", "{B613E86E-57C5-49ED-9AE4-56B2F5CC9E52}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BetterServiceBase", "BetterServiceBase\BetterServiceBase.csproj", "{8F3AD3A2-8E2D-488F-ACA3-B16518C2A4EE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B613E86E-57C5-49ED-9AE4-56B2F5CC9E52}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B613E86E-57C5-49ED-9AE4-56B2F5CC9E52}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B613E86E-57C5-49ED-9AE4-56B2F5CC9E52}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B613E86E-57C5-49ED-9AE4-56B2F5CC9E52}.Release|Any CPU.Build.0 = Release|Any CPU
{8F3AD3A2-8E2D-488F-ACA3-B16518C2A4EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8F3AD3A2-8E2D-488F-ACA3-B16518C2A4EE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F3AD3A2-8E2D-488F-ACA3-B16518C2A4EE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8F3AD3A2-8E2D-488F-ACA3-B16518C2A4EE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
9 changes: 9 additions & 0 deletions dotnet/BSB/BSB.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
5 changes: 5 additions & 0 deletions dotnet/BSB/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace BSB;

public class Class1
{
}
61 changes: 61 additions & 0 deletions dotnet/BSB/obj/BSB.csproj.nuget.dgspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"format": 1,
"restore": {
"/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/BSB.csproj": {}
},
"projects": {
"/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/BSB.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/BSB.csproj",
"projectName": "BSB",
"projectPath": "/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/BSB.csproj",
"packagesPath": "/home/mitchellr/.nuget/packages/",
"outputPath": "/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/mitchellr/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/home/mitchellr/.dotnet/sdk/6.0.404/RuntimeIdentifierGraph.json"
}
}
}
}
}
15 changes: 15 additions & 0 deletions dotnet/BSB/obj/BSB.csproj.nuget.g.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/mitchellr/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/mitchellr/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.6.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/home/mitchellr/.nuget/packages/" />
</ItemGroup>
</Project>
2 changes: 2 additions & 0 deletions dotnet/BSB/obj/BSB.csproj.nuget.g.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
22 changes: 22 additions & 0 deletions dotnet/BSB/obj/Debug/net6.0/BSB.AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("BSB")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("BSB")]
[assembly: System.Reflection.AssemblyTitleAttribute("BSB")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.

1 change: 1 addition & 0 deletions dotnet/BSB/obj/Debug/net6.0/BSB.AssemblyInfoInputs.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
06c03cd1a62928a8792c4baac24a35040fa8a3ca
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
is_global = true
build_property.TargetFramework = net6.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = BSB
build_property.ProjectDir = /home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/
8 changes: 8 additions & 0 deletions dotnet/BSB/obj/Debug/net6.0/BSB.GlobalUsings.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
Binary file added dotnet/BSB/obj/Debug/net6.0/BSB.assets.cache
Binary file not shown.
Binary file not shown.
66 changes: 66 additions & 0 deletions dotnet/BSB/obj/project.assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"version": 3,
"targets": {
"net6.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0": []
},
"packageFolders": {
"/home/mitchellr/.nuget/packages/": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/BSB.csproj",
"projectName": "BSB",
"projectPath": "/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/BSB.csproj",
"packagesPath": "/home/mitchellr/.nuget/packages/",
"outputPath": "/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/home/mitchellr/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net6.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0": {
"targetAlias": "net6.0",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/home/mitchellr/.dotnet/sdk/6.0.404/RuntimeIdentifierGraph.json"
}
}
}
}
8 changes: 8 additions & 0 deletions dotnet/BSB/obj/project.nuget.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "846PNqqcp/UMPpefQDVjVUSUeNezpWFigUdhxsBKbP6tN51Jgx6AT8hBftcsek+nliyefWyALGeK9gslUv2uNA==",
"success": true,
"projectFilePath": "/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/BSB.csproj",
"expectedPackageFiles": [],
"logs": []
}
1 change: 1 addition & 0 deletions dotnet/BSB/obj/project.packagespec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"restore":{"projectUniqueName":"/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/BSB.csproj","projectName":"BSB","projectPath":"/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/BSB.csproj","outputPath":"/home/mitchellr/_repos/BetterCorp/better-service-base/service-base/dotnet/BSB/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net6.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net6.0":{"targetAlias":"net6.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net6.0":{"targetAlias":"net6.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/home/mitchellr/.dotnet/sdk/6.0.404/RuntimeIdentifierGraph.json"}}
1 change: 1 addition & 0 deletions dotnet/BSB/obj/rider.project.restore.info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16993920343007420
9 changes: 0 additions & 9 deletions dotnet/BetterServiceBase.csproj

This file was deleted.

17 changes: 17 additions & 0 deletions dotnet/BetterServiceBase/BetterServiceBase.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>

<ItemGroup>
<Content Include="..\.dockerignore">
<Link>.dockerignore</Link>
</Content>
</ItemGroup>

</Project>
18 changes: 18 additions & 0 deletions dotnet/BetterServiceBase/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base
WORKDIR /app

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["BetterServiceBase/BetterServiceBase.csproj", "BetterServiceBase/"]
RUN dotnet restore "BetterServiceBase/BetterServiceBase.csproj"
COPY . .
WORKDIR "/src/BetterServiceBase"
RUN dotnet build "BetterServiceBase.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "BetterServiceBase.csproj" -c Release -o /app/publish /p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "BetterServiceBase.dll"]
3 changes: 3 additions & 0 deletions dotnet/BetterServiceBase/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// See https://aka.ms/new-console-template for more information

Console.WriteLine("Hello, World!");
Binary file not shown.
Loading

0 comments on commit d5f4840

Please sign in to comment.