Skip to content
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

WebMarkupMin breaks after updating to ASP.NET 2.0 Core #41

Closed
sebastianbk opened this issue Aug 15, 2017 · 3 comments
Closed

WebMarkupMin breaks after updating to ASP.NET 2.0 Core #41

sebastianbk opened this issue Aug 15, 2017 · 3 comments

Comments

@sebastianbk
Copy link

sebastianbk commented Aug 15, 2017

After updating to ASP.NET Core 2.0 the WebMarkupMin.AspNetCore1 library is unable to locate the method MediaTypeHeaderValue.TryParse and throws a MissingMethodException. However, when using IntelliSense in Visual Studio 2017 (15.3) I have no problem finding and using that method.

I am using version 2.4.0 of WebMarkupMin.AspNetCore1. I tried manually adding the System.Net.Http and Microsoft.Net.Http NuGet packages but that did not help. I also tried adding these settings to my csproj file that didn't help either.

<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>

Here is a screenshot of the error page I get.

https://pbs.twimg.com/media/DHQr-ETXsAAJWYk.jpg:large

I hope there is a simple fix to this issue, as I love WebMarkupMin and I would really like to use it with ASP.NET Core 2.0.

@Taritsyn
Copy link
Owner

Hello, Sebastian!

Thanks for information. Soon I will start to solve this problem.

@Taritsyn
Copy link
Owner

Hello, Sebastian!

In version 2.4.2 fixed this error. Now you need to use the WebMarkupMin.AspNetCore2 module instead of the WebMarkupMin.AspNetCore1.

@sebastianbk
Copy link
Author

@Taritsyn, you are a superhero! Thanks a lot for all of your amazing work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants