Skip to content

Commit

Permalink
Update workaround for dotnet-cli commands for another CLI bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate McMaster committed May 31, 2016
1 parent 5a40fbd commit f12d3cf
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions docs/cli/dotnet.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,12 @@ To make the project a .NET Core App, add the "netcoreapp1.0" framework to projec
.. code-block:: json
{
"buildOptions": {
"emitEntryPoint": true
},
"frameworks": {
"netcoreapp1.0": {
"imports": ["portable-net451+win8"],
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
Expand All @@ -290,15 +290,16 @@ To make a desktop .NET app, ensure you project targets "net451" or newer (exampl
.. code-block:: json
{
"buildOptions": {
"emitEntryPoint": true
},
"frameworks": {
"net451": {
"buildOptions": {
"emitEntryPoint": true
}
}
"net451": { }
}
}
Due to another bug in .NET Core CLI (see `Issue #3164 <https://github.com/dotnet/cli/issues/3164>`_), you will need to set the top-level build option, not the framework-level option.


NuGet error: "One or more packages are incompatible with .NETCoreApp,Version=v1.0."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit f12d3cf

Please sign in to comment.