Squirrel / Squirrel.Windows

An installation and update framework for Windows desktop apps
MIT License
7.35k stars 1.03k forks source link

[MSVC]Squirrel.Windows failed to build on MSVC #1814

Closed Apriltanq closed 2 years ago

Apriltanq commented 2 years ago

Hi All,

Squirrel.Windows failed to build on MSVC. Could you please help look at this issue? Thanks in advance.

Repro steps:

Open VS2022 x86 Tools command git clone https://github.com/Squirrel/Squirrel.Windows F:\gitP\Squirrel\Squirrel.Windows cd F:\gitP\Squirrel\Squirrel.Windows ..NuGet\NuGet.exe restore -ConfigFile F:\tools\Nuget_Config\nuget.config Squirrel.sln msbuild /m /p:Platform="Any CPU" /p:Configuration=Release Squirrel.sln /t:Rebuild

Build log:

build.log

Error info: error CS0246: The type or namespace name 'InternalsVisibleToAttribute' could not be found (are you missing a using directive or an assembly reference?) error CS0400: The type or namespace name 'System' could not be found in the global namespace (are you missing an assembly reference?) [F:\gitP\Squirrel\Squirrel.Windows\src\Squirrel\Squirrel.csproj] error CS0518: Predefined type 'System.Boolean' is not defined or imported [F:\gitP\Squirrel\Squirrel.Windows\src\Squirrel\Squirrel.csproj] error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?) error CS0246: The type or namespace name 'Microsoft' could not be found (are you missing a using directive or an assembly reference?) [F:\gitP\Squirrel\Squirrel.Windows\src\Squirrel\Squirrel.csproj] error CS0518: Predefined type 'System.Object' is not defined or imported [F:\gitP\Squirrel\Squirrel.Windows\src\Squirrel\Squirrel.csproj] error CS0518: Predefined type 'System.String' is not defined or imported [F:\gitP\Squirrel\Squirrel.Windows\src\Squirrel\Squirrel.csproj]