-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Remove apphost from csi
for source-build to avoid prebuilt dependency on a 3.1 apphost pack
#57233
Comments
@tmat is there a reason you're aware of that we couldn't change this? |
I think we'd want to keep building csi.exe. Can we make |
Do you have any more info about why? Whether it makes sense to exclude it from source-build depends on whether it's important for a source-build scenario. |
So that one can run csi.exe from command line. |
If it's correct to say that one can only get I'd question the need to build |
@tmat Since csi doesn't ship in the .NET SDK, why would we want it to be part of SourceBuild? We could always change this in the future if we wanted to ship csi as a inbox CLI tool (like fsi). |
That would actually be a problem, because the 3.1 apphost pack isn't available to source-build. (If there's some way to safely use the
|
@dagood Sorry for the phrasing. It was my hand wavy way of saying we can always enable Source Build in the future and do any necessary work to make it compatible. |
I meant we want to build it in general, not necessarily in source build. We can skip the whole project in source build. |
Creating an apphost for a netcoreapp3.1 project uses the apphost pack as a prebuilt. Stopping these projects from creating the apphost removes the prebuilt for source-build. See: dotnet#57233 PR: dotnet#57306
Creating an apphost for a netcoreapp3.1 project uses the apphost pack as a prebuilt. Stopping these projects from creating the apphost removes the prebuilt for source-build. See: dotnet#57233 PR: dotnet#57306
The
csi
project targetsnetcoreapp3.1
and outputs an Exe, so it usesMicrosoft.NETCore.App.Host.linux-x64/3.1.18
:roslyn/src/Interactive/csi/csi.csproj
Lines 5 to 9 in 1a415d2
This is a prebuilt dependency during source-build. The apphost pack contains binaries, so it isn't possible to make it available via https://github.com/dotnet/source-build-reference-packages.
I see that in the Microsoft-built SDK,
csi
doesn't seem to make it in, even as a framework-dependent DLL:csc
uses<UseAppHost>false</UseAppHost>
, which avoids this prebuilt:roslyn/src/Compilers/CSharp/csc/csc.csproj
Line 13 in 1a415d2
csi
for source-build?csi
to unify the builds?@sharwell @jaredpar
fsi
/fsc
and I'll be asking them, too: Resolve "uncategorized" prebuilts for the fsharp repo for 6.0 source-build#2526. I learned that source-build is no longer going with upgrading repos to build against the newest framework during source-build as the way to remove this kind of prebuilt usage. (Which is great news for source-build maintainability.)The text was updated successfully, but these errors were encountered: