Add .NET Framework reference assemblies for Linux builds#55
Merged
Chris-Wolfgang merged 3 commits intomainfrom Feb 14, 2026
Merged
Add .NET Framework reference assemblies for Linux builds#55Chris-Wolfgang merged 3 commits intomainfrom
Chris-Wolfgang merged 3 commits intomainfrom
Conversation
…rops Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update PR workflow to install .NET Framework 4.8 assemblies
Add .NET Framework reference assemblies for Linux builds
Feb 14, 2026
Chris-Wolfgang
approved these changes
Feb 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a Directory.Build.props file to resolve MSB3644 errors that occur when building .NET Framework targets (net462, net472, net48, net481) on Ubuntu runners. The solution automatically imports the Microsoft.NETFramework.ReferenceAssemblies NuGet package for all .NET Framework projects, providing the necessary reference assemblies that are not available by default on Linux platforms.
Changes:
- Added
Directory.Build.propsat the repository root to automatically include .NET Framework reference assemblies for all .NET Framework target frameworks - Uses conditional package reference that applies to both SDK-style projects (using
TargetFramework) and legacy projects (usingTargetFrameworkVersion) - Configured with
PrivateAssets="All"to prevent the package from affecting library consumers
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Chris-Wolfgang
approved these changes
Feb 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Ubuntu runners lack .NET Framework reference assemblies, causing MSB3644 errors when building net462/net472/net48/net481 targets.
Created
Directory.Build.propsthat automatically importsMicrosoft.NETFramework.ReferenceAssemblies(v1.0.3) for all .NET Framework projects:Handles both SDK-style and legacy csproj formats without requiring workflow or project file modifications.
Type of change
How Has This Been Tested?
dotnet restore && dotnet build --configuration Releasesucceeds (0 errors, previously 8 MSB3644 errors)Checklist
Screenshots (if applicable)
N/A
Additional context
Using Directory.Build.props is the recommended MSBuild approach for cross-cutting package references. The
PrivateAssets="All"attribute prevents the package from affecting consumers of the library.Original prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.