MahApps.Metro: Can't build 1.6.5 in VS2019
I tried:
-
Only the .NET Core SDK from the build instructions is installed.
-
Checkout 1.6.5 (cb9264828def32d2c55ec32dc0426c8a72aa793d)
-
Run
.\.paket\paket.exe restore -
Rebuild twice in Visual Studio
I get:
1>Properties\AssemblyInfo.cs(7,12,7,21): error CS0246: The type or namespace name 'ThemeInfoAttribute' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(7,12,7,21): error CS0246: The type or namespace name 'ThemeInfo' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(9,12,9,23): error CS0246: The type or namespace name 'XmlnsPrefixAttribute' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(9,12,9,23): error CS0246: The type or namespace name 'XmlnsPrefix' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(10,12,10,23): error CS0246: The type or namespace name 'XmlnsPrefixAttribute' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(10,12,10,23): error CS0246: The type or namespace name 'XmlnsPrefix' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(12,12,12,27): error CS0246: The type or namespace name 'XmlnsDefinitionAttribute' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(12,12,12,27): error CS0246: The type or namespace name 'XmlnsDefinition' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(13,12,13,27): error CS0246: The type or namespace name 'XmlnsDefinitionAttribute' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(13,12,13,27): error CS0246: The type or namespace name 'XmlnsDefinition' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(14,12,14,27): error CS0246: The type or namespace name 'XmlnsDefinitionAttribute' could not be found (are you missing a using directive or an assembly reference?) 1>Properties\AssemblyInfo.cs(14,12,14,27): error CS0246: The type or namespace name 'XmlnsDefinition' could not be found (are you missing a using directive or an assembly reference?) ...14000 more errors... -
.\build.ps1I get:
MahApps.Metro\src\MahApps.Metro.sln.metaproj : error MSB4057: The target "restore" does not exist in the project.
I’m running VS 16.2.3.
Any ideas?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 16 (4 by maintainers)
Commits related to this issue
- (GH-3588) Fix Can't build 1.6.5 in VS2019 — committed to MahApps/MahApps.Metro by punker76 5 years ago
- (GH-3588) Use cake NuGetRestore — committed to MahApps/MahApps.Metro by punker76 5 years ago
Hi all,
I have the same issue than JVimes. Could you please re-open the ticket? master => VS2017 ok develop => VS2019 ok master-2019-1.6.5 KO thank you.
I created this branch to allow a build in VS 2019 (without .Net 4.0 target)
https://github.com/MahApps/MahApps.Metro/tree/master-vs2019-v1.6.5