ignore this issue reposting cleaner thread.... ( dont know how to delete )
Ive been going 1 by one and adding the packages the error output advises to manually. but keeps asking for more and more. here is the current conflict.
Version conflict detected for System.Collections. Reference the package directly from the project to resolve this issue. Assembly-CSharp -> Microsoft.AspNetCore.SignalR.Client 1.0.0-alpha2-final -> Microsoft.AspNetCore.SignalR.Client.Core 1.0.0-alpha2-final -> Microsoft.AspNetCore.Sockets.Abstractions 1.0.0-alpha2-final -> System.Threading.Tasks.Channels 0.1.0-alpha-001 -> NETStandard.Library 1.6.1 -> System.Collections (>= 4.3.0) Assembly-CSharp -> Microsoft.NETCore.UniversalWindowsPlatform 5.0.0 -> Microsoft.NETCore.Runtime 1.0.0 -> Microsoft.NETCore.Runtime.CoreCLR-arm 1.0.0 -> System.Collections (= 4.0.10).
wow this is hard work. so only 1 conflict exposes itself at a time. So im sitting here doing the following
- right click on "Assembly-CSharp" universal project
- manage nuget.
- select Microsoft.AspNetCore.SignalR.Client 1.0.0-alpha2-final
- Look in the Output window for the conflict.
- manually add the lower one that universal wants ( hoping that doesnt eventually break signalr )
- repeat for all Signalr dependency chain which in a seperate project i see brings 70 Dlls
:( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :( :(
i had that problem back in august bro. ended up being something about getting ASP.net core from one place (nuget) and Signalr Core was coming from another (myget). if i recall that was the only way to pair them. Spent 2 weeks on that one. something was missing but you would only get the error at runtime not at build time. :( :(
But at this point my server signalr core works with MVC Web template and the latest visual studio update.
dude i just got beat for $60 cause some guy in the hololens forum told me he was running .net core client from a package he downloaded from unity assets store. hes like "I just checked a Unity project I used it, and the server it is talking to is running SignalR.Core v2.2.2. You should be good to go"
So i download the package and as i suspected it has nothing to do with Core. :( :( :(
https://forums.hololens.com/discussion/comment/19635#Comment_19635
Damn, I might as well start scamming and quit coding
you would think the worlds "First Holographic Device" would get more love. Im gonna have to not send Satya Nadella a xmas card this year ;)
whats your issue?
open powershell and type dotnet --info
not inside your project directory.. somewhere nuetral
we can use the phone too if you want 646 962 1110 ( google voice )
call me and cut and paste the info here
ive got this PS C:\Users\fogbr> dotnet --info .NET Command Line Tools (2.2.0-preview1-007814)
Product Information: Version: 2.2.0-preview1-007814 Commit SHA-1 hash: d833eaa657
Runtime Environment: OS Name: Windows OS Version: 10.0.16299 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.2.0-preview1-007814\
Microsoft .NET Core Shared Framework Host
Version : 2.1.0-preview1-26016-07 Build : b61508038835f31a099ce44f1b1c970878211fcd
you can reach my levels by the following links
.NET Core Runtime & Host Setup Repo repo contains the code to build the .NET Core runtime, libraries and shared host (dotnet) installers for all supported platforms. https://github.com/dotnet/core-setup#daily-builds
Installers and Binaries .NET Core SDK as either an installer (MSI, PKG) or a zip (zip, tar.gz). https://github.com/dotnet/cli#installers-and-binaries
get the windows 64 installer master branch and install that for both the dotnet cli (link2) and the sdk (link1 ) then also use the visual studio installer to get to version 15.5.2 of visual studio 2017
once you got all that working create a fresh .NET Core MVC project and just run it to see if it works without signalr
then download and install the latest node.js from https://nodejs.org/en/ im using v9.2.1
your gonna use nodes package manager tool to download the signalr javascript . by using the command from powershell inside the root of your project folder. type npm install @aspnet/signalr-client
this will put the javascript file signalr-client inside a directory called node_modules
copy the whole signalr folder from the node-modules directory into the lib folder under your wwwroot
create an HTML file and put it inside the WWW directory and add the line
heres my hello world HTML file.
`
<input type="text" id="message" />
<input type="button" id="sendMessage" value="Send" />
<ul id="discussion"></ul>
</div>
<script type="text/javascript" src="lib/signalr-client/dist/browser/signalr-client-1.0.0-alpha2-final.js"></script>
<script type="text/javascript">
var transport = signalR.TransportType.WebSockets;
var connection = new signalR.HubConnection(`http://${document.location.host}/chat`, { transport: transport });
var messageInput = document.getElementById('message');
var name = prompt('Enter your name:', '');
var button = document.getElementById("sendMessage");
connection.on('broadcastMessage', (name, message) => {
var liElement = document.createElement('li');
liElement.innerHTML = '<strong>' + name + '</strong>: ' + message;
document.getElementById('discussion').appendChild(liElement);
});
button.addEventListener("click", event => {
connection.invoke('send', name, messageInput.value);
messageInput.value = '';
messageInput.focus();
});
connection.start();
</script>
`
some of the tags were stripped off of my html file but you get the picture.
now go to your Startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddSignalR();
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseBrowserLink();
}
else
{
app.UseExceptionHandler("/Home/Error");
}
app.UseStaticFiles();
app.UseFileServer();
app.UseSignalR(routes =>
{
routes.MapHub<ChatHub>("chat");
});
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
}
}