Enable cross-platform publishing
It looks like the ExeSuffix used by dotnet-publish is determined by the platform that the tool is currently being run on rather than the runtime you passed in to the publish operation.
@johanste can you provide more details? I'm afraif I'm confused slightly by the title of the issue and the issue itself as you described it. :)
My apologies for not being clear. Also, I’m currently setting things up so I can actually step through the code to make sure that my observations jive with reality – but in the meantime, this is what I think that I’m seeing:
Microsoft.DotNet.Cli.Utils is using the platform you are currently running on:
namespace Microsoft.DotNet.Cli.Utils { internal static class Constants { public static readonly string ExeSuffix = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".exe" : string.Empty;
public static readonly string HostExecutableName = "corehost" + ExeSuffix;
…
…to determine the full path of corehost to pick up to copy to the output directory:
private static int PublishHost(ProjectContext context, string outputPath) { if (context.TargetFramework.IsDesktop()) { return 0; } var hostPath = Path.Combine(AppContext.BaseDirectory, Constants.HostExecutableName); if (!File.Exists(hostPath)) { Reporter.Error.WriteLine($"Cannot find {Constants.HostExecutableName} in the dotnet directory.".Red()); return 1; } var outputExe = Path.Combine(outputPath, context.ProjectFile.Name + Constants.ExeSuffix); // Copy the host File.Copy(hostPath, outputExe, overwrite: true); return 0;
This results in corehost.exe being copied to my publish folder as
Also, when I take a second look at the code, it seems like it is picking up corehost* from the dotnet install directory as opposed from whatever came in my project’s references/restored packages, which would also be an issue as that file would also be specific to whatever OS you have on your build box (I assume ☺)
The correct hostpath should be based on the runtime parameter value passed in to publish. Furthermore, the version would presumably be based on the version of Microsoft.NETCore.ConsoleHost my project is referencing and not the version that came with the version of dotnet.exe/dotnet-publish.exe that I’m currently using to publish my project.
Best regards, Johan Stenberg
From: Zlatko Knezevic [mailto:[email protected]] Sent: Wednesday, November 25, 2015 8:59 AM To: dotnet/cli [email protected] Cc: Johan Stenberg [email protected] Subject: Re: [cli] Enable cross-platform publishing (#317)
@johanstehttps://github.com/johanste can you provide more details? I'm afraif I'm confused slightly by the title of the issue and the issue itself as you described it. :)
— Reply to this email directly or view it on GitHubhttps://github.com/dotnet/cli/issues/317#issuecomment-159671409.
Yea that's broken. Care to send a pull request?
@johanste ah, I see, ok, yah, that's broken. :)
This still seems to be broken. I tried to do a cross-platform publish from Windows to Ubuntu, but the resulting output still produces an .exe file.
Command used. dotnet publish --runtime ubuntu.14.04-x64 --output out5
dotnet-info:
.NET Command Line Tools (1.0.0-rc2-002374)
Product Information:
Version: 1.0.0-rc2-002374
Commit Sha: f82da07fc4
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
Same result here.
"dependencies": {
"Microsoft.AspNetCore.Diagnostics": "1.0.0-*",
"Microsoft.AspNetCore.Server.IISIntegration": "1.0.0-*",
"Microsoft.Extensions.Logging.Console": "1.0.0-*",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
"Microsoft.AspNetCore.Mvc": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"NETStandard.Library": "1.5.0-*"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [ "dnxcore50", "portable-net451+win8" ]
}
},
"runtimes": {
"ubuntu.14.04-x64": {}
},
dotnet publish --configuration Release --runtime ubuntu.14.04-x64
@brthor Could we please re-open this issue? It's not fixed.
@MartinJohns @GuardRex Using cross publish requires you to have the host in your package graph which means you must reference the latest Microsoft.NETCore.App.
I don't see anything here that suggests that that isn't working..
Take a look at an example app here: https://github.com/dotnet/cli/blob/rel/1.0.0/TestAssets/CrossPublishTestProjects/StandaloneAppCrossPublish/project.json
The fallback behavior of dropping the exe exists only while we work on converting our own test assets, then without this reference you will see an error.
I think we can keep this closed out and the fallback removal is tracked here: dotnet/cli#2444
@MartinJohns are you referencing Microsoft.NETCore.App in your project.json?
@brthor I wasn't, so that explains my misunderstanding. Thanks.
[EDIT] Yep! That got it ... test app only needed "Microsoft.NETCore.App": "1.0.0-*" dep for good ubuntu outputs. :+1:
[EDIT] Except @MartinJohns will know if the outputs will run on the platform. I can't test that far ... no Ubuntu here.
This is my project.json file:
{
"compilationOptions": {
"preserveCompilationContext": true,
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.AspNetCore.Diagnostics": "1.0.0-*",
"Microsoft.AspNetCore.Server.Kestrel": "1.0.0-*",
"Microsoft.AspNetCore.StaticFiles": "1.0.0-*",
"NETStandard.Library": "1.5.0-*"
},
"frameworks": {
"netcoreapp1.0": {
"imports": [ "dnxcore50", "portable-net451+win8" ]
}
},
"runtimes": {
"ubuntu.14.04-x64": {}
}
}
I do not reference Microsoft.NETCore.App. Why is this required? ~~And if this is required, why is there no warning at all that it's missing?~~ I see there is a warning in the latest release.
After referencing Microsoft.NETCore.App when I try to run the Ubuntu deployed packages I get this output:
root@localhost:~/rustyplane# COREHOST_TRACE=3 ./RustyPlane.Web
Tracing enabled
--- Invoked host main = {
./RustyPlane.Web
}
Resolved fxr [/root/rustyplane/libhostfxr.so]...
Tracing enabled
Exists /root/rustyplane/RustyPlane.dll
Checking if CoreCLR path exists=[/root/rustyplane/libcoreclr.so]
Detecting mode... CoreCLR present in own dir [/root/rustyplane] and checking if [RustyPlane.deps.json] file present=[0]
Host operating in split mode; own dir=[/root/rustyplane]
Tracing enabled
Usage: corehost [ASSEMBLY] [ARGUMENTS]
Execute the specified managed assembly with the passed in arguments
The Host's behavior can be altered using the following environment variables:
COREHOST_TRACE Set to affect trace levels (0 = Errors only (default), 1 = Warnings, 2 = Info, 3 = Verbose)
@GuardRex Np, I should've called this requirement out better in the issue.
@MartinJohns please share an ls of that directory (cc @schellap)
root@localhost:~/rustyplane# ls -all
total 51836
drwxr-xr-x 3 root root 12288 Apr 15 18:14 .
drwx------ 7 root root 4096 Apr 15 18:03 ..
-rw-r--r-- 1 root root 8294560 Apr 7 21:23 libcoreclr.so
-rw-r--r-- 1 root root 673656 Apr 7 21:23 libcoreclrtraceptprovider.so
-rw-r--r-- 1 root root 1007272 Apr 7 21:23 libdbgshim.so
-rw-r--r-- 1 root root 594088 Mar 24 04:34 libhostfxr.so
-rw-r--r-- 1 root root 947662 Mar 24 04:34 libhostpolicy.so
-rw-r--r-- 1 root root 3544504 Apr 7 21:23 libmscordaccore.so
-rw-r--r-- 1 root root 2252464 Apr 7 21:23 libmscordbi.so
-rw-r--r-- 1 root root 69280 Apr 7 21:23 libsosplugin.so
-rw-r--r-- 1 root root 529208 Apr 7 21:23 libsos.so
-rw-r--r-- 1 root root 497160 Apr 14 19:48 libuv.so
-rw-r--r-- 1 root root 7168 Apr 14 20:20 Microsoft.AspNetCore.Diagnostics.Abstractions.dll
-rw-r--r-- 1 root root 199168 Apr 14 20:20 Microsoft.AspNetCore.Diagnostics.dll
-rw-r--r-- 1 root root 8704 Apr 14 19:59 Microsoft.AspNetCore.Hosting.Abstractions.dll
-rw-r--r-- 1 root root 59392 Apr 14 19:59 Microsoft.AspNetCore.Hosting.dll
-rw-r--r-- 1 root root 6144 Apr 14 19:59 Microsoft.AspNetCore.Hosting.Server.Abstractions.dll
-rw-r--r-- 1 root root 51712 Apr 14 19:53 Microsoft.AspNetCore.Http.Abstractions.dll
-rw-r--r-- 1 root root 66048 Apr 14 19:52 Microsoft.AspNetCore.Http.dll
-rw-r--r-- 1 root root 28672 Apr 14 19:53 Microsoft.AspNetCore.Http.Extensions.dll
-rw-r--r-- 1 root root 21504 Apr 14 19:53 Microsoft.AspNetCore.Http.Features.dll
-rw-r--r-- 1 root root 234496 Apr 14 20:01 Microsoft.AspNetCore.Server.Kestrel.dll
-rw-r--r-- 1 root root 58880 Apr 14 20:17 Microsoft.AspNetCore.StaticFiles.dll
-rw-r--r-- 1 root root 50688 Apr 14 19:54 Microsoft.AspNetCore.WebUtilities.dll
-rw-r--r-- 1 root root 4202408 Mar 21 19:12 Microsoft.CodeAnalysis.CSharp.dll
-rw-r--r-- 1 root root 2024344 Mar 21 19:12 Microsoft.CodeAnalysis.dll
-rw-r--r-- 1 root root 5055920 Mar 21 19:12 Microsoft.CodeAnalysis.VisualBasic.dll
-rw-r--r-- 1 root root 446656 Apr 7 21:31 Microsoft.CSharp.dll
-rw-r--r-- 1 root root 10240 Apr 14 19:52 Microsoft.Extensions.Configuration.Abstractions.dll
-rw-r--r-- 1 root root 11264 Apr 14 19:52 Microsoft.Extensions.Configuration.CommandLine.dll
-rw-r--r-- 1 root root 15360 Apr 14 19:52 Microsoft.Extensions.Configuration.dll
-rw-r--r-- 1 root root 10752 Apr 14 19:53 Microsoft.Extensions.Configuration.EnvironmentVariables.dll
-rw-r--r-- 1 root root 10240 Apr 14 19:53 Microsoft.Extensions.Configuration.FileExtensions.dll
-rw-r--r-- 1 root root 14848 Apr 14 19:53 Microsoft.Extensions.Configuration.Json.dll
-rw-r--r-- 1 root root 26624 Apr 14 19:51 Microsoft.Extensions.DependencyInjection.Abstractions.dll
-rw-r--r-- 1 root root 28160 Apr 14 19:50 Microsoft.Extensions.DependencyInjection.dll
-rw-r--r-- 1 root root 8704 Apr 14 19:50 Microsoft.Extensions.FileProviders.Abstractions.dll
-rw-r--r-- 1 root root 16896 Apr 14 19:51 Microsoft.Extensions.FileProviders.Physical.dll
-rw-r--r-- 1 root root 32256 Apr 14 19:56 Microsoft.Extensions.Logging.Abstractions.dll
-rw-r--r-- 1 root root 9216 Apr 14 19:56 Microsoft.Extensions.Logging.dll
-rw-r--r-- 1 root root 8704 Apr 14 19:49 Microsoft.Extensions.ObjectPool.dll
-rw-r--r-- 1 root root 13312 Apr 14 19:56 Microsoft.Extensions.Options.dll
-rw-r--r-- 1 root root 13312 Apr 14 19:48 Microsoft.Extensions.PlatformAbstractions.dll
-rw-r--r-- 1 root root 17920 Apr 14 19:49 Microsoft.Extensions.Primitives.dll
-rw-r--r-- 1 root root 10240 Apr 14 19:58 Microsoft.Extensions.WebEncoders.dll
-rw-r--r-- 1 root root 54784 Apr 14 19:54 Microsoft.Net.Http.Headers.dll
-rw-r--r-- 1 root root 188120 Apr 7 21:32 Microsoft.VisualBasic.dll
-rw-r--r-- 1 root root 25320 Apr 7 21:32 Microsoft.Win32.Primitives.dll
-rw-r--r-- 1 root root 24288 Apr 7 21:32 Microsoft.Win32.Registry.dll
-rw-r--r-- 1 root root 2189816 Apr 7 21:23 mscorlib.dll
-rw-r--r-- 1 root root 9446400 Apr 7 21:23 mscorlib.ni.dll
-rw-r--r-- 1 root root 464896 Apr 3 10:15 Newtonsoft.Json.dll
drwxr-xr-x 2 root root 4096 Apr 15 18:03 refs
-rwxr-xr-x 1 root root 112436 Mar 24 04:34 RustyPlane.Web
-rw-r--r-- 1 root root 235334 Apr 15 2016 RustyPlane.Web.deps.json
-rw-r--r-- 1 root root 205824 Apr 15 2016 RustyPlane.Web.dll
-rw-r--r-- 1 root root 15872 Apr 15 2016 RustyPlane.Web.pdb
-rw-r--r-- 1 root root 28 Apr 15 2016 RustyPlane.Web.runtimeconfig.json
-rw-r--r-- 1 root root 61414 Apr 7 21:23 sosdocsunix.txt
-rw-r--r-- 1 root root 21856 Apr 7 21:32 System.AppContext.dll
-rw-r--r-- 1 root root 29016 Apr 7 21:32 System.Buffers.dll
-rw-r--r-- 1 root root 92912 Apr 7 21:32 System.Collections.Concurrent.dll
-rw-r--r-- 1 root root 97992 Apr 7 21:32 System.Collections.dll
-rw-r--r-- 1 root root 198896 Apr 7 21:32 System.Collections.Immutable.dll
-rw-r--r-- 1 root root 88472 Apr 7 21:32 System.Collections.NonGeneric.dll
-rw-r--r-- 1 root root 45464 Apr 7 21:32 System.Collections.Specialized.dll
-rw-r--r-- 1 root root 82848 Apr 7 21:32 System.ComponentModel.Annotations.dll
-rw-r--r-- 1 root root 21720 Apr 7 21:32 System.ComponentModel.dll
-rw-r--r-- 1 root root 92864 Apr 7 21:32 System.Console.dll
-rw-r--r-- 1 root root 22416 Apr 7 21:32 System.Diagnostics.Contracts.dll
-rw-r--r-- 1 root root 40832 Apr 7 21:32 System.Diagnostics.Debug.dll
-rw-r--r-- 1 root root 31152 Apr 7 21:32 System.Diagnostics.DiagnosticSource.dll
-rw-r--r-- 1 root root 28424 Mar 22 21:54 System.Diagnostics.FileVersionInfo.dll
-rw-r--r-- 1 root root 88456 Apr 7 21:32 System.Diagnostics.Process.dll
-rw-r--r-- 1 root root 22936 Apr 7 21:32 System.Diagnostics.StackTrace.dll
-rw-r--r-- 1 root root 22400 Apr 7 21:32 System.Diagnostics.Tools.dll
-rw-r--r-- 1 root root 36752 Apr 7 21:32 System.Diagnostics.Tracing.dll
-rw-r--r-- 1 root root 112864 Apr 7 21:32 System.Dynamic.Runtime.dll
-rw-r--r-- 1 root root 22424 Apr 7 21:32 System.Globalization.Calendars.dll
-rw-r--r-- 1 root root 22384 Apr 7 21:32 System.Globalization.dll
-rw-r--r-- 1 root root 30464 Apr 7 21:32 System.Globalization.Extensions.dll
-rw-r--r-- 1 root root 56944 Apr 7 21:23 System.Globalization.Native.so
-rw-r--r-- 1 root root 86744 Apr 7 21:32 System.IO.Compression.dll
-rw-r--r-- 1 root root 12930 Apr 7 21:23 System.IO.Compression.Native.so
-rw-r--r-- 1 root root 29080 Apr 7 21:32 System.IO.Compression.ZipFile.dll
-rw-r--r-- 1 root root 39232 Apr 7 21:32 System.IO.dll
-rw-r--r-- 1 root root 95088 Apr 7 21:32 System.IO.FileSystem.dll
-rw-r--r-- 1 root root 21920 Apr 7 21:32 System.IO.FileSystem.Primitives.dll
-rw-r--r-- 1 root root 52976 Apr 7 21:32 System.IO.FileSystem.Watcher.dll
-rw-r--r-- 1 root root 50928 Apr 7 21:32 System.IO.MemoryMappedFiles.dll
-rw-r--r-- 1 root root 42400 Apr 7 21:32 System.IO.UnmanagedMemoryStream.dll
-rw-r--r-- 1 root root 126792 Apr 7 21:32 System.Linq.dll
-rw-r--r-- 1 root root 461024 Apr 7 21:32 System.Linq.Expressions.dll
-rw-r--r-- 1 root root 223440 Apr 7 21:32 System.Linq.Parallel.dll
-rw-r--r-- 1 root root 69848 Apr 7 21:32 System.Linq.Queryable.dll
-rw-r--r-- 1 root root 92766 Apr 7 21:23 System.Native.a
-rw-r--r-- 1 root root 74748 Apr 7 21:23 System.Native.so
-rw-r--r-- 1 root root 271192 Apr 7 21:32 System.Net.Http.dll
-rw-r--r-- 1 root root 20142 Apr 7 21:23 System.Net.Http.Native.so
-rw-r--r-- 1 root root 68488 Apr 7 21:32 System.Net.NameResolution.dll
-rw-r--r-- 1 root root 307928 Apr 7 21:32 System.Net.Primitives.dll
-rw-r--r-- 1 root root 55144 Apr 7 21:32 System.Net.Requests.dll
-rw-r--r-- 1 root root 225128 Apr 7 21:32 System.Net.Security.dll
-rw-r--r-- 1 root root 14065 Apr 7 21:23 System.Net.Security.Native.so
-rw-r--r-- 1 root root 219848 Apr 7 21:32 System.Net.Sockets.dll
-rw-r--r-- 1 root root 39672 Apr 7 21:32 System.Net.WebHeaderCollection.dll
-rw-r--r-- 1 root root 30584 Apr 7 21:32 System.Net.WebSockets.dll
-rw-r--r-- 1 root root 157056 Apr 7 21:32 System.Numerics.Vectors.dll
-rw-r--r-- 1 root root 48848 Apr 7 21:32 System.ObjectModel.dll
-rw-r--r-- 1 root root 125288 Apr 7 21:32 System.Private.Uri.dll
-rw-r--r-- 1 root root 37792 Apr 7 21:32 System.Reflection.DispatchProxy.dll
-rw-r--r-- 1 root root 22880 Apr 7 21:32 System.Reflection.dll
-rw-r--r-- 1 root root 22392 Apr 7 21:32 System.Reflection.Emit.dll
-rw-r--r-- 1 root root 22448 Apr 7 21:32 System.Reflection.Emit.ILGeneration.dll
-rw-r--r-- 1 root root 21936 Apr 7 21:32 System.Reflection.Emit.Lightweight.dll
-rw-r--r-- 1 root root 24816 Apr 7 21:32 System.Reflection.Extensions.dll
-rw-r--r-- 1 root root 429288 Apr 7 21:32 System.Reflection.Metadata.dll
-rw-r--r-- 1 root root 22264 Apr 7 21:32 System.Reflection.Primitives.dll
-rw-r--r-- 1 root root 28576 Apr 7 21:32 System.Reflection.TypeExtensions.dll
-rw-r--r-- 1 root root 32992 Apr 7 21:32 System.Resources.Reader.dll
-rw-r--r-- 1 root root 22272 Apr 7 21:32 System.Resources.ResourceManager.dll
-rw-r--r-- 1 root root 39768 Apr 7 21:32 System.Runtime.dll
-rw-r--r-- 1 root root 73440 Apr 7 21:32 System.Runtime.Extensions.dll
-rw-r--r-- 1 root root 22904 Apr 7 21:32 System.Runtime.Handles.dll
-rw-r--r-- 1 root root 32152 Apr 7 21:32 System.Runtime.InteropServices.dll
-rw-r--r-- 1 root root 29624 Apr 7 21:32 System.Runtime.InteropServices.PInvoke.dll
-rw-r--r-- 1 root root 27112 Apr 7 21:32 System.Runtime.InteropServices.RuntimeInformation.dll
-rw-r--r-- 1 root root 21720 Apr 7 21:32 System.Runtime.Loader.dll
-rw-r--r-- 1 root root 70880 Apr 7 21:32 System.Runtime.Numerics.dll
-rw-r--r-- 1 root root 29632 Apr 7 21:32 System.Runtime.Serialization.Primitives.dll
-rw-r--r-- 1 root root 57208 Apr 7 21:32 System.Security.Claims.dll
-rw-r--r-- 1 root root 65984 Apr 7 21:32 System.Security.Cryptography.Algorithms.dll
-rw-r--r-- 1 root root 29608 Apr 7 21:32 System.Security.Cryptography.Cng.dll
-rw-r--r-- 1 root root 24328 Apr 7 21:32 System.Security.Cryptography.Csp.dll
-rw-r--r-- 1 root root 49432 Apr 7 21:32 System.Security.Cryptography.Encoding.dll
-rw-r--r-- 1 root root 96031 Apr 7 21:23 System.Security.Cryptography.Native.so
-rw-r--r-- 1 root root 50456 Apr 7 21:32 System.Security.Cryptography.OpenSsl.dll
-rw-r--r-- 1 root root 44992 Apr 7 21:32 System.Security.Cryptography.Primitives.dll
-rw-r--r-- 1 root root 161600 Apr 7 21:32 System.Security.Cryptography.X509Certificates.dll
-rw-r--r-- 1 root root 21224 Apr 7 21:32 System.Security.Principal.dll
-rw-r--r-- 1 root root 28936 Apr 7 21:32 System.Security.Principal.Windows.dll
-rw-r--r-- 1 root root 759552 Mar 22 21:55 System.Text.Encoding.CodePages.dll
-rw-r--r-- 1 root root 22384 Apr 7 21:32 System.Text.Encoding.dll
-rw-r--r-- 1 root root 22432 Apr 7 21:32 System.Text.Encoding.Extensions.dll
-rw-r--r-- 1 root root 64392 Apr 7 21:32 System.Text.Encodings.Web.dll
-rw-r--r-- 1 root root 112888 Apr 7 21:32 System.Text.RegularExpressions.dll
-rw-r--r-- 1 root root 50016 Apr 7 21:32 System.Threading.dll
-rw-r--r-- 1 root root 23280 Apr 7 21:32 System.Threading.Overlapped.dll
-rw-r--r-- 1 root root 177568 Apr 7 21:32 System.Threading.Tasks.Dataflow.dll
-rw-r--r-- 1 root root 26488 Apr 7 21:32 System.Threading.Tasks.dll
-rw-r--r-- 1 root root 24488 Apr 7 21:32 System.Threading.Tasks.Extensions.dll
-rw-r--r-- 1 root root 58112 Apr 7 21:32 System.Threading.Tasks.Parallel.dll
-rw-r--r-- 1 root root 22400 Apr 7 21:32 System.Threading.Thread.dll
-rw-r--r-- 1 root root 22416 Apr 7 21:32 System.Threading.ThreadPool.dll
-rw-r--r-- 1 root root 21880 Apr 7 21:32 System.Threading.Timer.dll
-rw-r--r-- 1 root root 600792 Apr 7 21:32 System.Xml.ReaderWriter.dll
-rw-r--r-- 1 root root 110800 Apr 7 21:32 System.Xml.XDocument.dll
-rw-r--r-- 1 root root 137080 Mar 22 21:55 System.Xml.XmlDocument.dll
-rw-r--r-- 1 root root 187232 Mar 22 21:55 System.Xml.XPath.dll
-rw-r--r-- 1 root root 36752 Mar 22 21:55 System.Xml.XPath.XDocument.dll
Note that I had to do chmod +x ./RustyPlane.Web first in order to make the file executable.
@MartinJohns What version of NETCore.App are you referencing? That looks like an old host there (March 24th)
Having a reference on Microsoft.NETCore.App is not required per se, but it makes things easier.
Really what you need is a dependency on the host package so we can find the host for the platform you are trying to publish for. The NETCore.App package makes that easier because it has a dependency on the host and NETStandard.Library.
@brthor, I believe the NETStandard.Library brings in an old host from the graph. We are building Microsoft.NETCore.App in the CLI repo with newer hosts, is that the issue in cross-publish host resolution from the graph? May be we should get rid of the old host from NETStandard.Library or start building that as well in the CLI repo? Is this the underlying issue?
@schellap I haven't seen any instances of NETStandard.Library bringing in an old host (is it named dotnet.exe?)
Old versions of Microsoft.NETCore.App I have seen bring in old hosts though and has caused issues.
i think the root of the confusion here is the fallback behavior which we need to remove asap.
I was referencing "Microsoft.NETCore.App": "1.0.0-*", instead of your suggested version (with rc2-*). It should reference the same latest version, right?
My current NuGet config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="AspNetCI" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" />
<add key="NuGet.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
Am I perhaps using outdated feeds?
I also removed NETStandard.Library from my projects file, but it resulted in no change.
Also, what exactly is the host package? What's the name of it, so I could reference it directly instead of Microsoft.NETCore.App? Or is the suggested way to always reference Microsoft.NETCore.App?