SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

Warning CS8032 when compiling mod against SMAPI 2.6.3 beta.

tstaples opened this issue ยท 7 comments

commented

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..

commented

@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?

commented

@tstaples This seems to happen if you don't have Visual Studio 2017, since code analyzers are a pretty new feature.

commented

I was compiling with VS2017 though. Perhaps I need to update though? What version are you running?

commented

@tstaples I have VS Community 2017 15.6.6. Do you have an older version?

commented

Yeah I was using VS Community 2017 15.1. Updating fixed it.

commented

@mralbobo Thanks! I expanded your addition a bit.

commented

Just throwing this out there, but it might be worth mentioning this in the migration guide.
(I added a quick mention to it)