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

publish Microsoft.AspNetCore.App as nuget again? Issues in dontet interactive and fsharp scripts #46891

Closed
1 task done
jkone27 opened this issue Feb 26, 2023 · 3 comments
Closed
1 task done
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. Status: No Recent Activity

Comments

@jkone27
Copy link

jkone27 commented Feb 26, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

at the moment is not possible to use aspnetcore in F# .fsx script, or other interactive environments, i tried aspnet interactive

https://www.nuget.org/packages/Microsoft.DotNet.Interactive.AspNetCore/

also some issues was opened in fsharp but didnt see any recent development yet

dotnet/fsharp#8688
dotnet/interactive#861
dotnet/fsharp#8688

but didnt work / didnt expose the apis needed to build usual aspnet app..

//somefile.fsx in vscode with ionide (or visual studio or rider..)

#r "nuget: Microsoft.AspNetCore.App" // or proposed alternatives see above github issues
open Microsoft.AspNetCore.Http
open Microsoft.AspNetCore.Mvc
open Microsoft.AspNetCore.Builder // ..etc..

//rest of the script ...
app.Run()

to be able to run aspnet core apps in 1 single file (a bit like python)

dotnet fsi myApp.fsx

Describe the solution you'd like

to be able to run aspnet core apps in 1 single file (a bit like python)

dotnet fsi myApp.fsx

Additional context

not clear how to handle framework references as indipendent "assets" in interactive scripts which do not have projects (or have projects but just behind the scenes...)

@mkArtakMSFT mkArtakMSFT added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Feb 28, 2023
@mkArtakMSFT
Copy link
Member

Thanks for contacting us. That package is old, and we don't plan to ship an updated version of it.
What is the target framework that you're publishing with your application? Can you not use a more recent version of .NET (6 or 7)?

@mkArtakMSFT mkArtakMSFT added the Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. label Feb 28, 2023
@ghost
Copy link

ghost commented Feb 28, 2023

Hi @jkone27. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost
Copy link

ghost commented Mar 6, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

See our Issue Management Policies for more information.

@ghost ghost closed this as completed Mar 9, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Apr 8, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework Needs: Author Feedback The author of this issue needs to respond in order for us to continue investigating this issue. Status: No Recent Activity
Projects
None yet
Development

No branches or pull requests

2 participants