question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for installing .NET Core shared frameworks

See original GitHub issue

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.

<!-- Installs Microsoft.NETCore.App -->
<DotNetCoreRuntime Include="1.0.5" />
<DotNetCoreRuntime Include="1.0.5" Feed="https://mydotnetclifeed/assets" FeedCredential="$(MySuperSecretToken)" />
<DotNetCoreRuntime Include="latest" Channel="1.0" />
<DotNetCoreRuntime Include="2.0.0" Arch="x64" InstallDir="C:\custom\" />

<!-- Installs the AspNetCore shared framework -->
<AspNetCoreRuntime Include="2.1.0-preview1-1234" Arch="arm64" />

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
tmatcommented, Dec 4, 2018

It would imo make sense for these to be in global.json, since the version of dotnet is also there. Something like:

{
  "tools": {
    "dotnet": "2.1.400-preview-009088",
    "dotnet-shared-fx": [ "1.0.5", "2.1.0" ]
  },
}
0reactions
tmatcommented, Feb 7, 2019

I mean the workaround works, but would be nice to get first class support at some point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft.AspNetCore.App metapackage for ASP.NET Core
The ASP.NET Core shared framework ( Microsoft.AspNetCore.App ) contains assemblies that are developed and supported by Microsoft. Microsoft.
Read more >
Install .NET on Windows
In this article, you'll learn how to install .NET on Windows. .NET is made up of the runtime and the SDK. The runtime...
Read more >
Install .NET Core, ASP.NET Core
Learn to install .NET Core/ASP.NET Core and prepare development environment. Understand the basics of tools required for ASP.NET Core web application.
Read more >
Sharing libraries between .Net Core and .Net Framework ...
Net Core there is a fair chance that you'll need to share some libraries with .Net framework applications. You will have some legacy...
Read more >
Deep-dive into .NET Core primitives, part 2: the shared ...
NET Core 2.2, there are three shared frameworks. Framework name, Description. Microsoft.NETCore.App, The base runtime. It supports things like ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found