-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed as not planned
Labels
bughas-reproThere is a sample project, or steps to reproduce the issue.There is a sample project, or steps to reproduce the issue.needs-triageHave yet to determine what bucket this goes in.Have yet to determine what bucket this goes in.
Description
Issue Description
Failed to build .NET Framework 3.5 targeted class library using .NET 5.0 SDK.
Steps to Reproduce
git clone https://github.com/ganeshnj/DotNet5ReferenceAssemblies
cd DotNet5ReferenceAssemblies
dotnet build
Output
C:\Program Files\dotnet\sdk\5.0.101\Microsoft.Common.CurrentVersion.targets(1180,5): error MSB3644: The reference assemblies for .NETFramework,Version=v3.5 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [C:\source\repos\DotNet5ReferenceAssemblies\DotNet5ReferenceAssemblies.csproj]
Expected Behavior
This issues existed previously also which was mitigated using this workaround.
Actual Behavior
dotnet build should build the project.
Analysis
I suspect .NET 5 CLI introduces some breaking changes that causes this behavior. If I force 3.1 version of .NET Core SDK, build succeeds.
Branch fix-35-reference-assemblies
global.json
{
"sdk": {
"version": "3.1.101",
"rollForward": "latestFeature"
}
}
Versions & Configurations
❯ dotnet --list-sdks
3.1.301 [C:\Program Files\dotnet\sdk]
5.0.101 [C:\Program Files\dotnet\sdk]
❯ [System.Environment]::OSVersion
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0
Attach a binlog
boblodgett, SrutiG, philasmar, ashishdhingra, alexey-gusarov and 2 more
Metadata
Metadata
Assignees
Labels
bughas-reproThere is a sample project, or steps to reproduce the issue.There is a sample project, or steps to reproduce the issue.needs-triageHave yet to determine what bucket this goes in.Have yet to determine what bucket this goes in.