You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@@ -117,19 +117,6 @@ $ dotnet publish
|
||||
$ bin\Debug\netcoreapp2.0\win7-x64\publish\App.exe
|
||||
```
|
||||
|
||||
Note #1: There is a [bug](https://github.com/dotnet/sdk/issues/791) with `dotnet run` and
|
||||
self-contained applications. If you `dotnet run` and see an error `The library 'hostpolicy.dll'
|
||||
required to execute the application...`, you've hit this bug.
|
||||
|
||||
Note #2: On non-Windows platforms, self-contained applications aren't runnable by default. You will
|
||||
see an error "Permission denied" when running the application. This is because of a
|
||||
[breaking change in the .NET Core runtime](https://github.com/dotnet/corefx/issues/15516) between 1.0 and 2.0.
|
||||
Either this breaking change needs to be fixed, or [NuGet will have to workaround the change]
|
||||
(https://github.com/NuGet/Home/issues/4424).
|
||||
|
||||
To workaround this issue, run `chmod u+x bin/Debug/netcoreapp2.0/RID/publish/App` before executing
|
||||
your application.
|
||||
|
||||
## Using your local CoreFx build
|
||||
|
||||
To use your local built corefx packages you will need to be a self-contained application and so you will
|
||||
@@ -148,6 +135,17 @@ Once you find the version number (for this example assume it is `4.4.0-beta-2510
|
||||
</ItemGroup>
|
||||
```
|
||||
|
||||
Because assets in `Microsoft.Private.CoreFx.NETCoreApp` conflict with the normal `Microsoft.NETCore.App` package,
|
||||
you need to tell the tooling to use the assets from your local package. To do this, add the following property to your project file:
|
||||
|
||||
```xml
|
||||
<PropertyGroup>
|
||||
<PackageConflictPreferredPackages>Microsoft.Private.CoreFx.NETCoreApp;runtime.win-x64.Microsoft.Private.CoreFx.NETCoreApp;$(PackageConflictPreferredPackages)</PackageConflictPreferredPackages>
|
||||
</PropertyGroup>
|
||||
```
|
||||
|
||||
Replacing the RID in `runtime.win-x64.Microsoft.Private.CoreFx.NETCoreApp` with the RID of your current build.
|
||||
|
||||
#### 2 - Add your bin directory to the Nuget feed list
|
||||
|
||||
By default the dogfooding dotnet SDK will create a Nuget.Config file next to your project, if it doesn't
|
||||
|
||||
Reference in New Issue
Block a user