Problem building this repo
See original GitHub issueAfter updating to the current master (I was about 60 commits behind), I am unable to compile this repo inside Visual Studio(2022). (Which I was able to do before)
When issuing the build.cmd
everything builds without errors, but when I open VS and try to compile some libraries will fail.
The problems seem to be the location of the reference assemblies. MSBuild compiles Microsoft.AspNetCore.Hosting.Abstractions
for example into:
\artifacts\bin\Microsoft.AspNetCore.Hosting.Abstractions\Debug\net7.0\Microsoft.AspNetCore.Hosting.Abstractions.dll'
But VS expects them here:
\artifacts\bin\Microsoft.AspNetCore.Hosting.Abstractions\Debug\net7.0\ref\Microsoft.AspNetCore.Hosting.Abstractions.dll'
(note the additional \ref
part, and fails.
Does anyone have an idea on how to fix this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
I removed VS 2022, rebooted, and reinstalled it. Sadly the problem remains.
But I think I am close to pinpointing the problem, I think the
slnf
files in thesrc\components\
folder (ComponentsNoDeps.slnf and Components.slnf
) are incomplete. I was able to getComponents.slnf
to compile again, after I added theMicrosoft.AspNetCore.Server.Kestrel.Transport.Quic
project file, (Which it said it missed). So probably theComponentsNoDeps.slnf
will need to be updated also.@MariovanZeist I ran in to this error too, but seemingly nobody else on the team has. Building individual projects (e.g. if I manually built
Microsoft.AspNetCore.Hosting.Abstractions
) would fix this error temporarily, at least until I did a CLI build.I ended up wiping my VS install and re-running
eng\scripts\InstallVisualStudio.ps1
and I have not see the issue as yet, perhaps give that a try?