-
Notifications
You must be signed in to change notification settings - Fork 352
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
Support for installing .NET Core shared frameworks #1441
Comments
You can install additional shared frameworks by adding |
It'd be probably useful to move the function to |
Does |
Yes. We update all the files in |
...but the file @tmat proposed using isn't in |
@tmat - is there a bash equivalent? |
They are not MSBuild variables since they are used from PowerShell. The restore script is run before MSBuild is available. If this is an issue, we can think about adding these to Yes, there is bash equivalent. |
It would imo make sense for these to be in
|
Yes, I'm aware of the difference. What I meant was that we currently have MSBuild variables which represent the shared framework versions we use. e.g. https://github.com/aspnet/AspNetCore/blob/e310ccac7b30e901f657f81c86c4048fecfedf7b/build/dependencies.props#L6 <PropertyGroup>
<MicrosoftNETCoreAppPackageVersion>3.0.0-preview-27122-01</MicrosoftNETCoreAppPackageVersion>
</PropertyGroup> In Korebuild, this can be used to drive dotnet-install.ps1 and also to set variables for NuGet restore. https://github.com/aspnet/AspNetCore/blob/e310ccac7b30e901f657f81c86c4048fecfedf7b/build/runtimes.props#L3-L23 My concern was that having the variable hard-coded in PowerShell and msbuild means one more thing which can break if update automation doesn't run correctly. So, is there a way to make this work? Is |
I'll think about it. For now your workaround seems ok. |
cc/ @rynowak |
We need multiple runtimes in aspnet/AspNetCore-Tooling because we ship functionality in the SDK. We need to be able to test that we can build applications that target our previously-shipped frameworks. |
Where did this land? |
It has not. Haven't had time. |
I mean the workaround works, but would be nice to get first class support at some point. |
ASP.NET Core regularly needs to build against a shared framework which is not bundled by the .NET Core SDK downloads.
The way we did this in KoreBuild was to allow for an item group to define the additional shared frameworks required.
During
/t:Restore
we ran a target which invoked dotnet-install.sh/ps1 to install the additional shared frameworks into DOTNET_ROOT.We need this to convert from KoreBuild to Arcade. In the meantime, we've worked around this like this: https://github.com/aspnet/AspNetCore-Tooling/blob/03a21837eec155a2f810ee8e9645e984417439bd/eng/Tools.props#L3-L33
cc @rynowak @ryanbrandenburg @bricelam
The text was updated successfully, but these errors were encountered: