Warning CS8032 when compiling mod against SMAPI 2.6.3 beta.
tstaples opened this issue ยท 7 comments
OS: Windows 10 Home
1>CSC : warning CS8032: An instance of analyzer StardewModdingAPI.ModBuildConfig.Analyzer.NetFieldAnalyzer cannot be created from C:\...\GiftTasteHelper\packages\Pathoschild.Stardew.ModBuildConfig.2.1.0-beta-20180428\analyzers\dotnet\cs\StardewModdingAPI.ModBuildConfig.Analyzer.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. 1>CSC : warning CS8032: An instance of analyzer StardewModdingAPI.ModBuildConfig.Analyzer.ObsoleteFieldAnalyzer cannot be created from C:\...\GiftTasteHelper\packages\Pathoschild.Stardew.ModBuildConfig.2.1.0-beta-20180428\analyzers\dotnet\cs\StardewModdingAPI.ModBuildConfig.Analyzer.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=2.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..
@Kevin-Mok That's a different issue. Can you create a separate ticket for it, and describe how you're launching the installer and what terminal you use?
@tstaples This seems to happen if you don't have Visual Studio 2017, since code analyzers are a pretty new feature.
I was compiling with VS2017 though. Perhaps I need to update though? What version are you running?
@tstaples I have VS Community 2017 15.6.6. Do you have an older version?
@mralbobo Thanks! I expanded your addition a bit.