-
Notifications
You must be signed in to change notification settings - Fork 926
React.AspNet is not working with ASP.NET Core 1.0 RC2 #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like I need to change "dnx451" to something else, although the document explaining these identifiers is super confusing: https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md Basically I want the package to be compatible with .NET Framework 4.5+ but NOT with .NET Core (as some of the dependencies don't run on .NET Core). "dnx451" used to do that, but I have no idea which one to use now. |
It is "net451", but with that alone isn't enough to make it work on RC2, since there are a lot of structural changes. Also another thing, is it really necessary to make React.AspNet a .xproj?, since it isn't using any of the .NETCore libraries and it is only targeting .Net Framework, then I think it maybe would be better to have it as a .csproj |
Just an update, I was able to make React.Sample.Mvc6 run, but it is giving me an unhandled exception first on Since now on RC2 xproj doesn't seem to be creating a nupkg file from a full .NET Framework class library, I transformed into a csproj and tried to make the nupkg the same way the other projects do it, but it seems that there is a bug in the current version of NuGet that gives you an error when you use RC2 Core libraries inside a full .Net Framework project, so still no package. For more info on this bug take a look at NuGet/Home#2754 |
What's the exception? For the xproj not creating a NuGet package, it's probably worth creating a Sent from my phone.
|
The exception I'm getting is
Right now there doesn't seem to be any way to get xproj to create a NuGet package by itself, but I found out there is a new command called |
Thanks for investigating! Could you please send a pull request with your changes, so I can take a look and merge them in? 😄 |
Fixed with #271 - Will try to push to NuGet soon. |
When using React.AspNet in a ASP.NET Core 1.0 RC2 project with a "net451" framework, it gives the error:
The dependency React.AspNet 2.3.0 does not support framework .NETFramework,Version=v4.5.1
The text was updated successfully, but these errors were encountered: