CsvHelper icon indicating copy to clipboard operation
CsvHelper copied to clipboard

Build error -

Open rjn71 opened this issue 2 years ago • 3 comments

Describe the bug I'm trying to build the project in Visual Studio 2022. I've installed the latest SDK 8.0.101. I still get this error

Error NETSDK1045 The current .NET SDK does not support targeting .NET 8.0. Either target .NET 7.0 or lower, or use a version of the .NET SDK that supports .NET 8.0.

If I target to use .Net 7.0 or lower, then I get the error in CsvHelper.cs "Invalid expression term '[' CsvHelper (net48)"

rjn71 avatar Feb 01 '24 00:02 rjn71

You probably(?) need to upgrade Visual Studio to 17.8 https://learn.microsoft.com/en-us/dotnet/core/porting/versioning-sdk-msbuild-vs

Rob-Hague avatar Feb 01 '24 12:02 Rob-Hague

Thanks @Rob-Hague . Let me try. I was able to build using the VS command prompt, so surely it's to do with VS version

rjn71 avatar Feb 01 '24 13:02 rjn71

@Rob-Hague I upgraded VS 2022 to version 17.8 and the build went fine. Thanks for pointing out

rjn71 avatar Feb 01 '24 14:02 rjn71