Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 13, 2022. It is now read-only.
/sshdeployPublic archive

Commitf271fa7

Browse files
authored
Updated docs to support projects targeting multiple runtimes
1 parenta199be2 commitf271fa7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ dotnet tool install -g dotnet-sshdeploy --add-source ./
6868
***If no RuntimeIdentifier is provided a[Framework-dependent deployment](https://docs.microsoft.com/en-us/dotnet/core/deploying/) will be created otherwise a[Self-contained deployment](https://docs.microsoft.com/en-us/dotnet/core/deploying/) will**
6969
***The command neds to be excute in the same folder as the csproj**
7070

71+
If your project happens to target multiple runtimes, i.e.`win-x64` and`linux-arm`, then sshdeploy does not necessarily know which binaries to deploy. Also, you might want to control that i.e. only the`linux-arm` build should be automatically deployed. In this case, you can change the post build event and add an additional condition to the target (only run on builds for linux), and also pass the desired runtime identifier to the actual deployment call as follows:
72+
73+
```xml
74+
<TargetCondition="$(BuildingInsideSshDeploy) == '' and $(RuntimeIdentifier) == 'linux-arm'"Name="PostBuild"AfterTargets="PostBuildEvent">
75+
<ExecCommand="cd $(ProjectDir)" />
76+
<ExecCommand="dotnet-sshdeploy push -r $(RuntimeIdentifier)" />
77+
</Target>
78+
```
79+
7180
####Monitor
7281
1. Go to your Visual Studio Solution (the one you intend to continuously deploy to the Raspberry Pi).
7382
2. Right-click on the project and click on the menu item "Properties"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp