dotnet / dotnet/dotnet

VMR build of 10.0.102 fails under FreeBSD 15

Open
#4,606 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.3k
Forks
337
Avg merge
6h 41m
Merged PRs (30d)
949

Description

During VMR build, under FreeBSD 15 (aarch64, but iirc it was also the same for x64) - using portable SDK 10.0.102 produced either from 14 or cross-linux compilation, building VMR fails with:
```
/mnt/sec/dotnet/src/sdk/src/Layout/redist/targets/Crossgen.targets(142,5): error : Potentially missed crossgen for '/mnt/sec/dotnet/src/sdk/artifacts/bin/redist/Release/dotnet-installer/sdk/10.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net10.0/', directory does not exist [/mnt/sec/dotnet/src/sdk/src/Layout/redist/redist.csproj]
```

Which is true, `tasks` are missing in there:
```
sec@amper:/mnt/sec/dotnet % ll /mnt/sec/dotnet/src/sdk/artifacts/bin/redist/Release/dotnet-installer/sdk/10.0.102/Sdks/Microsoft.NET.Sdk.Razor/
total 16
drwxr-xr-x 4 sec sec 512 Jan 15 18:05:14 2026 ./
drwxr-xr-x 19 sec sec 1024 Jan 15 18:05:15 2026 ../
drwxr-xr-x 2 sec sec 512 Jan 15 18:05:14 2026 source-generators/
drwxr-xr-x 2 sec sec 512 Jan 15 18:05:14 2026 tools/
```

Looking for `tasks`, there are two locations:
```
sec@amper:/mnt/sec/dotnet % find . -name tasks -type d|grep Razor
./src/sdk/artifacts/obj/Release/Sdks/Microsoft.NET.Sdk.Razor/tasks
./src/sdk/artifacts/bin/Release/Sdks/Microsoft.NET.Sdk.Razor/tasks
```

Similar build under FreeBSD 14, also using SDK 10.0.102 finish fine without any errors.

Any help how/where to troubleshoot this? Worth to notice that time needed to reproduce this is quite high due to https://github.com/dotnet/dotnet/issues/4226 :)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.