-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Test files:
- AssemblyInfo.fs
namespace fsharplibrary
open System.Reflection
[<assembly: AssemblyVersion("1.0.0.0")>]
()- fsharlibrary.fsproj
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.fs" />
</ItemGroup>
</Project>- Build:
$ dotnet build /nologo
Determining projects to restore...
All projects are up-to-date for restore.
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
/usr/local/share/dotnet/sdk/5.0.100-rc.1.20411.10/Microsoft.Common.CurrentVersion.targets(4207,5): error : Expected file "obj/Debug/netcoreapp5.0/ref/fsharplibrary.dll" does not exist. [/Users/rolf/test/dotnet/fsharplibrary/fsharplibrary.fsproj]
Build FAILED.
/usr/local/share/dotnet/sdk/5.0.100-rc.1.20411.10/Microsoft.Common.CurrentVersion.targets(4207,5): error : Expected file "obj/Debug/netcoreapp5.0/ref/fsharplibrary.dll" does not exist. [/Users/rolf/test/dotnet/fsharplibrary/fsharplibrary.fsproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.75Zipped test case:
fsharplibrary-d885c90.zip
.NET version (on macOS 10.15.6):
$ dotnet --version
5.0.100-rc.1.20411.10It looks like this regressed in #12720, if I comment out the line that sets ProduceReferenceAssembly to true then the build works.
kant2002 and jwosty