diff --git a/.wakatime-project b/.wakatime-project index 590c14b..84d8e18 100644 --- a/.wakatime-project +++ b/.wakatime-project @@ -1 +1 @@ -POC .NET template \ No newline at end of file +POC .NET template diff --git a/POCTemplate.sln b/POCBlockchain.sln similarity index 83% rename from POCTemplate.sln rename to POCBlockchain.sln index 5eebf2d..64df5cc 100644 --- a/POCTemplate.sln +++ b/POCBlockchain.sln @@ -1,15 +1,15 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Src", "Src", "{CCFE3371-AE28-446A-B8D1-8D1027A2D23B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "POCTemplate", "Src\POCTemplate\POCTemplate.csproj", "{5E214FC8-0D9B-4DD7-B952-DA994D094EC4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "POCBlockchain", "Src\POCBlockchain\POCBlockchain.csproj", "{5E214FC8-0D9B-4DD7-B952-DA994D094EC4}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{279F38EF-A29A-48E2-9201-BA9D5BACAF5B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "POCTemplate.Tests", "Tests\POCTemplate.Tests\POCTemplate.Tests.csproj", "{43CA48B4-6FC2-425E-82AF-19B643029326}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "POCBlockchain.Tests", "Tests\POCBlockchain.Tests\POCBlockchain.Tests.csproj", "{43CA48B4-6FC2-425E-82AF-19B643029326}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/README.md b/README.md index f168a7c..bfd6f7d 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,29 @@ -# PoC .NET template +# Project Title -A template repository for .NET PoC (Proof of Concept) +One Paragraph of project description goes here. ---- +## Getting Started -- Create a new repository using this one as a template (click the green button at the top right of this page). -- Edit [README.md](README.md) file to align with your PoC. -- Change the solution and projects to suit your investigation/test/concept. +These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. -## Installation Guide +### Prerequisites -Follow these steps to set up the project. This guide includes installation scripts for PowerShell, Shell/Bash, and Batch. +What things you need to install the software and how to install them -### PowerShell - -```ps -.\install.ps1 +``` +Give examples ``` -### Shell/Bash +### Installing -```bash -./install.sh -``` +A step by step series of examples that tell you how to get a development env running -### Batch +Say what the step will be -```batch -.\install.bat ``` +Give the example +``` + +Repeat until finished + +End with an example of getting some data out of the system or using it for a little demo diff --git a/README.template.md b/README.template.md deleted file mode 100644 index bbe79a2..0000000 --- a/README.template.md +++ /dev/null @@ -1,29 +0,0 @@ -# Project Title - -One Paragraph of project description goes here. - -## Getting Started - -These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system. - -### Prerequisites - -What things you need to install the software and how to install them - -``` -Give examples -``` - -### Installing - -A step by step series of examples that tell you how to get a development env running - -Say what the step will be - -``` -Give the example -``` - -Repeat until finished - -End with an example of getting some data out of the system or using it for a little demo \ No newline at end of file diff --git a/Src/POCTemplate/POCTemplate.csproj b/Src/POCBlockchain/POCBlockchain.csproj similarity index 84% rename from Src/POCTemplate/POCTemplate.csproj rename to Src/POCBlockchain/POCBlockchain.csproj index 2150e37..91b464a 100644 --- a/Src/POCTemplate/POCTemplate.csproj +++ b/Src/POCBlockchain/POCBlockchain.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/Src/POCTemplate/Program.cs b/Src/POCBlockchain/Program.cs similarity index 88% rename from Src/POCTemplate/Program.cs rename to Src/POCBlockchain/Program.cs index a01014d..e2ee0fc 100644 --- a/Src/POCTemplate/Program.cs +++ b/Src/POCBlockchain/Program.cs @@ -1,4 +1,4 @@ -namespace POCTemplate; +namespace POCBlockchain; internal static class Program { diff --git a/Tests/POCTemplate.Tests/POCTemplate.Tests.csproj b/Tests/POCBlockchain.Tests/POCBlockchain.Tests.csproj similarity index 92% rename from Tests/POCTemplate.Tests/POCTemplate.Tests.csproj rename to Tests/POCBlockchain.Tests/POCBlockchain.Tests.csproj index 25b1502..a6c5f50 100644 --- a/Tests/POCTemplate.Tests/POCTemplate.Tests.csproj +++ b/Tests/POCBlockchain.Tests/POCBlockchain.Tests.csproj @@ -28,7 +28,7 @@ - + diff --git a/Tests/POCTemplate.Tests/UnitTest1.cs b/Tests/POCBlockchain.Tests/UnitTest1.cs similarity index 87% rename from Tests/POCTemplate.Tests/UnitTest1.cs rename to Tests/POCBlockchain.Tests/UnitTest1.cs index 9e1df13..2b73824 100644 --- a/Tests/POCTemplate.Tests/UnitTest1.cs +++ b/Tests/POCBlockchain.Tests/UnitTest1.cs @@ -1,6 +1,6 @@ using FluentAssertions; -namespace POCTemplate.Tests; +namespace POCBlockchain.Tests; public class UnitTest1 { diff --git a/_config.yml b/_config.yml index f3b9ae4..548158b 100644 --- a/_config.yml +++ b/_config.yml @@ -1,4 +1,4 @@ theme: jekyll-theme-cayman title: PoC .NET - template description: 🔬 Proof of Concept template repository for .NET -show_downloads: true \ No newline at end of file +show_downloads: true diff --git a/install.bat b/install.bat deleted file mode 100644 index 197e18d..0000000 --- a/install.bat +++ /dev/null @@ -1 +0,0 @@ -powershell -ExecutionPolicy Bypass -File install.ps1 \ No newline at end of file diff --git a/install.ps1 b/install.ps1 deleted file mode 100644 index c8e45d9..0000000 --- a/install.ps1 +++ /dev/null @@ -1,35 +0,0 @@ -$POCName = Read-Host -Prompt 'POC name (readable version)' -$MainProjectFile = "Src/POCTemplate/POCTemplate.csproj" -$UnitTestProjectFile = "Tests/POCTemplate.Tests/POCTemplate.Tests.csproj" -$MainDir = "Src/POCTemplate" -$UnitTestDir = "Tests/POCTemplate.Tests" - -rm README.md -mv "README.template.md" "README.md" - -(Get-Content README.md) | ForEach-Object {$_ -replace "POCTemplate", $POCName} | Set-Content README.md -(Get-Content .wakatime-project) | ForEach-Object {$_ -replace "POCTemplate", "$POCName"} | Set-Content .wakatime-project -(Get-Content _config.yml) | ForEach-Object {$_ -replace "POCTemplate", $POCName} | Set-Content _config.yml - -(Get-ChildItem -Recurse -Include *.cs*) | ForEach-Object { - $Content = Get-Content $_ - $Content = $Content -replace "POCTemplate", $POCName - Set-Content -Path $_.fullname -Value $Content -} - -(Get-ChildItem -Recurse -Include *.csproj*) | ForEach-Object { - $Content = Get-Content $_ - $Content = $Content -replace "POCTemplate", $POCName - Set-Content -Path $_.fullname -Value $Content -} - -(Get-Content POCTemplate.sln) | ForEach-Object {$_ -replace "POCTemplate", $POCName} | Set-Content POCTemplate.sln -Rename-Item -Path ".\POCTemplate.sln" ".\$POCName.sln" -Rename-Item -Path $MainProjectFile -NewName "$POCName.csproj" -Rename-Item -Path $UnitTestProjectFile -NewName "$POCName.Tests.csproj" -Rename-Item -Path $MainDir $POCName -Rename-Item -Path $UnitTestDir "$POCName.Tests" - -Remove-Item install.bat -Remove-Item install.ps1 -Remove-Item install.sh \ No newline at end of file diff --git a/install.sh b/install.sh deleted file mode 100644 index 0812fd6..0000000 --- a/install.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -read -p 'POC name (readable version): ' POCName - -MainProjectFile="Src/POCTemplate/POCTemplate.csproj" -UnitTestProjectFile="Tests/POCTemplate.Tests/POCTemplate.Tests.csproj" -MainDir="Src/POCTemplate" -UnitTestDir="Tests/POCTemplate.Tests" - -rm README.md -mv "README.template.md" "README.md" - -sed -i "s/POCTemplate/$POCName/g" README.md -sed -i "s/POCTemplate/$POCName/g" .wakatime-project -sed -i "s/POCTemplate/$POCName/g" _config.yml - -for file in $(find . -type f -name '*.cs*'); do - sed -i "s/POCTemplate/$POCName/g" "$file" -done - -for file in $(find . -type f -name '*.csproj*'); do - sed -i "s/POCTemplate/$POCName/g" "$file" -done - -sed -i "s/POCTemplate/$POCName/" "POCTemplate.sln" -mv "POCTemplate.sln" "$POCName.sln" -mv "$MainProjectFile" "$POCName.csproj" -mv "$UnitTestProjectFile" "$POCName.Tests.csproj" -mv "$MainDir" "$POCName" -mv "$UnitTestDir" "$POCName.Tests" - -rm install.bat -rm install.ps1 -rm install.sh \ No newline at end of file