Skip to content

Displaying HTML shows a warning CS1701 #2

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

Open
JoanComasFdz opened this issue Feb 10, 2022 · 2 comments
Open

Displaying HTML shows a warning CS1701 #2

JoanComasFdz opened this issue Feb 10, 2022 · 2 comments

Comments

@JoanComasFdz
Copy link

In the csharp / Docs / HTML notebook, the cell:

display(HTML("<b style=\"color:blue\">Hello!</b>"));

Will output Hello! but also the following warning:

warning CS1701: Assuming assembly reference 'Microsoft.AspNetCore.Html.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' used by 'Microsoft.DotNet.Interactive' matches identity 'Microsoft.AspNetCore.Html.Abstractions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' of 'Microsoft.AspNetCore.Html.Abstractions', you may need to supply runtime policy

@pocki
Copy link
Owner

pocki commented Feb 10, 2022

Oh, some stuff in Dotnet.Interactive and .NET 6 have changed. I will have a look at it

@pocki
Copy link
Owner

pocki commented Mar 22, 2022

Sorry for the late response:

I have updated now to the latest .NET SDK and dotnet-interactive packages, but still the same issue.

It seems there are multiple issues:
First of all there is an older version of a library referenced/included where a newer one exists in the .NET SDK. I created an issue at the dotnet-interactive repo: dotnet/interactive#1939

Also, this compiler warning is obsolete and should be removed.

And there is at the moment also no possibility to globally suppress warnings: dotnet/interactive#762

Sorry, at the moment I also don't have a workaround.

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