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

Update .NET Interactive to .NET 9 #3760

Open
jonsequitur opened this issue Nov 14, 2024 · 7 comments
Open

Update .NET Interactive to .NET 9 #3760

jonsequitur opened this issue Nov 14, 2024 · 7 comments
Labels
Area-Build & Infrastructure Relating to this repo's build and infrastructure

Comments

@jonsequitur
Copy link
Contributor

No description provided.

@jonsequitur jonsequitur changed the title Explore .NET 9 update of .NET Interactive @jonsequitur @shyamnamboodiripad Update .NET Interactive to .NET 9 Nov 14, 2024
@jonsequitur jonsequitur added the Area-Build & Infrastructure Relating to this repo's build and infrastructure label Nov 14, 2024
@rbuergi
Copy link

rbuergi commented Nov 25, 2024

What is the ETA of this?

@kimmywork
Copy link

Met issue might related to this:

Error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

File name: 'System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Submission#5.<<Initialize>>d__0.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Submission#5.<Initialize>()
at Submission#5.<Factory>(Object[] submissionArray)
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray`1 precedingExecutors, Func`2 currentExecutor, StrongBox`1 exceptionHolderOpt, Func`2 catchExceptionOpt, CancellationToken cancellationToken)

#!about

.NET Interactive

© 2020-2024 Microsoft Corporation

Version: 1.0.556801+2d9726b514498cd84403a1d5d13da3161c99eab2

Library version: 1.0.0-beta.24568.1+2d9726b514498cd84403a1d5d13da3161c99eab2

Build date: 2024-12-03T06:43:21.0661917Z

@jonsequitur
Copy link
Contributor Author

@kimmywork Yes. In the meantime, the workaround is to have the .NET 8 SDK installed as well.

@Martin-Molinero
Copy link

Martin-Molinero commented Dec 12, 2024

+1
having net 8 sdk installed doesn't seem to be enough for it to work? net9 builds wont work? is there some other workaround to get it going with net9 builds?

error CS1705: Assembly 'XYZ' with identity 'XYZ, Version=2.5.0.0, Culture=neutral, PublicKeyToken=null' uses 
'System.Linq.Expressions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than 
referenced assembly 'System.Linq.Expressions' with identity 'System.Linq.Expressions, Version=8.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a'
>dotnet --list-sdks
8.0.403 [C:\Program Files\dotnet\sdk]
9.0.101 [C:\Program Files\dotnet\sdk]
>dotnet interactive --version
1.0.556801+2d9726b514498cd84403a1d5d13da3161c99eab2

@rbuergi
Copy link

rbuergi commented Dec 12, 2024

I have mine even compiled for net8.0 and net9.0 and it won't load the dependencies, especially aspnetcore v9, even though they are also built for net8.0 and net9.0... I'm currently not able to use polyglot notebooks at all. Would be really glad to get an update, feeling bad about having upgraded my project to net9, but don't want to go back.

@laurentpayot
Copy link

It works for me on the latest VS Code on my Ubuntu 24.10 machine with .NET 9 and 8 installed.

@tmarkovski
Copy link

tmarkovski commented Dec 20, 2024

It works for me on the latest VS Code on my Ubuntu 24.10 machine with .NET 9 and 8 installed.

It doesn't actually use net9. It only load net8 assemblies. Try it:

#!csharp
Console.WriteLine(Environment.Version);

Does not work with latest Microsoft.Extensions.AI which require .net9. Please upgrade!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Build & Infrastructure Relating to this repo's build and infrastructure
Projects
None yet
Development

No branches or pull requests

6 participants