1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-10 10:00:57 +09:00

Update UsingYourBuild.md

amend

Commit migrated from 5043564263
This commit is contained in:
Bruno Tagliapietra 2018-02-18 16:41:08 +13:00 committed by GitHub
parent 791fcbb3c0
commit 1ef62ebd80

View file

@ -47,7 +47,15 @@ dotnet new console
In order to update with your local changes, the application needs to be self-contained, as opposed to running on the
shared framework. In order to do that you will need to add a `RuntimeIdentifier` to your project.
You also need to add a `PlatformTarget`, otherwise the default would be `x86`, and that would generate an incompatibility error.
```xml
<PropertyGroup>
...
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
```
For Windows you will want `win-x64`, for macOS `osx-x64` and `linux-x64` for Linux.
You might also need to explicitly specify a `PlatformTarget`: it shouldn't be required though, unless for some reason the default `PlatformTarget` on your machine, for that directory, is not `x64`.
```xml
<PropertyGroup>
@ -57,8 +65,6 @@ You also need to add a `PlatformTarget`, otherwise the default would be `x86`, a
</PropertyGroup>
```
For Windows you will want `win-x64`, for macOS `osx-x64` and `linux-x64` for Linux.
### Publish
Now is the time to publish. The publish step will trigger restore and build. You can iterate on build by calling `dotnet build` as