Could not locate the assembly "System"
While building a library that targets netstandard2.0 and net35 using the Visual Studio 2022 image, I get these errors:
C:\Program Files\dotnet\sdk\6.0.302\Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
...and many more errors for System libraries: https://ci.appveyor.com/project/morpher/dawgsharp/builds/44354363
Removing net35 from target frameworks fixes the build: https://ci.appveyor.com/project/morpher/dawgsharp/builds/44354420
It used to build fine with net35 until I switched the image from VS 2019 to VS 2022.
AppVeyor maintainers, can you please check if the .NET 3.5 Targeting Pack is installed in the VS 2022 image?
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac