question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't build 1.6.5 in VS2019

See original GitHub issue

I tried:

  1. Only the .NET Core SDK from the build instructions is installed.

  2. Checkout 1.6.5 (cb9264828def32d2c55ec32dc0426c8a72aa793d)

  3. Run .\.paket\paket.exe restore

  4. 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...
    
  5. .\build.ps1

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
donos-63commented, Sep 19, 2019

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.

1reaction
punker76commented, Sep 13, 2019

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS2019 can't build any project
I have just installed VS2019 Version 16.7.4. I can't compile any c# project (WinForms, WPF and Console application ).
Read more >
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >
c# - Visual studio 2019 v16.6 can't build .net5 console ...
As per https://dotnet.microsoft.com/download/dotnet/5.0 it looks like you also need VS 2019 16.8 preview 3 for it to recognize it.
Read more >
[SOLVED] BuildFailedException: Burst compiler (1.1.2) ...
After uninstalling VS 2019 I was able to build. So it must have had to do with the "Unable to determine tools version...
Read more >
I can't build C++ projects from UE5 EA 2 in Visual Studio ...
So I have created a brand new third person template c++ project from the UE5 EA2 launcher. It creates the project files fine,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found