Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
seedysoft committed Jun 9, 2024
1 parent eed79f3 commit 1fd79ad
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Seedysoft.Tests.sln
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Seedysoft.OutboxLib", "src\
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "doc", "doc", "{623B6345-334F-4699-B2FB-B928EBC6471B}"
ProjectSection(SolutionItems) = preProject
doc\DotnetToolsReference.md = doc\DotnetToolsReference.md
doc\DotnetInstallDocumentation.md = doc\DotnetInstallDocumentation.md
doc\MigrationCommands.md = doc\MigrationCommands.md
doc\PublishCommands.md = doc\PublishCommands.md
EndProjectSection
Expand Down
1 change: 0 additions & 1 deletion Seedysoft.sln
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "doc", "doc", "{623B6345-334F-4699-B2FB-B928EBC6471B}"
ProjectSection(SolutionItems) = preProject
doc\DotnetInstallDocumentation.md = doc\DotnetInstallDocumentation.md
doc\DotnetToolsReference.md = doc\DotnetToolsReference.md
doc\MigrationCommands.md = doc\MigrationCommands.md
doc\PublishCommands.md = doc\PublishCommands.md
EndProjectSection
Expand Down
47 changes: 36 additions & 11 deletions doc/DotnetInstallDocumentation.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,50 @@
**Dotnet downloads:** \
<https://dotnet.microsoft.com/en-us/download/dotnet>
**Dotnet tools Documentation:** \
<https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools>

**Entity Framework Core Documentation:** \
<https://learn.microsoft.com/en-us/ef/core/cli/dotnet>

**Manual installation documentation:** \
<https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#manual-install>

==**NOTE: On first installation, export variables:**== \
<https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#set-environment-variables-system-wide>
Windows (PowerShell): \
`[Environment]::SetEnvironmentVariable("SEEDY_MASTER_KEY", "", [System.EnvironmentVariableTarget]::User)`

Raspberrypi ($): \
`sudo nano /etc/profile.d/environment.sh`
```
export DOTNET_ROOT=/opt/dotnet/
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:
export prgDir=/mnt/wd/_prog/seedysoft/
export pubDir=/mnt/st/Seedysoft/
export SEEDY_MASTER_KEY=""
```
WSL (PowerShell): \
`[Environment]::SetEnvironmentVariable("WSLENV", $env:WSLENV + "SEEDY_MASTER_KEY:", [System.EnvironmentVariableTarget]::User)`

**Dotnet downloads:** \
<https://dotnet.microsoft.com/en-us/download/dotnet>
```
wget -O
DOTNET_FILE=
```
**Extract compressed file in current directory (/opt/dotnet/):** \
`tar zxvF dotnet... -C "$DOTNET_ROOT"`
`tar zxvf "$DOTNET_FILE" -C "$DOTNET_ROOT"`

**Help commands:** \
`dotnet --list-sdks` \
`dotnet --list-runtimes`
`dotnet --list-sdks; dotnet --list-runtimes;`

**Remove old versions:** \
`find . -type d -name "8.0.1" -exec rm -rf "{}" \;`

**Install workloads:** \
==NOTE: Must be root (sudo su)==: *root@raspberrypi4:/opt/dotnet#* \
`./dotnet workload search [<SEARCH_STRING>] [-v|--verbosity <LEVEL>]` \
`./dotnet workload search -?|-h|--help` \

`./dotnet workload install wasm-tools`
==NOTE: Must be root (sudo su)==: *root@raspberrypi4:/opt/dotnet#*
```
./dotnet workload search [<SEARCH_STRING>] [-v|--verbosity <LEVEL>]
./dotnet workload search -?|-h|--help
./dotnet workload install wasm-tools
```
**Update Entity Framework global tools:** \
`dotnet tool update --global dotnet-ef`
8 changes: 0 additions & 8 deletions doc/DotnetToolsReference.md

This file was deleted.

10 changes: 10 additions & 0 deletions src/HomeCloud/Server/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
"ASPNETCORE_ENVIRONMENT": "Development"
},
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}"
},
"WSL": {
"commandName": "WSL2",
"launchBrowser": true,
"launchUrl": "https://localhost:5001",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "https://localhost:5001;http://localhost:5000"
},
"distributionName": ""
}
},
"iisSettings": {
Expand Down

0 comments on commit 1fd79ad

Please sign in to comment.